Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | "Dr.UgoGagliardelli" <do.not.spam@me.please> |
|---|---|
| Newsgroups | it.comp.java |
| Subject | Re: Domande su JTextField e JLabel |
| Date | 2017-06-24 14:22 +0200 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <oilli4$mve$1@gioia.aioe.org> (permalink) |
| References | <oilgr2$evu$1@gioia.aioe.org> |
Il 24.06.2017 13.01, Oliviero ha scritto: > Ho due domande: > > 1) come si fa a sapere la lunghezza di un JTextField o di una JLabel? Una volta che e' visible, getSize().width Altrimenti in base alle colonne del JTextField o alla lunghezza del text dell JLabel. In ogni caso, se sono state impostate le proprieta' minimumSize, preferredSize e maximumSize, il layout manager potrebbe utilizzarle. > > 2) come si fa a colorare un JTextField o una JLabel? In tutti i JComponent c'e' setForeground e setBackground.
Back to it.comp.java | Previous | Next — Previous in thread | Find similar
Domande su JTextField e JLabel Oliviero <abcxyz@micso.net> - 2017-06-24 13:01 +0200 Re: Domande su JTextField e JLabel "Dr.UgoGagliardelli" <do.not.spam@me.please> - 2017-06-24 14:22 +0200
csiph-web