Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #956
| From | "Michael Rauscher" <michael.rauscher@THRWHITE.remove-dii-this> |
|---|---|
| Subject | Re: panel with label, equ |
| Message-ID | <er3s34$q0j$1@registered.motzarella.org> (permalink) |
| Newsgroups | comp.lang.java.gui |
| References | <qh8xezge0y.fsf@ruckus.brouhaha.com> |
| Date | 2011-04-27 15:30 +0000 |
| Organization | TDS.net |
To: comp.lang.java.gui
Eric Smith schrieb:
> When programming with GTK+, I'm accustomed to grouping related
> widgets by putting them in a GtkFrame, which draws a box around
> them and optionally shows a text label. There's an image of
> one (empty) on the GtkFrame documentation page:
>
> http://developer.gnome.org/doc/API/2.0/gtk/GtkFrame.html
>
> Is there some simple equivalent of this in Swing? Perusing the
Sure. The Swig way for having this kind of decorations is to use
borders, in this case it's a javax.swing.border.TitledBorder.
You may use javax.swing.BorderFactory to create them. Example:
panel.setBorder( BorderFactory.createTitledBorder("My Title") );
Bye
Michael
---
* Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24
Back to comp.lang.java.gui | Previous | Next — Previous in thread | Next in thread | Find similar
panel with label, equival "Eric Smith" <eric.smith@THRWHITE.remove-dii-this> - 2011-04-27 15:30 +0000
Re: panel with label, equ "Eric Smith" <eric.smith@THRWHITE.remove-dii-this> - 2011-04-27 15:30 +0000
Re: panel with label, equ ramgarg69@gmail.com.remove-dii-this - 2011-04-27 15:30 +0000
Re: panel with label, equ "Michael Rauscher" <michael.rauscher@THRWHITE.remove-dii-this> - 2011-04-27 15:30 +0000
Re: panel with label, equ ramgarg69@gmail.com.remove-dii-this - 2011-04-27 15:30 +0000
csiph-web