using java i need help for the following problem sets the ex

using java i need help for the following problem sets... the example referred is at the end.

(You will need to use an IDE to do this Lab. I used NetBeans. Make sure your IDE is using Java 8 for JavaFX to work.)

1.)Problem #1 (Simple Hello World GUI – No Events)1.)In this exercise, you are going to build a simple Java FX GUI.   In your IDE, create a Java FX GUI Project. Call your class . Follow the example handout in class. Your class should extend from Application, create a stage, add a Scene with a Flow Pane. Add one button that says “Hello” to this FlowPane, and make the Stage visible.

1.)Problem #2: (Simple GUI with 3 Buttons – No Events) In this exercise, you are going to build a simple Java FX GUI.   In your IDE, create a Java FX GUI Project. Call your class .   Follow the example handout in class. Your class should extend from Application, create a stage, add a Scene with a Flow Pane. Add 3 Buttons to a BorderPane, a “Find” Button, a “Clear” Button and an “Exit” Button. Lastly make the Stage visible.

2.)Problem #3: (Simple Exit & Clear Events) Add the Exit Event to your . Make it so that when the user clicks on the Exit button, the application ends. Add the Clear Event to your . Make it so that when the user clicks on the Clear button, the Text on all the Buttons is cleared.

3.)Problem #4: (Add MenuBar to GUI) Now add a Menubar to your . The menubar should have 2 Menus(“File” and “Help”). Under “File” add MenuItems (“Open”, “Close” and “Exit”). Under Help add a MenuItem(“About”).

4.)Problem #5: (MenuItem Exit Event) Again modify your . Now make the “Exit” MenuItem work. This means when the User clicks in the “Exit” MenuItem, the Application will end.

example to be used........................

Solution


import java.awt.Graphics;
public class helwrlds extends java.applet.Applet {
public void init() {
   resize(150,25);
}
public void paint(Graphics g) {
   g.drawString(\"Hello world!\", 50, 25);
}
}

using java i need help for the following problem sets... the example referred is at the end. (You will need to use an IDE to do this Lab. I used NetBeans. Make

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site