Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Does UIManager.getSystemLookAndFeelClassName() ever fail?  RSS feed

 
Michael Von Thorn
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Simple question - does it ever fail? If so, how should the exception be handled to ensure that the program still runs?
 
Paul Clapham
Sheriff
Posts: 22185
38
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would expect it might fail if you run that code in a headless environment. But ensuring that the program can still run in a headless environment would be pointless, since (I suppose) you plan to continue by displaying a GUI.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!