Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JavaFX code showing error  RSS feed

 
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: 337
21
  • 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
Boost this thread!