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 

NetBeans:purtroppo non ci siamo ancora.

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





PostPosted: Tue Feb 21, 2006 12:12 pm    Post subject: NetBeans:purtroppo non ci siamo ancora. Reply with quote



Se disegno un'interfaccia grafica con il GUI builder come faccio per
fargli gestire un Component da me creato?
Con Visual Editor in Eclipse, per esempio, questo si riesce a fare il
piu` delle volte non graficamente ma comunque attraverso l'albero dei
componenti.
Grazie ancora.
Back to top
pole
Guest





PostPosted: Tue Feb 21, 2006 12:12 pm    Post subject: Re: NetBeans:purtroppo non ci siamo ancora. Reply with quote



Marco Filo wrote:
Quote:
Se disegno un'interfaccia grafica con il GUI builder come faccio per
fargli gestire un Component da me creato?

Io conosco tre soluzioni:

1) Aggiungi il componente alla palette tramite il Palette Editor
Consigliabile solo se il componente è già stabile e linkabile come
libreria (meglio se dentro un jar)

2) Soluzione JPanel. Nel posto in cui vuoi che compaia il tuo componente
metti un JPanel con BorderLayout. Da codice ti basta fare un add() del
tuo componente dentro il JPanel.

3) http://weblogs.java.net/blog/joshy/archive/2006/02/using_custom_sw.html

Generalmente mi trovo bene con la 2).

Ciao!
pole
--
ammentos - a lightweight persistence framework for JDK5
http://ammentos.biobytes.it
Flash tutorial: http://ammentos.biobytes.it/quickstart/quickstart.htm
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.