Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Button class and EventHandler(Not displaying EventHandler in a drop down list. )
Button class and EventHandler [message #1730271] Sat, 23 April 2016 00:00 Go to next message
Mohamed Ghazaly is currently offline Mohamed GhazalyFriend
Messages: 1
Registered: April 2016
Junior Member
Hi
I am new to Java and eclipse. I am just trying to create a button and Eventhandler.

but the event handler class is not displaying when I I type btn.setOnActive (new

here is the code
public void start(Stage primaryStage) throws Exception {
// TODO Auto-generated method stub
Button btn = new Button ("Click me");
btn.setOnAction(new );

How do I bring the drop down menu ?
I have imported Button and EventHandler from java fx.

Regards
Ghazaly
Re: Button class and EventHandler [message #1730451 is a reply to message #1730271] Mon, 25 April 2016 22:46 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 3882
Registered: July 2009
Senior Member

The purpose of this forum is to answer questions on the set-up and use of the Eclipse IDE. It's not really for general programming questions.

For a question about working with JavaFX, you might try a forum such as javaranch.com or stackoverflow.com. They reach a much larger audience for what you're asking about.


Nitin Dahyabhai
Eclipse Web Tools Platform
Previous Topic:Question about how to use Pydev & Git Together
Next Topic:win7: .classpath does not support dir walk up?
Goto Forum:
  


Current Time: Wed Oct 28 21:09:06 GMT 2020

Powered by FUDForum. Page generated in 0.02926 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top