JavaWS JFileChooser Problem

Hi there, i am trying to use javawebstart to deliver my application.
By now i loaded some resources stored inside the jar of the application using the
functionalities provided by java.
However when i try to open a file in the user file system,
or particularly when i create a new JFileChooser window.. a security exception is thrown..
I referred to this article to reconstruct a similar version of jFileChooser for resources inside
the jar file. http://forum.java.sun.com/thread.jspa?threadID=646569&messageID=3807781
Have you any idea on how to load userspace file avoiding security exceptions?
Thanks Andrea
P.s.
I already posted this topic in the wrong place :( i hope this is a more correct one.
And you can heko me.

in another message i found out this 2 possible solutions:
"You can use the jnlp api for FileOpenService/FileSaveService, or use signed application"
however my application is signed as you can see here:
and i still have that error..
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="http://tallia1.myftp.org/shared-folder/">
<information>
<title>My Java Parametrizer</title>
<vendor>Andrea Tagliasacchi @ SFU </vendor>
<homepage href="http://tallia1.myftp.org" />
<description>Demonstration of JNLP</description>
</information>
<offline-allowed/>
<security>
<all-permissions/>
</security>
<resources>
<j2se href="http://java.sun.com/products/autodl/j2se" version="1.2+" />
<jar href="./myJavaParametrizer.jar"/>
<jar href="./jogl.jar"/>
<property name="sun.java2d.noddraw" value="true"/>
<property name="ATI_WORKAROUND" value="false"/>
</resources>
<resources os="Windows">
<j2se href="http://java.sun.com/products/autodl/j2se" version="1.4+"/>
<nativelib href="lib/jogl-natives-win32.jar"/>
</resources>
<resources os="SunOS" arch="sparc">
<j2se href="http://java.sun.com/products/autodl/j2se" version="1.4+"/>
<nativelib href="lib/jogl-natives-solsparc.jar"/>
</resources>
<resources os="Linux">
<j2se href="http://java.sun.com/products/autodl/j2se" version="1.4+"/>
<nativelib href="lib/jogl-natives-linux.jar"/>
</resources>
<resources os="Mac OS">
<j2se href="http://java.sun.com/products/autodl/j2se" version="1.4+"/>
<nativelib href="lib/jogl-natives-macosx.jar"/>
</resources>
<application-desc main-class="gui.smf_view" />
</jnlp>

Similar Messages

  • JFileChooser problem with Windows Vista

    Hi,
    I running into the following problem.
    I am using JFileChooser in some of the JInternalFrames in my application. When I using Windows XP everthing works perfectly.
    Now Here is the issues, I have a new user using the application. His computer is Windows Vista and the error comes when I am using JFileChooser.
    I need to know I need to put another file or update ANYTHING ON WINDOWS VISTA FOR THIS JFileChooser to work.
    I appreacite your help and time.
    Wilfer
    CDC

    That's not an error from Java, as far as I know. Something else is producing it. Look over these search results for a case that matches what you see:
    http://www.google.com/search?q=error+31849

  • JFileChooser problem - it will not display

    I have read the tutorial on JFileChoosers and understand the basics, however, my application will simply not display a File Chooser. I select the menu option "open file" and the command prompt window just spews out dozens of garbage. The code is below if there are any FileChooser "Pros" out there. The FileChooser is selected for loading in the actioPerformed method. Thanks for any assistance.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.border.*;
    import java.io.*;
    import java.util.*;
    import javax.swing.JFileChooser;
    import javax.swing.filechooser.*;
    public class DissertationInterface extends JFrame implements ActionListener
         private JPanel onePanel, twoPanel, bottomPanel;
           private JButton quit,search;
           private JMenuBar TheMenu;
           private JMenu menu1, submenu;
         private JMenuItem menuItem1;
         private JFileChooser fc;          //FILE CHOOSER
           private BorderLayout layout;
           //Canvas that images should be drew on
           //drawTheImages Dti;
           //Instances of other classes
         //DatabaseComms2 db2 = new DatabaseComms2();
         //Configuration cF = new Configuration();
           public DissertationInterface()
                setTitle("Find My Pics - University Application") ;
                layout = new BorderLayout();          
                Container container = getContentPane();
                container.setLayout(layout);
                //Dti = new drawTheImages();
              //container.add(Dti);
                quit = new JButton("Quit");
                search = new JButton("Search");
                TheMenu = new JMenuBar();
                setJMenuBar(TheMenu);
                //FILE CHOOSER
                JFileChooser fc = new JFileChooser();     
                fc.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);
                //First menu option = "File";
                menu1 = new JMenu("File");
              TheMenu.add(menu1);
                //Add an option to the Menu Item
                menuItem1 = new JMenuItem("OPEN FILE",KeyEvent.VK_T);
            menuItem1.setAccelerator(KeyStroke.getKeyStroke(
            KeyEvent.VK_1, ActionEvent.ALT_MASK));
              menu1.add(menuItem1);
              menuItem1.addActionListener(this);          //action listener for Open file option
                //CREATE 3 PANELS
                onePanel = new JPanel();
                onePanel.setBackground(Color.blue);
                onePanel.setLayout(new FlowLayout(FlowLayout.CENTER, 200, 400)) ;
                twoPanel = new JPanel();
                twoPanel.setBackground(Color.red);
                twoPanel.setLayout(new GridLayout(5,2,5,5));
                bottomPanel = new JPanel();
                bottomPanel.setBackground(Color.yellow);
                bottomPanel.setLayout(new FlowLayout(FlowLayout.CENTER,10,10));
              //ADD COMPONENTS TO THE PANELS
                //Add the menu bar and it's items to twoPanel
              twoPanel.add(TheMenu, BorderLayout.NORTH);
              twoPanel.setAlignmentY(LEFT_ALIGNMENT);
                bottomPanel.add(quit);
                quit.addActionListener(this);          //action listener for button
                bottomPanel.add(search);
                search.addActionListener(this);          //action listener for button
                //ADD PANELS TO THE WINDOWS
                container.add(onePanel, BorderLayout.CENTER);
                container.add(twoPanel,BorderLayout.NORTH);            
                container.add(bottomPanel, BorderLayout.SOUTH);
                //setSize(350,350);
                setVisible(true);
              }//END OF CONSTRUCTOR
            public void leaveWindow()
                 this.dispose() ;
            public static void main(String args[])
            DissertationInterface DI = new DissertationInterface();
            DI.setVisible(true);
            //Display the window.
            DI.setSize(450, 260);
            DI.setVisible(true);
            DI.pack();
         }//End of main method
         protected void processWindowEvent(WindowEvent e)
                super.processWindowEvent(e);
                if(e.getID()== WindowEvent.WINDOW_CLOSING)
                      System.exit(0);
              }//End of processWindowEvent
    //method to resolve button clicks etc
    public void actionPerformed(ActionEvent e)
              //PROBLEM IS HERE !!!!!!! - why won't the file dialogue box open
              if(e.getActionCommand().equals("OPEN"))
                   int returnVal = fc.showOpenDialog(DissertationInterface.this);
                 else if(e.getActionCommand().equals("Quit"))
                      //closeDialog();
                      System.out.println("User interface exited");
                      System.exit(1);
                      leaveWindow();
              else if(e.getActionCommand().equals("Search"))
                      //pass params to database                                 
                 }//end of else if
    } //end of method ActionPerformed
    }//End of class DissertationInterface

    I have done as stated, code compiles/executes but when I select the open file option on my GUI, the command prompt window freezes and no dialogue box is displayed!!!!

  • Jfilechooser - problem with windows mapped dirs

    My Documents, Desktop and other windows mapped directories
    or network drives cause performance problems for the java file
    chooser class.
    I think because the file chooser has to resolve
    ambiguous paths for each file.
    i.e.
    1. Desktop\My Documents\myfile.doc
    2. c:\documents and settings\me\My Documents\myfile.doc
    3. Desktop\My Computer\c:\documents and settings\me\desktop
    4. Desktop\My Computer\c:\documents and settings\me\my
    documents\myfile.doc
    Most of our users are using xp and save most of their
    files to the My Documents directory.
    I need to find some work around. If this is not possible
    I could do with some tips on writing a directory service
    that will perform better on windows architecture.
    regards,
    Paul Cunningham

    It's still a serious problem. I am using WinXP with java 1.4.1_01. A folder on a mapped network drive with about 450 files in it takes an enormous amount of time to open & display. Once the file icons appear in the JFileChooser, scrolling and selecting in the JFileChooser is horrendously unresponsive.
    This problem (or related ones) seems to have been around for a long time. I wonder why it doesn't get fixed?
    - Dave P. -

  • JFileChooser problem under Linux

    I am using a JFileChooser component to allow a user to select files for which status information is displayed in my gui.
    I am using a native method to get permissions etc on the choosen file and everything works well. If the user chooses a file which is actually a link or a fifo or a device node or a regular file, everthing works fine - the JFileChooser returns the File selected. I use the File.getPath() function and my native method gives me back permission information for display.
    My problem is when I enable multiple selections in the JFileChooser. For regular files, links, directories it works fine. But if the user try's to select a file which is actually a device node then the JFileChooser won't allow the user to select one.
    Is there any way I can overcome this problem?
    TIA
    Paul

    Hi,
    Windows is completely open and permissible regarding to user permissions. Linux is not. Check if the user you are trying to execute this java file has the permission to open a socket, for example. If he doesn't have it, then an exception would occur.
    Regards,
    Filipe Fedalto

  • JFilechooser Problem

    Hi,
    i have 2 problems with filechooser(jdk1.4.2)
    How can i deduct the change of Filetype in the Filechooser Combobox ,since
    i am entering some filename in the textfield of FC , if i change the File type the text inside the textfield is deleted .. i dont want to delete the text if i choose "all files " ..Can anyone suggest me how to do..?
    2.If i do some file/dir search for some letter ,the Scrolbar in List is not moving ,
    but the character is selected ..
    Regards
    Ganesan S

    You can add a PropertyChangeListener to JFileChooser and listen for JFileChooser.FILE_FILTER_CHANGED_PROPERTY events. The problem you describe is covered by the following bug report:
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4678049

  • Resizng JFileChooser problem!!

    Hi,
    i have really wierd problem with JFileChooser.FileChooser is displayed very wide.It fills my screen.I use j2sdk1.4 and Windows XP.I used
    fileChooser.setPreferredSize(new Dimension(450,280));
    it is resized.But now ComboBox that allows me to choose where to save file is shown too long.Also buttons for "up one level","list","details" are not displayed.Please help me.
    greetings

    This is because there is a long string in the drop-down list at the top (possibly you have a meapped drive with a long path). For some reason (a bug?) JFileChooser seems to resize the dor-down list (and hence itself) to fit the longest path - at least on XP

  • JFileChooser problem opening just java files

    Hi everyone, trying to write simple text ed. that will only open java files (part of JFileChooser). Yes have looked at API but so stupid that i couldnt get it to work can anyone help?
    public void openFile() {
              BufferedReader in = null;
              try {
                   JFileChooser chooser = new JFileChooser();
                   //---Open Java Files only---
                   if (chooser.showOpenDialog(null)
                   == JFileChooser.APPROVE_OPTION) {
                   File selectedFile = chooser.getSelectedFile();          
                   in = new BufferedReader
                             (new FileReader(selectedFile));
         catch(FileNotFoundException e) {
              JOptionPane.showMessageDialog
                   (null, "Bad Filename. Try Again");
         catch(IOException e) {
              JOptionPane.showMessageDialog
                   (null, "Corrupted File. Try Again");
         finally {
              if (in != null)
                   try {
                        StringBuffer buffer = new StringBuffer();
                        String text = new String();
                        text_chat.setText(text + "\n\n");
                        while((text=in.readLine())!=null)
                             buffer.append(text+ "\n");
                        text_chat.setText(buffer.toString());
                   catch(IOException e) {
                        JOptionPane.showMessageDialog
                             (null, "Error closing File.");
    }

    Can you tell me how did you solve the problem? Right now I am encounter ing the same problem. The java files on JFileChooser did not show up!

  • JFileChooser Problem (Extra Window)

    Hi, when i run my code i curently am getting an extra window when i press open or cancel in my GUI for my JFileChooser. below is an example of what im initializing.
        private void jbInit() throws Exception
        contentPane = (JPanel) getContentPane();
        contentPane.setLayout(xYLayout1);
        setSize(new Dimension(570, 307));
        setTitle("Open File");
        jFileChooser1.setMaximumSize(new Dimension(570, 307));
        jFileChooser1.setMinimumSize(new Dimension(570, 307));
        jFileChooser1.setPreferredSize(new Dimension(570, 307));
        contentPane.add(jFileChooser1, new XYConstraints(4, 0, -1, -1));
        jFileChooser1.addChoosableFileFilter(objectFilter);
        jFileChooser1.addChoosableFileFilter(textFilter);
        jFileChooser1.setMultiSelectionEnabled(false);
        jFileChooser1.setAcceptAllFileFilterUsed(false);
        int returnVal = jFileChooser1.showOpenDialog(this);
        //Figure out how to destroy the extra thing from below statement.
        if (returnVal == jFileChooser1.APPROVE_OPTION)
          selectedFile = jFileChooser1.getSelectedFile().getName();
          selectedDirectory = jFileChooser1.getCurrentDirectory().toString();
          if (true == textFilter.getSelected())
              setExtension("txt");
          if (true == objectFilter.getSelected())
              setExtension("obj");
        if (returnVal == jFileChooser1.CANCEL_OPTION)
          setExtension("Cancel");
        }If any more code is needed ask away.
    i really have no clue why the extra window is there i have tried this.dispose() and other things to try and get rid of it but nothing seems to work.
    Any help is greatly appreciated.

    We see no problems running your example code.
    import java.awt.*;
    import java.io.File;
    import javax.swing.filechooser.*;
    import javax.swing.*;
    // import com.borland.jbcl.layout.XYLayout;
    // import com.borland.jbcl.layout.*;
    public class OpenFrame extends JFrame{
    //  File file = new File("C:\\");
      File file = new File(".");
      JFileChooser jFileChooser1 = new JFileChooser(file);
      String selectedFile = null;
      String selectedDirectory = null;
    //  ObjectFilter objectFilter = new ObjectFilter();
      TextFilter textFilter = new TextFilter();
      JPanel contentPane;
      public OpenFrame(){
        try {
          setDefaultCloseOperation(DISPOSE_ON_CLOSE);
          jbInit();
        } catch (Exception exception) {
          exception.printStackTrace();
      private void jbInit() throws Exception{
        contentPane = (JPanel) getContentPane();
    //    contentPane.setLayout(xYLayout1);
        setSize(new Dimension(570, 307));
        setTitle("Open File");
        jFileChooser1.setMaximumSize(new Dimension(570, 307));
        jFileChooser1.setMinimumSize(new Dimension(570, 307));
        jFileChooser1.setPreferredSize(new Dimension(570, 307));
    //    contentPane.add(jFileChooser1, new XYConstraints(4, 0, -1, -1));
    // contentPane.add(jFileChooser1, BorderLayout.CENTER); // useless
        jFileChooser1.addChoosableFileFilter(textFilter);
        jFileChooser1.setMultiSelectionEnabled(false);
        jFileChooser1.setAcceptAllFileFilterUsed(false);
        int returnVal = jFileChooser1.showOpenDialog(this);
        if (returnVal == jFileChooser1.APPROVE_OPTION){
          selectedFile = jFileChooser1.getSelectedFile().getName();
          selectedDirectory = jFileChooser1.getCurrentDirectory().toString();
    System.out.println(selectedDirectory + "/" + selectedFile);
    System.exit(0);
    public static void main(String[] args){
      new OpenFrame();
    //The class for the textFilter.
    class TextFilter extends javax.swing.filechooser.FileFilter{
      public boolean accept(File f){
        return f.isDirectory() || f.getName().toLowerCase().endsWith(".txt");
      public String getDescription(){
        return ".txt files";
    }

  • JFileChooser problem - A bug ???

    Hi all,
    i am facing a unique problem with the JFileChooser. when i go to the "Look in" drop down list and select "Network Neighborhood", what i expect is to get a list of all computers on my LAN. i do get it, but the filechooser does seem to recognise the system names. the names that r displayed seem to be kind of substrings of "Network".
    E.g: etwork, ft Network, soft Network etc..., instead of proper system names.
    but when i double click on a folder, then it displays the shared folder names correctly, and also identifies the system name. it says something like:
    "folderName" on "systemName"
    if the filechooser is able to recognise the system name here, then why does it not display the system names properly in the aforesaid place (ie, when i select Network Neighborhood) initially.
    am running jdk ver 1.4, on a windows 98 system. is it somekind of a bug or am i missing something that i need to do ? could not find any help from the API.
    any idea anyone ???
    thanks
    - satyen

    1.4.2 has a fix for JFileChooser, although I am not
    sure its this problem, or hopefully the one I see
    often, when I click the drop down box to navigate to a
    network drive, it sometimes takes a VERY long time, on
    the order of hours, for the drop down to show up. On
    of our clients is seeing this now, so I am not sure
    why this is.The problem here is that Windows98 Network communication is appalling slow a lot of the time and some bits of it is broken.
    Getting the members list from a network can take an age simply because you sometimes have to broadcast a query on that network to find all the machines on it. This is not a Java related problem (although I suspect that VM support for Windows98 has slipped in priority ).

  • JFileChooser problems

    Hi
    I've written a small GUI for a college project. I have 2 JFileChoosers one which gets a single file(this works fine), the second I have set to directories only and I want to retrieve a File []. This doesn't seem to work it just returns an empty File []. I've tried using the myJFileChooser.getSelectedFiles method and
    File a = JFileChooser.getSelectedFile();
    File [] b = a.listFiles();
    but neither have worked. Here's my code bellow. Thanks in advance for the help
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    public class Simple extends JFrame
         private JFileChooser jpegF;
         private JFileChooser gpx;
         private Toolkit toolkit;
         //private File gpxFile;
         //private File [] jpegFolder;
         private JTextField outputFile;
         private JLabel outText;
         public Simple()
              setSize(300,300);
              setTitle("Simple");
              setDefaultCloseOperation(EXIT_ON_CLOSE);
              toolkit = getToolkit();
              Dimension size = toolkit.getScreenSize();
              setLocation(size.width/2 - getWidth()/2, size.height/2 - getHeight()/2);
              JPanel panel = new JPanel();
              getContentPane().add(panel);
              outText = new JLabel("Enter Name for route:");
              panel.setLayout(null);
              outputFile = new JTextField();
              jpegF = new JFileChooser();
              jpegF.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
              jpegF.setMultiSelectionEnabled(true);
              JButton jpegB = new JButton("Select JPEG Folder");
              JButton gpxB = new JButton("Select GPX File");
              jpegB.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent e){jpegF.showOpenDialog(null); }});
              gpx = new JFileChooser();
              gpxB.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent e){gpx.showOpenDialog(null); }});
              //gpxFile = gpx.getSelectedFile();
              //File curDir = jpegF.getSelectedFile();
              //jpegFolder = jpegF.getSelectedFiles();
              //jpegFolder = curDir.listFiles();
              System.out.println("Num of pics: "+ jpegFolder.length);
              JButton run = new JButton("Run");
              run.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent e){photoTrail.run(gpx.getSelectedFile(),jpegF.getSelectedFiles(), outputFile.getText());}});
              run.setBounds(75, 185, 150, 30);
              gpxB.setBounds(75,25,150,30);
              jpegB.setBounds(75,75,150,30);
              outputFile.setBounds(75,135,150,30);
              outText.setBounds(75,105,150,30);
              panel.add(gpxB);
              panel.add(run);
              panel.add(jpegB);
              panel.add(outputFile);
              panel.add(outText);
              }

    This works fine for me, and print the selected directories.
    JFileChooser chooser = new JFileChooser();
    chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
    chooser.setMultiSelectionEnabled(true);
    int retVal = chooser.showOpenDialog(frame);
    if (retVal == JFileChooser.APPROVE_OPTION) {
        File[] files = chooser.getSelectedFiles();
        for (File f : files)
            System.out.println(f);
    }If you want further help post a Short, Self Contained, Compilable and Executable, Example Program (SSCCE) that demonstrates the problem.

  • Resizing JFileChooser problem!!!

    Hi,
    i have really wierd problem with JFileChooser.FileChooser is displayed very wide.It fills my screen.I use j2sdk1.4 and Windows XP.I used
    fileChooser.setPreferredSize(new Dimension(450,280));
    it is resized.But now ComboBox that allows me to choose where to save file is shown too long.Also buttons for "up one level","list","details" are not displayed.Please help me.
    greetings

    Thanks
    I have updated Nvidia drivers, will try and reproduce problem.
    Hopefully I can't

  • JProgressBar & JFileChooser Problem!

    Hi! I'm writing an application for reading the names of all files in one CD/DVD and I runned into an error. The CD/DVD Drive is choosen with JFile Chooser.
    This is the code:
                    dia = new JFileChooser();
              dia.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
              int option = dia.showOpenDialog(this);
                   if(option==JFileChooser.APPROVE_OPTION)
                        zacuvajPodatoci(dia.getSelectedFile().toString());
    public void zacuvajPodatoci(final String path)
              citajB.setEnabled(false);
              cdTitle.setEnabled(false);
              canticeBr.setEnabled(false);
              redBr.setEnabled(false);
              File file = new File(path);
              File files[] = file.listFiles();
              Vector dirs = new Vector();
              pbar.setMaximum(files.length);
              for(int i=0; i<files.length; i++)
                   if(files.isDirectory())
                        v++;
                        dirs.add(files[i].toString());
                        updateProgressBar();
                   System.out.println(files[i].toString());
    private void updateProgressBar() {
                        pbar.setValue(v);
    Now when OK is clicked the app blocks, the file chooser doesn't dissapeare, and when the method is over, then the GUI is upadated and then I see the progress bar at 100%. What sould I do? I must see the progress bar while the method is running. Please help!

    Same old problem:
    http://forum.java.sun.com/thread.jspa?forumID=57&threadID=688630

  • JFileChooser problems in GTK look&feel

    Hi,
    the JFileChooser dialog is just ugly and not acceptable when using the GTK look&feel, there are so many layout problems and display errors. It also does not look like the native dialog. I'm using Ubuntu Linux 7.10 and Gnome 2.20.
    My application uses the GTK look&feel, because most of the normal widgets look nice. Is there a way to use the same JFileChooser dialog layout as it is in the Metal look&feel when using the GTK look&feel? This would be an acceptable workaround...
    Thanks,
    Stefan

    I don't believe it will be supported under any platform but *nix platforms.  The GTKLookAndFeel currently requires native theme information which is not available on the Windows platform.                                                                                                                                                                                                                                                                                                                                                                                       

  • Help with "simple" JFileChooser problem...

    Hi all,
    how do I set the font in a JFileChooser???
    I have tried everything, but it always uses the Look & Feels default font setting. Can I change the default Look&Feels font setting?
    Greatfully for any suggestions!
    Cheers
    Anders ;-D

    Hello!
    You can use the UIManager, e.g. UIManager.put("FileChooser.font", new Font("Arial",
    Font.BOLD, 14);
    Well, that didn't seem to help with my case either. So I tried something else: I overrided all of the defaults by using UIManager.put(key, value) this way I got all of the Fonts in the JFileChooser to change.
    Correct me if I'm wrong... ;)
    - Cathra -
    Sample Code that performs the requested:
    // Prepare the resources
    FontUIResource font12Arial = new FontUIResource( "Arial", Font.PLAIN, 12 );
    // Put values into UIDefaults (before initializing the JFileChooser)
    UIManager.put( "ToolTip.font", font12Arial );
    UIManager.put( "OptionPane.messageFont", font12Arial );
    // shown for example
    UIManager.put("FileChooser.openButtonText", "OpenUp");
    UIManager.put("Button.font", font12Arial);
    UIManager.put("Label.font", font12Arial);
    UIManager.put("Table.font", font12Arial);
    UIManager.put("TextField.font", font12Arial);
    UIManager.put("ScrollPane.font", font12Arial);
    UIManager.put("ComboBox.font", font12Arial);
    UIManager.put("CheckBox.font", font12Arial);
    UIManager.put("TitledBorder.font", font12Arial);
    UIManager.put("RadioButton.font", font12Arial);
    UIManager.put("ToolTip.font", font12Arial);
    UIManager.put("TextPane.font", font12Arial);
    UIManager.put("TextArea.font", font12Arial);
    UIManager.put("Tree.font", font12Arial);
    UIManager.put("List.font", font12Arial);
    UIManager.put("MenuBar.font", font12Arial);
    UIManager.put("Menu.font", font12Arial);
    UIManager.put("MenuItem.font", font12Arial);
    UIManager.put("TableHeader.font", font12Arial);
    UIManager.put("TabbedPane.font", font12Arial);
    // somewhere in the code:
    JFileChooser c = new JFileChooser();
    c.showOpenDialog(aParentFrame);

Maybe you are looking for

  • F.01 (RFBILA00) not taking the period specified on selection screen for com

    Hi Experts, Whenever we execute this report, it always takes the output from the start of the year. It does not take into account the u201Cfromu201D and u201CTou201D period which we specify on the selection screen. How to modify this report? Not able

  • Nokia Video Cable for n95 vs Cheap Video cable, wh...

    Hey, so im interested into understanding why the nokia video cable for n95 costs around 40€ in my country while you can get a very very cheap one for no more than 6€. What are the advantages of nokia 1 vs a normal 1? does it scale the image to a high

  • Backing up via HD directly and wireless network

    If you backup on the same hard drive connected via USB and then connect afterwards via wifi through the router, does the software recognise its the same hard drive to backup from? E.g. will I have to start from scratch again when backing up via wifi?

  • Computer won't stay authorized for ADE

    I can't track down this problem.  Previous threads have indicated that this is related to trouble writing to the registry, possibly from an antivirus program, registry cleaner or "permissions issue". After using a selective startup to disable all non

  • Start up disk full need help freeing up space.

    My start up disk almost full.  Shows 137 GB in "other category"  Have been able to locate 75 GB but not 137GB.  what makes up "Other"?