JFileChooser

C

Chameleon

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!
 
F

Flo 'Irian' Schaetz

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 <[email protected]>

Flo
 
C

Chameleon

O/H Chameleon Ýãñáøå:
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!

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,262
Messages
2,571,049
Members
48,769
Latest member
Clifft

Latest Threads

Top