JOptionPane HELP PLEASE (New) [message #1776498] |
Fri, 17 November 2017 04:25 |
Alexis Michaud Messages: 2 Registered: November 2017 |
Junior Member |
|
|
Hello,
I need help to know how to import classes.
Especially the javax.swing.JOptionPane
(My Java package(if that's the way it's called...?) is linked below. There is french(CA) notes in my program, but those are useless)
Here's my code :
(Beginning)
import javax.swing.JOptionPane;
public class Bonjour {
public static void main(String[] args) {
JOptionPane.showMessageDialog(null, "Voici mon premier programme java");
}
}
(End)
I would just like it show "Voici mon premier programme Java" in a window.
I have no error, but when I run it, nothings happen...
No window appears, nothing in console, anywhere....
Help me please, I'm so disappointed that my very first program is a total fail, and it should be so easy...
Thanks :)
-
Attachment: Bonjour.java
(Size: 0.38KB, Downloaded 186 times)
|
|
|
|
|
Re: JOptionPane HELP PLEASE (New) [message #1776592 is a reply to message #1776562] |
Sat, 18 November 2017 08:23 |
Ed Merks Messages: 33216 Registered: July 2009 |
Senior Member |
|
|
This forum is for helping to use Eclipse technology (the IDE and the frameworks), not for helping understand how to use some arbitrary Java framework. Have you tried things like setting a breakpoint and stepping into that method, or adding a print statement before and after the showMessageDialog to see if the code is executing at all?
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.07109 seconds