Hi,

 Thanks for the reply. This does not seems to work for filepath. I have
vector which returns name of the directories from the current dir & display
that in the combobox. I am not sure why this wouldn't work. Any other
suggestion please.

Selvi.

-----Original Message-----
From: Kevin Snow [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 27, 2001 11:57 AM
To: 'Ramaraj Kalaiselvi'
Subject: RE: How to right align the items in the editable combobox


Maybe you could use this example to solve your problem?

http://www2.gol.com/users/tame/swing/examples/JComboBoxExamples1.html

> -----Original Message-----
> From: Ramaraj Kalaiselvi [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 27, 2001 11:21 AM
> To: [EMAIL PROTECTED]; '[EMAIL PROTECTED]'
> Subject: How to right align the items in the editable combobox
> 
> 
> Hi All:
> 
>        How to right align the items in an editable combobox 
> instead of left
> align. That way the user can see the right most part of the 
> file path &
> select.
> 
>  For eg:
> 
>      /d1/users/rrr/ttt.dat
>     /d1/users/rrr/test.dat
>    /d1/users/rrr/aaa.dat
> 
>       Now the combobox only shows until "/d1/users/rrr/" as later part
> "ttt.dat" is hidden by combobox. With this user might not 
> know what is the
> exact name of file. If the display is like this 
> "/rrr/ttt.dat" then the user
> can know what they want to select. "/d1/users/" can be 
> hidden. Basically i
> want to right align instead of left align. I cannot increase 
> the size of the
> combobox as the file will be different every time. Can 
> someone help me with
> this. I would greatly appreciate it. Thanks a lot. BTW this is kind of
> urgent.
> 
> Regards,
> Selvi.
>    
> 
> _______________________________________________
> Swing mailing list
> [EMAIL PROTECTED]
> http://eos.dk/mailman/listinfo/swing
> 
_______________________________________________
Swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/swing

Reply via email to