-4

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.

Dogux
  • 3
  • 3

1 Answers1

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.

Community
  • 1
  • 1
Zach
  • 4,652
  • 18
  • 22
  • 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
  • How do I make my program runnable jar? – Dogux Jul 25 '14 at 18:07
  • Is there another themes? – Dogux Jul 25 '14 at 20:55