• 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: 22819
43
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.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!