Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2007

Tip: Looking for answers? Try searching our database.

JFileChooser

Thread view: 
Chameleon - 18 Jul 2007 14:01 GMT
I want to open text files with unknown encoding.
I want the user to specify the encoding, so:

In JFileChooser, below combobox with file filters, I want to place a
combobox with textr encoding like utf-8, isoxxxxx etc.
How can I add in JFileChooser an extra combobox?

thanks!
Flo 'Irian' Schaetz - 18 Jul 2007 14:32 GMT
And thus spoke Chameleon...

> In JFileChooser, below combobox with file filters, I want to place a
> combobox with textr encoding like utf-8, isoxxxxx etc.
> How can I add in JFileChooser an extra combobox?

Have a look at <e92jgr$p90$1@online.de>

Flo
Chameleon - 18 Jul 2007 14:40 GMT
O/H Flo 'Irian' Schaetz έγραψε:
> And thus spoke Chameleon...
>
[quoted text clipped - 3 lines]
>
> Have a look at <e92jgr$p90$1@online.de>

what's this?
...an email?
Flo 'Irian' Schaetz - 18 Jul 2007 15:30 GMT
And thus spoke Chameleon...

>> Have a look at <e92jgr$p90$1@online.de>
>
> what's this?
> ...an email?

Message-ID.

Flo
Chameleon - 18 Jul 2007 16:17 GMT
O/H Flo 'Irian' Schaetz έγραψε:
> And thus spoke Chameleon...
>
[quoted text clipped - 5 lines]
>
> Flo

How can I do this with Thunderbird?

PS: I am not a lamer ;-P
Chameleon - 18 Jul 2007 15:27 GMT
O/H Chameleon έγραψε:
> I want to open text files with unknown encoding.
> I want the user to specify the encoding, so:
[quoted text clipped - 4 lines]
>
> thanks!

JFileChooser fc = new JFileChooser(null);
Box enc = Box.createHorizontalBox();
enc.add(new JLabel("Encoding:"));
enc.add(new JComboBox(new String[] {"ISO-11111", "UTF-8"}));
fc.add(enc, BorderLayout.SOUTH);

this code works fine in MSWindows L&F but in Metal L&F when I use this
code, bottom filename textbox, filefilter combobox and buttons, dissapear.

What I can do?


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.