Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • 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: 298
14
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic