Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

572
Views
How can I make a Java cross-platform GUI application (Windows, Linux)? What tools should I use?

I'm new to Java GUI programming and I want to make a Java GUI application which can run both in Windows and Linux with the same code (the same executable/object file).

Is that possible without any compatibility problems/errors/bugs?

What else (like libraries, classes, packets) will I need to be able to design the GUI in Java?

Should these libraries be present in every computer and every OS to be able for the application to run? Or the Java Virtual Machine (JVM) installed on a computer is enough?

over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

Swing is the framework that can help you write GUI applications in Java. Have a look at the Swing tutorial from Oracle: http://docs.oracle.com/javase/tutorial/uiswing/

About platform compatibility: Most Linux distribution installs OpenJDK (open source alternative of Java) as default Java compiler. Mostly it works fine with the program written with Oracle JDK. But if you want to be sure, you can install Oracle JDK on Linux too.

About development IDE: Eclipse and Netbeans are both available across multiple platforms including Windows and Linux.

over 4 years ago · Santiago Trujillo Report

0

  1. Before bothering about nice GUI's you should get yourselfs a deeper insight into Java.
  2. Java is always platform independent if you aren't using any special native libraries.
  3. I recommend coding the GUI yourself. I don't even know whether there are some GUI wizards. I recommend Eclipse, but that's purely opinion based...
  4. To get a cross-platform GUI which looks on every platform as a native program yould on the same, I'd recommend the Swing toolkit (javax.swing.*, already included into JRE/JDK)
over 4 years ago · Santiago Trujillo Report

0

Swing will do this for you. It's not as pretty as native UI, but it works well and doesn't require any 3rd party libraries: http://docs.oracle.com/javase/tutorial/uiswing/

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!