Dude, I love your tutorials, and appreciate the knowledge, so thanks. That said, your ads have recently gotten to be ridiculous. 5 ads in an 8 minute video? I respect the hustle, but that's just not worth the hassle anymore. Thanks again for everything up to now though #100
Perfectly describe each and every basic from scratch . I would like to request you kindly make a Project base tutorial on JAVA FX please :) . Looking forward for your kind response thanks in advance!!!
hi, First of all thanks for being such a great teacher..Dude you rock! You can make a beginner feel pro. I started with Java and took a rocket boost into JavaFX thanks to you. Its would be unfair to ask for more, but life isn't fair is it? :P I am working on a project based on JavaFX and i need to involve a hardware module an ACR122u for NFC transfer of Messages from PC to smartphone and back.Since I am a real beginner here i would really appreciate some help no matter how big or small it is ThankYou
But setOnAction works on ChoiceBox too :/ Maybe it was added to the library later so it was not possible to do so while Bucky was making these tutorials
please make the program in the MAVEN structure as this will greatly help developers who are a few steps ahead. With this I mean the correct folders for controllers, models and testing.
We can handle an event by setting an handler. However, if the node has multiple options of action can be taken, for example "right click" and "left click", can we differentiate them by method overloading. If yes, how can we identify the actions from parameters, i.e. linking the argument with the action taken.
Now if i wanna to load a fxml on every selection in combo box ie., for example as for "blackhat" if i have a fxml with its controller how can i load it on that specific action...
Was wondering if anyone else got this issue... If you select a movie (good will hunting) and you add a 2 (say theres a sequel), it doesn't seem to recognize the 2, or any other characters added in for that matter. Does anyone get that issue as well?
No, it doesn't. Notice 7:42 , after he printed Avatar , then opened the list again , Avatar was not there in the list. Imagine it like you are converting the ComboBox into TextField , that's what "Editable" is really doing.
If you would like to add it to the combo list , you can type this code inside printMovie method : comboBox.getItems.Add( comboBox.getValue() ); // you may also check if the value already exists , to avoid duplication.
So, there seems to be some sort of bug that makes this code break with Windows 10. I did my code just like in the video, and the window would show up, but when I click the combo box, nothing happens, and the window freezes. I googled and found that a workaround was to call this function: System.setProperty("glass.accessible.force", "false"); I called this in main. Below is the source where I found the solution. I just thought I would share in case someone else has the same problem. @newboston, any idea why this may be happening? stackoverflow.com/questions/31786980/javafx-windows-10-combobox-error
I have encountered this issue in the past. I thought this had been fixed a while back, have you updated your JDK? In any case, we only had this issue when using touch screens with Windows 10, we opened an official bug report back then. Unplugging the USB cable that handles touches from the monitor removed the issue. That is also why it happens on some laptops that have a touch screen. If the combo box is focused before opening it, it also does not crash.
Do you always have to confirm your own input by hitting enter, before the program knows there is an update? It's a bit annoying... I was already wondering why run was always writing null or the last selected item in the list, luckily I came accross this thread: community.oracle.com/message/10327217
So I've tried writing a few simple programs testing the things out I've learned so far and everything went splendid. However the comboboxes didn't really work out. I don't like copying code exactly as it is written in videos/books, but after the comboboxes did not work i copied your code and pasted it into InteliJ. This is the error message: Error:(5, 1) java: ComboBox is already defined in this compilation unit Error:(14, 13) java: type ComboBox does not take parameters Error:(26, 32) java: cannot infer type arguments for reason: cannot use '' with non-generic class ComboBox
LizardanNet His videos are not aimed at professionals. You've commented this on previous videos too, I don't see the point as to why you keep on watching.
P.S. it does cure diseases, it cured my nightly cough
I think I really fell in love with your humor... Thanks for your videos, lovely greetings from Germany =)
Thanks a lot for your videos, you are one of the best Development teacher i've seen on youtube ;)
More node and mongo, please! Really awesome series and lots to learn.
You basically saved my ass with this one. Thank you man!
Thank you again! Everyday I learn from this!
Dude, I love your tutorials, and appreciate the knowledge, so thanks. That said, your ads have recently gotten to be ridiculous. 5 ads in an 8 minute video? I respect the hustle, but that's just not worth the hassle anymore. Thanks again for everything up to now though #100
Thanks for the tutorial dude!
Thanks for this video!You're a boss!
Perfectly describe each and every basic from scratch . I would like to request you kindly make a Project base tutorial on JAVA FX please :) . Looking forward for your kind response thanks in advance!!!
great video!!
I would see it tonight, who knows? alright
First it is 3 AM so you have no time.
Second Macdonalds is 24 hours most of the time
hi,
First of all thanks for being such a great teacher..Dude you rock! You can make a beginner feel pro.
I started with Java and took a rocket boost into JavaFX thanks to you.
Its would be unfair to ask for more, but life isn't fair is it? :P
I am working on a project based on JavaFX and i need to involve a hardware module an ACR122u for NFC transfer of Messages from PC to smartphone and back.Since I am a real beginner here i would really appreciate some help no matter how big or small it is
ThankYou
It cured my Covid omg
But setOnAction works on ChoiceBox too :/
Maybe it was added to the library later so it was not possible to do so while Bucky was making these tutorials
Have you watched the whole tutorial?
Then, what was the point of ChoiceBox?
when you want to restrict the user to certain choices only.
We can do that with ComboBox too @@dexternepo
@@dexternepo it's more lightweight. yeah, quite trash
I love you
So basically, it's a choice box but more versatile
please make the program in the MAVEN structure as this will greatly help developers who are a few steps ahead. With this I mean the correct folders for controllers, models and testing.
good will hunting :)
We can handle an event by setting an handler.
However, if the node has multiple options of action can be taken, for example "right click" and "left click", can we differentiate them by method overloading. If yes, how can we identify the actions from parameters, i.e. linking the argument with the action taken.
Bucky, by any chance, could you do some tutorials on Petit Computer and SmileBASIC?
close but no cigar, it's 3:10am
Skipping through the video after watching just to find the funny parts
im having a problem where i have comboboxes and checkboxes in one pane and i cant select one or the other
Now if i wanna to load a fxml on every selection in combo box ie., for example as for "blackhat" if i have a fxml with its controller how can i load it on that specific action...
Boom! Roasted!
Great video, how can i pass what was selected into another method to execute a calculation?
+I Cloud So i figured out how to do the above but can you do .setOnAction( e -> ) on the same variable? So one combobox does two actions?
.setOnAction(e -> {
System.out.println("Action1");
System.out.println("Action2")
});
I am looking for a Math teacher Just like you........
Was wondering if anyone else got this issue...
If you select a movie (good will hunting) and you add a 2 (say theres a sequel), it doesn't seem to recognize the 2, or any other characters added in for that matter. Does anyone get that issue as well?
can we add a new item without using a button?
When you make it editable and type in a different movie or whatever, does it get added to the combo list?
No, it doesn't.
Notice 7:42 , after he printed Avatar , then opened the list again , Avatar was not there in the list.
Imagine it like you are converting the ComboBox into TextField , that's what "Editable" is really doing.
If you would like to add it to the combo list , you can type this code inside printMovie method :
comboBox.getItems.Add( comboBox.getValue() );
// you may also check if the value already exists , to avoid duplication.
WHAT ABOUT THE ANDROID SERIES?
nir assraf What about them...?
why my combo box is empty, nothing inside.
public void initialize(URL url, ResourceBundle rb) {
this.bulanComboBox = new ComboBox();
this.bulanComboBox.getItems().addAll(
"Januari",
"Febuari",
"Maret",
"Mei",
"Juni",
"Juli",
"Agustust",
"September",
"Oktober",
"November",
"Desember"
);
}
So, there seems to be some sort of bug that makes this code break with Windows 10. I did my code just like in the video, and the window would show up, but when I click the combo box, nothing happens, and the window freezes. I googled and found that a workaround was to call this function:
System.setProperty("glass.accessible.force", "false");
I called this in main. Below is the source where I found the solution. I just thought I would share in case someone else has the same problem.
@newboston, any idea why this may be happening?
stackoverflow.com/questions/31786980/javafx-windows-10-combobox-error
I have encountered this issue in the past. I thought this had been fixed a while back, have you updated your JDK? In any case, we only had this issue when using touch screens with Windows 10, we opened an official bug report back then. Unplugging the USB cable that handles touches from the monitor removed the issue. That is also why it happens on some laptops that have a touch screen. If the combo box is focused before opening it, it also does not crash.
3:16 am LOL
My prompt window will stuck after clicking "Submit", any help plz?
+Bob Lin can i see your code?
+Om Prajapati
import javafx.application.Application;
import javafx.geometry.Insets;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.ComboBox;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;
public class ComboBoxDemo extends Application{
Stage window;
Scene scene;
Button button;
ComboBox comboBox;
public static void main(String[] args) {
launch(args);
}
@Override
public void start(Stage primaryStage) throws Exception {
window = primaryStage;
window.setTitle("ComboBox Demo");
button = new Button("Submit");
comboBox = new ComboBox();
comboBox.getItems().addAll(
"Good Will Hunting",
"St. Vincent",
"Blackhat"
);
comboBox.setPromptText("What is your favorite movie?");
comboBox.setEditable(true);
button.setOnAction(e -> printMovie());
comboBox.setOnAction( e -> System.out.println("User selected: " + comboBox.getValue() ) );
VBox layout = new VBox(10);
layout.setPadding(new Insets(20, 20, 20, 20));
layout.getChildren().addAll(comboBox, button);
scene = new Scene(layout, 300, 250);
window.setScene(scene);
window.show();
}
//Print out a movie
private void printMovie() {
System.out.println(comboBox.getValue());
}
}
+Bob Lin Checked with your code. Its working perfectly. No stucked as well. is there any error message???
shtrings ?
Do you always have to confirm your own input by hitting enter, before the program knows there is an update?
It's a bit annoying...
I was already wondering why run was always writing null or the last selected item in the list, luckily I came accross this thread: community.oracle.com/message/10327217
Then what's the point of using ChoiceBox when you have a ComboBox ?
+Rebeca Burca 4:47
+Daniel Personius Actually you can use setOnAction for ChoiceBox either
If he clicked Submit before selecting a movie it would print null. Avoid that with comboBox.getSelectionModel().selectFirst();
button.setOnAction(event -> System.out.println(comboBox.getValue())); // no need to have a function.
So I've tried writing a few simple programs testing the things out I've learned so far and everything went splendid. However the comboboxes didn't really work out. I don't like copying code exactly as it is written in videos/books, but after the comboboxes did not work i copied your code and pasted it into InteliJ. This is the error message:
Error:(5, 1) java: ComboBox is already defined in this compilation unit
Error:(14, 13) java: type ComboBox does not take parameters
Error:(26, 32) java: cannot infer type arguments for
reason: cannot use '' with non-generic class ComboBox
+MSurai You probably named your class as "ComboBox". Rename it!
Margus Muru Thanks, that solved the problem. I really should pay more attention to my class names, it's the second time this has happened ^^
If you're a professional you can easily tell this guy is not a developer.
LizardanNet So what?
LizardanNet Wtf is your problem?
LizardanNet Alright smart-ass, why don't you upload some tutorials of your own? If you think you are some "professional"
+LizardanNet
If he isn't "Professional" At least he teach other how to make it from zero :)
And that for me is better than been "Professional"
LizardanNet His videos are not aimed at professionals. You've commented this on previous videos too, I don't see the point as to why you keep on watching.