You are not logged in.
Pages: 1
I'm trying to write a Java GUI editor using Swing. The program should work cross-platform, while still looking like a native application.
The editor should work with tabs where you can see and select which file to edit.
That's where the problem lies: How does one create tabs with Swing?
There obviously is the JTabbedPane, but it creates tabs like these:
What I would like to create are browser-like tabs, like these:
Is it possible to create such tabs with Swing?
Is there anything else than a JTabbedPane?
EDIT: Maybe this is something usefull? http://bits.netbeans.org/dev/javadoc/or … mmary.html
EDIT 2: I found a little plugin for Netbeans, that also changes the tabbar to what I'd like to have as tabbar. http://code.google.com/p/macbeans/sourc … s/tab/?r=5 I don't understand the code though....
Last edited by MrAllan (2009-03-08 18:26:58)
Offline
Have you tried setting a native lookAndFeel?
http://www.tutorialized.com/view/tutori … Java/10062
though from what I can remember, the linux 'native' look is fairly lame. Does it have to be swing? Iirc SWT looks more native in many cases.
blog - github - facebook - google profile
Offline
http://java.sun.com/docs/books/tutorial … #available <-- this is perhaps a better link.
blog - github - facebook - google profile
Offline
Thanks for your answers!
Yes, I have set the native LaF. Generally, I would like to use Swing, but for the tabbar I'd use SWT, too (if it's possible to mix Swing and SWT).
Offline
Pages: 1