Banned - Reputation: 100
Posted 02 June 2000 - 11:45 PM
Members - Reputation: 122
Posted 06 June 2000 - 09:43 AM
You can kind of do it, but not exactly. The java.awt.Frame and java.awt.JFrame UI components unfortunately use the native windowing systems windows and borders. That''s why they don''t change their Look''n''Feel with the rest of the UI components. But you can work around this by creating an invisible Frame (create a Frame and set its bounds to -100,-100,10,10) with the title you want and then creating an java.awt.Window that has that frame set as its parent. Now you can set that Window''s border to whatever you want. The user will only see this window and believe it is the main window of your program.
I''ve been also wondering why there is no repository for Java look''n''feels. I''ve experimented with making an own l''n''f and it is quite a huge undertaking if you don''t use some other l''n''f as the basis. But someone must have done those...