0

There's a jnlp-program/file I'd like to use that points to a jar that was built to use com.sun.java.swing.plaf.windows.WindowsLookAndFeel. I'm on a osx machine here. The program hangs. Sad smiley. Facepalm. Etc.

Is there any way to modify the jnlp so that I can force something like the Metal look and feel?

I guess I could manually download all the jars, unjar them, decompile the files with Windows look and feel, sed some, recompile, repackage and run.. but that sounds.. Labor intensive. I'm looking for a quick fix here.

zoomix
  • 915
  • 1
  • 6
  • 11
  • Hav a look at [How can I set my Java system look and feel for JNLP apps?](http://stackoverflow.com/questions/2252420/how-can-i-set-my-java-system-look-and-feel-for-jnlp-apps) – MadProgrammer Jun 30 '14 at 06:11
  • If the program is manually changing the look and feel, you may not be able to change it – MadProgrammer Jun 30 '14 at 06:12
  • WindowsLookAndFeel is developed to be runs only on WinOS(own key, mouse events and bugs too), have look at some of custom L&F – mKorbel Jun 30 '14 at 06:51
  • 1
    Setting the PLAF is typically done in the main. If that's the case with this app. figure out what it does in the main, and repeat that in your own main except that yours calls for `UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());` that will work for Windows, and *might* work for OS X and *nix machines. Why 'might'? Because programmers silly enough to hard wire the PLAF might also not use layouts or call `pack()`.. – Andrew Thompson Jun 30 '14 at 08:12
  • It hardcodes the look and feel. It only uses the windows look and feel on certain specific panes. So the program actually runs fine until I try to access that specific pane. – zoomix Jun 30 '14 at 08:13
  • *"It only use the windows look and feel on certain specific panes"* It might be cheaper to write this GUI fresh, than fix the existing one. – Andrew Thompson Jun 30 '14 at 08:14
  • It's not my app to start with. =/ – zoomix Jun 30 '14 at 08:15
  • BTW - be sure to add @mKorbel (or whoever, the `@` is important) to *notify* a person of a new comment. – Andrew Thompson Jun 30 '14 at 08:15
  • *"It's not my app to start with."* Are you *licensed* to use it? Do you host the app. from your own servers? -- Edit. Never mind, my bad. I at first missed the part where this was for *personal use*. – Andrew Thompson Jun 30 '14 at 08:17

0 Answers0