• Post Reply Bookmark Topic Watch Topic
  • New Topic

JavaFX code showing error

 
Vidit shah
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My code
Error shwoing in object Declaration
 
John Damien Smith
Ranch Hand
Posts: 324
20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The code you provided isn't JavaFX code, it is Swing code.
Don't mix JavaFX class imports and Swing class imports unless you really know what you are doing (in which case you wouldn't do it anyway).

If you want to write "hello, world" for JavaFX, study the Oracle example:
http://docs.oracle.com/javase/8/javafx/get-started-tutorial/hello_world.htm
Which is part of the Oracle JavaFX tutorials:
http://docs.oracle.com/javase/8/javase-clienttechnologies.htm
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!