Marius Hille wrote:
I installed x and x
Jan Daermann wrote:Marius,
It is a little difficult to judge where you are stuck from your description. First of all you can use Java 11 and the corresponding JavaFX 11 package, you do not have to use older versions.
As a first step I would suggest you check whether you have installed the "Java 11 for Eclipse" patch. Then check whether JavaFX has been included in the module path of your project.
salvin francis wrote:Your code still misses the part where you add the panel to your frame, did you try the code I shared ?
salvin francis wrote:"sufficient" would probably not be the right word to describe it, I would say its outdated. I would leave it to others to suggest about Swing vs JavaFx since I do not know much about JavaFx.
salvin francis wrote:As a side note, thanks for sharing your code this time instead of a screenshot of code.
Carey Brown wrote:
Carey Brown wrote:You are missing a call to
[edit] I missed the fact that you aren't using Swing but AWT instead.
Looks like AWT Frame also uses this method so give it a try. Call it as the last thing you do after coding the layout (i.e. adding buttons, labels, etc.).
Carey Brown wrote:You are using the AWT library. That is ancient and you shouldn't be using anything less than Swing.