AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Spessore di un bordo

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java (Italian)
View previous topic :: View next topic  
Author Message
Luca
Guest





PostPosted: Thu Apr 20, 2006 3:12 pm    Post subject: Spessore di un bordo Reply with quote



Salve, qualcuno può spiegarmi come impostare lo spessore del bordo di un
JPane?
Io in genere imposto il bordo in questo modo:

JPanel pannello = new JPanel();
pannello.setBorder(new TitledBorder("Nome riquadro"));

Grazie.
Luca.
Back to top
LittlePoorBoy
Guest





PostPosted: Thu Apr 20, 2006 7:12 pm    Post subject: Re: Spessore di un bordo Reply with quote



BorderFactory.createEmptyBorder() ?

"Luca" <aveng (AT) tin (DOT) it> ha scritto nel messaggio
news:44479ea5$0$29731$4fafbaef (AT) reader2 (DOT) news.tin.it...
Quote:
Salve, qualcuno può spiegarmi come impostare lo spessore del bordo di un
JPane?
Io in genere imposto il bordo in questo modo:

JPanel pannello = new JPanel();
pannello.setBorder(new TitledBorder("Nome riquadro"));

Grazie.
Luca.
Back to top
Luca
Guest





PostPosted: Thu Apr 20, 2006 10:12 pm    Post subject: Re: Spessore di un bordo Reply with quote



Ciao,

dunque sì, ho trovato il metodo createLineBorder(Color color, int thickness)
..

Purtroppo però il metodo mi chiede anche il colore del bordo mentre io
vorrei impostare solo lo spessore e lasciare il colore del bordo alle
impostazioni del sistema su cui gira il programma.
Come posso fare?

Grazie ancora.
Luca-

"LittlePoorBoy" <UNKNOWN (AT) libero (DOT) it> ha scritto nel messaggio
news:4LQ1g.90094$PR2.1422561 (AT) twister2 (DOT) libero.it...
Quote:
BorderFactory.createEmptyBorder() ?

"Luca" <aveng (AT) tin (DOT) it> ha scritto nel messaggio
news:44479ea5$0$29731$4fafbaef (AT) reader2 (DOT) news.tin.it...
Salve, qualcuno può spiegarmi come impostare lo spessore del bordo di un
JPane?
Io in genere imposto il bordo in questo modo:

JPanel pannello = new JPanel();
pannello.setBorder(new TitledBorder("Nome riquadro"));

Grazie.
Luca.

Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.