| Author |
how i can change a swing application LAF by command line parameters ?
|
raminaa niilian
Ranch Hand
Joined: Jul 14, 2005
Posts: 550
|
|
Hi Thank you for reading my post. is there any way to change an application LAF using some command line arguments ? I luunch the application by using a bat file , just using java -jar ramina.jar now i want to change the LAF using some runtime parameter , is it do able ? Thank you
|
 |
Balachandran Paranjothimani
Ranch Hand
Joined: Jun 18, 2005
Posts: 43
|
|
A simple search on Google shows how: Specifying the Look and Feel: Command Line You can specify the look and feel at the command line by using the -D flag to set the swing.defaultlaf property. For example: java -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel MyApp java -Dswing.defaultlaf=com.sun.java.swing.plaf.windows.WindowsLookAndFeel MyApp
|
Moderator : <a href="http://groups.yahoo.com/group/OOAD_UML/" target="_blank" rel="nofollow">http://groups.yahoo.com/group/OOAD_UML/</a><br />Home : <a href="http://www.zepho.com" target="_blank" rel="nofollow">http://www.zepho.com</a>
|
 |
Gregg Bolinger
Ranch Hand
Joined: Jul 11, 2001
Posts: 15230
|
|
|
Moving to the Swing forum.
|
 |
 |
|
|
subject: how i can change a swing application LAF by command line parameters ?
|
|
|