I made a program that has Buttons
and TextFields
and is it possible to make and feel like real program. And render the program so that i can run in folders etc.
Asked
Active
Viewed 474 times
-4

Dogux
- 3
- 3
-
Is Java's swing library what you are looking for? There are a bunch of tutorials online. Looks like Eclipse has "windowbuilder" for building GUIs. – Mageek Jul 25 '14 at 17:53
-
It doesn't look like you did any research... just Google "java GUI tutorial" and you'll find plenty. – Jashaszun Jul 25 '14 at 18:00
-
Like a "real program"?! – Michael Berry Jul 25 '14 at 18:00
1 Answers
0
In Java you can use Swing or JavaFx to make GUI applications. Here is another link for JavaFx.
If you want to export your GUI as an application that you can double click and run from your Desktop, you can export as a runnable jar
. To do this in eclipse go to File -> export -> Java -> Runnable Jar
and then choose the destination etc... Also see this answer for more information on different ways to make a java file executable.
-
Thanks, but I didn't mean how to make them i meant how to render them like real program – Dogux Jul 25 '14 at 18:00
-
@Dogux Do you mean that you want to make the Java GUI look like a native application instead of the Java look-and-feel? If so then you really need to clarify that in your question. – Jashaszun Jul 25 '14 at 18:01
-
1@Dogux If that's the case, then you want `UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());` (if you're using Swing.) If you're using JavaFX, then this isn't possible at present, since no native-like skins have been created that I'm aware of. – Michael Berry Jul 25 '14 at 18:01
-
Yes, Thanks, and the that I asked was I can only run my GUI programs in eclipse i want to run them on the desktop or something – Dogux Jul 25 '14 at 18:03
-
You can run swing and javafx applications from the Desktop if you export them as a `runnable jar` Then you can double click their icon on the desktop them to run them – Zach Jul 25 '14 at 18:05
-
-