English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

2006-11-14 02:05:03 · 3 answers · asked by ram 1 in Computers & Internet Programming & Design

3 answers

i dont really understand ur question, but Java is a multi platform language... a java files compiled in a Windows platform can be used on a Linux platform

2006-11-14 02:16:30 · answer #1 · answered by Anonymous · 0 0

Maybe you are using the wrong word. Java is "platform independent". Whoever runs your code will need the JRE -- java runtime engine.

If you mean how it should look, that is part of the java look-and-feel Swing library. All of the component widgets that start with "J".

You have to call the UIManager first BEFORE any components

try {
UIManager.setLookAndFeel(
UIManager.getCrossPlatformLookAndFeelClassName());
} catch (Exception e) { }

This is an advance topic. These examples show it can be done in code. The java tutorials have example code. Note that you can only run the Windows LookAndFeel on Windows-running machines.

The other way to set L+F is the command line when you start your program

java -Dswing.defaultlaf=com.sun.java.swing.plaf.windows.WindowsLookAndFeel MyApp

This all has to happen logically, in a thread and it does not interrupt your main program thread. Study the code in the tutorials. I use the L&F very rarely.

2006-11-14 10:43:54 · answer #2 · answered by Anonymous · 0 0

Please just select the Place where U R going to work in the HTML.

2006-11-14 10:11:56 · answer #3 · answered by Ramasubramanian 6 · 0 0

fedest.com, questions and answers