There are people like you, which make this videos and there are people like me which watch this videos and give some love in the comments to defeat the algorythm
Do you have a video going into more detail about the method reference operator you use? I'm not quite grasping it. I think it's a type of lambda, and it shortens a lambda even more, but not sure how. Thanks!
Hi thank you! A little question: How can I use a value String in the checkbox as default? Because when you run the program you can't see any string (but when you do your food choise then you can read it). For example I want to see the string "foods" in the checkbox at the beginnig
is there an option to add the items to be selected in scenbuilder itself under the Combobox component instead of writing them in code as Strings ? I want to add the items to be selected in scenbuilder itself under the Combobox component like how MenuButton component has MenuItems to be selected under it in Scenbuilder? because i want when i select one option from Compobox i want the program to get me into another user interface. what is the appropriate componant for that?
package application;
import java.net.URL;
import java.util.ResourceBundle;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.ChoiceBox;
import javafx.scene.control.Label;
public class Controller implements Initializable{
@FXML
private Label myLabel;
@FXML
private ChoiceBox myChoiceBox;
private String[] food = {"pizza","sushi","ramen"};
@Override
public void initialize(URL arg0, ResourceBundle arg1) {
myChoiceBox.getItems().addAll(food);
myChoiceBox.setOnAction(this::getFood);
}
public void getFood(ActionEvent event) {
String myFood = myChoiceBox.getValue();
myLabel.setText(myFood);
}
}
Thanks for sharing ☺️
YOU ARE THE BEST BRO I'VE EVER SEEN ON UA-cam
There are people like you, which make this videos and there are people like me which watch this videos and give some love in the comments to defeat the algorythm
YO, It's my favorite Bro 🙌🏾🙌🏾🙌🏾💻
thanks bro, you are really good and so easy to follow. XD
Thanks bro! This helped me a lot
Thanks, Bro!! Very helpfull
How would you go about populating a choicebox with strings that are generated at run time?
it worked, thanks!
Thank you very much
Do you have a video going into more detail about the method reference operator you use? I'm not quite grasping it. I think it's a type of lambda, and it shortens a lambda even more, but not sure how. Thanks!
Thank you!!!!
For some reason I got an error unless I declared the attributes as public. Thanks for the tutorial!
Thank You
Thx Bro!
Hi thank you! A little question:
How can I use a value String in the checkbox as default?
Because when you run the program you can't see any string (but when you do your food choise then you can read it).
For example I want to see the string "foods" in the checkbox at the beginnig
One way to do this is to edit your FXML for your ChoiceBox, add the line (value = ""the Text You Want To See At The Beginning")
I hope this helps
myChoiceBox.setValue("Choose Food");
Thanks
da best
Just realised that you have your own element: BROmine
thanx!
What if we want to use an existing Enum we have?
is there an option to add the items to be selected in scenbuilder itself under the Combobox component instead of writing them in code as Strings ?
I want to add the items to be selected in scenbuilder itself under the Combobox component like how MenuButton component has MenuItems to be selected under it in Scenbuilder? because i want when i select one option from Compobox i want the program to get me into another user interface. what is the appropriate componant for that?
Hi, Thank you for the tutorial, but Mine did not work, I am not sure why. Any ideas? is there something special I should do in the Main.java?
how to do multi-selection in that choice box
thank you is not enough...good example
In my case it didn't work, until I initialised myChoiceBox [ChoiceBox myChoiceBox = new ChoiceBox();]
THANK YOU SO MUCH, I was going crazy trying to find out why it doesn't work
Hey bro! I cannot shorten my combo box size when it reachs 30px. anyone, help me plz!
nice tutorial, but what if want to show an image of pizza, sushi or ramen instead of label?
create an imageviewer in scene builder.
in your controller class just use if statements to get images displayed
Hi. The audio and subtitles of this video were incorrectly identified as Vietnamese
hey i have a question, i learned python language and wanted to know how can i get a job ?
build some projects to include in a portfolio
@@BroCodez what is a portofolio and yes i made some projects, should i post them on github, and where can i get the job ?
Someone nuked the transcript of this video.