 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Marco Filo Guest
|
Posted: Tue Feb 21, 2006 12:12 pm Post subject: NetBeans:purtroppo non ci siamo ancora. |
|
|
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
|
Posted: Tue Feb 21, 2006 12:12 pm Post subject: Re: NetBeans:purtroppo non ci siamo ancora. |
|
|
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 |
|
 |
|
|
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
|
|