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 

Swing JTabbedPane

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





PostPosted: Fri Nov 28, 2003 3:27 pm    Post subject: Swing JTabbedPane Reply with quote




E' possibile cambiare il tab selezionato senza farlo 'a mano'
cliccandoci?

Ovvero: cercavo un metodo che permettesse al programma di cambiare tab
e non sono riuscito a trovarlo.

Esiste?
Devo fare in altro modo?

Ciao
Chairam
Back to top
cthulhu
Guest





PostPosted: Fri Nov 28, 2003 4:17 pm    Post subject: Re: Swing JTabbedPane Reply with quote



chairam wrote:
Quote:
E' possibile cambiare il tab selezionato senza farlo 'a mano'
cliccandoci?

Ovvero: cercavo un metodo che permettesse al programma di cambiare tab
e non sono riuscito a trovarlo.

Esiste?
Devo fare in altro modo?

http://java.sun.com/products/jlf/ed1/dg/higi.htm

nel tuo caso le freccie destra/sinistra

Marco

--

reply: remove .duh.spam

http://web.ticino.com/cthulhu/

Back to top
chairam
Guest





PostPosted: Fri Nov 28, 2003 8:20 pm    Post subject: Re: Swing JTabbedPane Reply with quote



Quote:
Esiste?
Devo fare in altro modo?

http://java.sun.com/products/jlf/ed1/dg/higi.htm

nel tuo caso le freccie destra/sinistra

no forse mi sono spiegato male


Illustro lo scenario:
viene lanciato un jFileChooser, l'utente sceglie il file da caricare,
viene aggiunto un tab al jTabbedPanel e viene popolato la grafica,
widgets etc.. estratti dal file.

Il problema è: continua a restare visualizzato il tab selezionato
mentre io vorrei spostare la visualizzazione sul nuovo tab senza che
debba intervenire l'utente.

Ciao
Chairam

Back to top
cthulhu
Guest





PostPosted: Fri Nov 28, 2003 10:42 pm    Post subject: Re: Swing JTabbedPane Reply with quote

chairam wrote:

Quote:
Esiste?
Devo fare in altro modo?

http://java.sun.com/products/jlf/ed1/dg/higi.htm

nel tuo caso le freccie destra/sinistra


no forse mi sono spiegato male

Illustro lo scenario:
viene lanciato un jFileChooser, l'utente sceglie il file da caricare,
viene aggiunto un tab al jTabbedPanel e viene popolato la grafica,
widgets etc.. estratti dal file.

Il problema è: continua a restare visualizzato il tab selezionato
mentre io vorrei spostare la visualizzazione sul nuovo tab senza che
debba intervenire l'utente.

Ciao
Chairam

ahhh, bhe, guarda il metodo setSelectedIndex della classe JTabbedPane.


--

reply: remove .duh.spam

http://web.ticino.com/cthulhu/

Back to top
chairam
Guest





PostPosted: Sat Nov 29, 2003 2:43 am    Post subject: Re: Swing JTabbedPane Reply with quote

Quote:

ahhh, bhe, guarda il metodo setSelectedIndex della classe JTabbedPane.

ahhh cavolo
l'avevo visto ma non avevo inteso bene il funzionamento, è proprio lui
grazie !

già che ci sono ti faccio una domanda sempre relativa a JTabbedPane

sai che differenza c'è tra i metodi add e quelli addtab, sembrano
sinonimi, forse gli add sono ereditati con overriding?
Gli addtab dovrebbero essere propri di JTabbedPane

Ciao
Chairam

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.