JChooser

I have a JFileChooser that Im using to set as a save location for a file. When the JFileChooser opens the TextArea of "file name:" has got the current directory in, how do I remove this from here so it is just blank?

Never mind, use JFileChooser.FILES_ONLY incase someone finds this thorugh search

Similar Messages

  • How to use FileFilter in  JChooser

    Hello
    All i want to do is something simple like
    having only txt files to show up in the dialog file list.
    but am stuck with this error
    {color:#ff0000}Cannot instantiate the type FileFilter{color}
    any help will be much appreciated
    thanks
    package stage04;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.util.Date;
    import javax.swing.*;
    import javax.swing.filechooser.FileFilter;
    import javax.swing.filechooser.FileView;
    import stage02.Item;
    import stage02.CD;
    import stage02.DVD;
    import java.util.ArrayList;
    import stage03.ItemController;
    import java.text.*;
    import java.util.NoSuchElementException;
    public class MainGui implements ActionListener {
      public void openFile(){
      JFileChooser fc = new JFileChooser(".");
      FileFilter ff = new FileFilter();
      ff.addExtension("txt");
      fc.setFileFilter(ff);
      fc.showDialog(fc,"Open");
    }

    That code won't compile.
    I suggest you get rid of the ActionListener stuff since you haven't implemented that yet (and it has nothing to do with your current problem). And that you replace those imports with statements improting each of the classes you actualy use.
    FileFilter - the one you mean - is an abstract class. There's an example of its usage at the start of the JFileChooser documentation. The Tutorial page linked to from there will also be useful.

  • JpopupMenu disappear after click one it.

    Hi , I have a problem with a 3rd party library. by the way. please help,
    Applet contain Panel name "Chooser"
    "Chooser" contain a button "open"
    After click on the "open" button it will invoke Jpopupmenu
    JpopupMnu have another panel inside
    Some people overridden setVisible() method
    I seem that when i click on any area on anything this panel on Jpopupmenu Jpopupmanu will be diappear.
    someone HINT that :
    have to do something with the popup's overriden setVisible method. Tell the "Chooser" from applet that the application is an applet, so it doesn't set the "popup" window non-visible.

    no ..... is it?
    This is my code......
    when i deploy applet i can't click any button on Jpopupmenu it will disappear before
    someone said to overridden setvisible method to said that the application is an applet ...........??!?!?!?! any body understand what does that mean ....
    package test;
    import java.awt.BorderLayout;
    import java.awt.GridLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JApplet;
    import javax.swing.JButton;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JPopupMenu;
    public class JChooser extends JApplet implements ActionListener{
    private JPopupMenu m_objJPopupMenu;
    private boolean m_bInitialized;
    protected boolean m_bDateSelected;
    private JButton m_objXButton;
    public JChooser(){
    public void init(){
    JLabel test = new JLabel();
    test.setText("Test");
    getContentPane().add(test);
    getContentPane().add(getXButton(), BorderLayout.EAST);
    m_objJPopupMenu = new JPopupMenu()
    public void setVisible(boolean bVisibleP)
    Boolean isCanceled =
    (Boolean) getClientProperty("JPopupMenu.firePopupMenuCanceled");
    if (bVisibleP
    || (!bVisibleP && m_bDateSelected)
    || ((isCanceled != null) && !bVisibleP && isCanceled.booleanValue()))
    super.setVisible(bVisibleP);
    m_objJPopupMenu.setLightWeightPopupEnabled(true);
    m_objJPopupMenu.add(getXPanel());
    m_bInitialized = true;
    * @return
    private JButton getXButton() {
    if (m_objXButton == null)
    m_objXButton = new JButton();
    m_objXButton.addActionListener(this);
    return m_objXButton;
    public void actionPerformed(ActionEvent e)
    int x =
    getXButton().getWidth() - (int) m_objJPopupMenu.getPreferredSize().getWidth();
    int y = getXButton().getY() + getXButton().getHeight();
    m_objJPopupMenu.show(getXButton(), x, y);
    * @return
    private JPanel getXPanel() {
    JPanel aPanel = new JPanel();
    aPanel.setLayout(new GridLayout(5,2));
    aPanel.add(one_btn);
    aPanel.add(two_btn);
    aPanel.add(three_btn);
    aPanel.add(four_btn);
    aPanel.add(five_btn);
    aPanel.add(six_btn);
    aPanel.add(seven_btn);
    aPanel.add(eight_btn);
    aPanel.add(nine_btn);
    aPanel.add(ten_btn);
    aPanel.add(eleven_btn);
    aPanel.add(twelve_btn);
    aPanel.setSize(100,100);
    twelve_btn.addActionListener(new Eavesdropper());
    return aPanel;
    private JButton one_btn = new JButton();
    private JButton two_btn = new JButton();
    private JButton three_btn = new JButton();
    private JButton four_btn = new JButton();
    private JButton five_btn = new JButton();
    private JButton six_btn = new JButton();
    private JButton seven_btn = new JButton();
    private JButton eight_btn = new JButton();
    private JButton nine_btn = new JButton();
    private JButton ten_btn = new JButton();
    private JButton eleven_btn = new JButton();
    private JButton twelve_btn = new JButton();
    class Eavesdropper implements ActionListener {
    public void actionPerformed(ActionEvent e) {
    one_btn.setText("aaaa");
    }

  • Save/Load into Jtable

    How can I load data and save data from Jtable in a comma delimited format?
    And how can I execute a calculation by writing r1c3+r1c2 in a Jtextfield. R1 means row1 c3 means column3. What method or class can I use to locate the data on the JTable and do the calculation.
    public class SpreadSheetEditor extends JFrame  implements ActionListener
         JFileChooser chooser = new JFileChooser();
          * This constructs the GUI.  It is not a public method to be called by other
          * classes.
         protected SpreadSheetEditor()
              // Set title bar text and close box functionality on the JFrame
              super("SpreadSheetEditor");
              // Add content pane to JFrame and set to Border Layout
              Container contentPane = this.getContentPane();
              contentPane.setLayout(new BorderLayout(20,20));
              // Add JScrollPane to center of ContentPane and set scroll bar policy
              JScrollPane myScrollPane = new JScrollPane();
              myScrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
              myScrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
              contentPane.add(myScrollPane, BorderLayout.CENTER);
              // Add JTable to ScrollPane
              JTable myTable = new JTable(20,10);
              TableColumn column = new TableColumn();
              myScrollPane.setViewportView(myTable);
              myTable.setRowHeight(20);
              column.setPreferredWidth(50);
              // Add JPanel to bottom (south) of content pane for buttons
              JPanel myPanel = new JPanel();
              myPanel.setLayout(new FlowLayout(FlowLayout.CENTER));
              contentPane.add(myPanel, BorderLayout.SOUTH);
              // Add TextField
              JTextField textField = new JTextField(20);
              contentPane.add(textField, BorderLayout.SOUTH);
              // Create and add load and save and execute buttons to JPanel
              JButton loadButton = new JButton("Load");
              JButton saveButton = new JButton("Save");
              JButton executeButton = new JButton("Execute");
              myPanel.add(executeButton);
              myPanel.add(loadButton);
              myPanel.add(saveButton);
              // Crerate a JMenu
              JMenu menu = new JMenu("File");
              JMenuItem m;
              m= new JMenuItem("Clear SpreadSheet");
              m.addActionListener(this);
              menu.add(m);
              m= new JMenuItem("Exit Editor");
               m.addActionListener(this);
              menu.add(m);
              JMenuBar mBar = new JMenuBar();
              mBar.add(menu);
              setJMenuBar(mBar);
              // Add action listeners to buttons
              loadButton.addActionListener(this);
              saveButton.addActionListener(this);
               executeButton.addActionListener(this);
              // Set frame size and make visible
              super.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              super.setSize(500,500);
              super.setVisible(true);
          * This method calls either loadFile or saveFile in reponse
          * to the buttons being pushed.
          * @param e the event from the button push
         public void actionPerformed(ActionEvent e)
              if (e.getActionCommand().equals("Load"))
                   loadFile();
              else if (e.getActionCommand().equals("Save"))
                   saveFile();
              else if(e.getActionCommand().equals("Exit Editor"))
                   System.exit(1);
         //     else if(e.getActionCommand().equals("Clear SpreadSheet"))
         //          theText.setText("");
          * This pops the file chooser and then calls the loadFile(File) method.
         protected void loadFile()
              int returnVal = chooser.showOpenDialog(this);
              if(returnVal == JFileChooser.APPROVE_OPTION)
                   loadFile(chooser.getSelectedFile());
          * This loads the file and displays it in the textArea.
          * @param fileToLoad the file to load in to the text area
         protected void loadFile(File fileToLoad)
              try
                   FileReader freader = new FileReader(fileToLoad);
                   BufferedReader breader = new BufferedReader(freader);
                  String line;
                  while ((line = breader.readLine()) != null)
                  //     myJTable.append(line + "\n");
                  breader.close();
              catch (IOException ioe)
                   ioe.printStackTrace();
          * This takes what is in the JTable and saves it to a file.
          * Pops a JChooser to determine the file name.
         protected void saveFile()
              int returnVal = chooser.showSaveDialog(this);
              if(returnVal == JFileChooser.APPROVE_OPTION)
                   try
                        FileWriter fwriter = new FileWriter(chooser.getSelectedFile());
                        BufferedWriter bwriter = new BufferedWriter(fwriter);
                   //     bwriter.write(myJTable.getText());
                        bwriter.close();
                   catch (IOException ioe)
                        ioe.printStackTrace();
          * The main method creates an instance of SpreadSheetEditor.
         public static void main(String[] args)
              SpreadSheetEditor myEditor = new SpreadSheetEditor();
    }

    First a suggestion, break up your GUI into a couple of classes. It would be perferable if in your constructor you had something more like
    super("SpreadSheet Editor");
    setJMenuBar(new myOwnMenuBar());
    getContentPane.add(new mySpreadsheetPanel());and then the SpreadsheetPanel would be broken up into the JTable, and maybe a panel with some buttons on it if you need them. Just a suggestion, it tends to make the code much easier to debugg and change/add functionality to later.
    As for loading a file, you should know the format of the data. I would store it something like
    rowcol, data, rowcol, data, rowcol, data
    then just read it in and fill it into the table where needed.
    You should create your own TableModel which should be a subclass of AbstractTableModel. This will make your life easier. The TabelModel is where the JTable gets/stores all its data, and it is what is used to update the JTable.
    As for the calculations here is a class I wrote for doing a similar project. There are a couple of classes used but they are mostly small classes and if you need more explenation on them just let me know.
    import java.util.StringTokenizer;
    import java.util.regex.Pattern;
    import java.util.regex.Matcher;
      *@author
      *@version 1.0 3/5/03
      *the ExpressionTree class is used to evaluate and hold a mathmatical expression
    public class ExpressionTree{
         SimpleStack numberstack, opstack, cellrefs;
         String originalexpression;
         Token root;
         Graph graph;
           *creates an Expression tree
           *@param expression the expression to be evaluated
           *@param graph a reference to the Graph where cells are stored
           *@throws MalformedCellException thrown if the expression is invalid
         ExpressionTree(String expression, Graph graph)throws MalformedCellException{
              originalexpression      = expression;
              this.graph              = graph;
              StringTokenizer extoken = new StringTokenizer(expression, OperatorToken.OPERATORS, true);
              String[] tokens         = new String[extoken.countTokens()];
              for(int i=0;i<tokens.length;i++){
                   tokens=extoken.nextToken();
              buildTree(tokens);
         //creates the tree from the array of tokens each token is a portion of the expression
         private void buildTree(String[] tokens)throws MalformedCellException{
              boolean checkunaryminus = true;
              boolean unaryminus = false;
              numberstack = new SimpleStack(13);
              opstack = new SimpleStack(13);
              cellrefs = new SimpleStack(13);
              for(int i=0;i<tokens.length;i++){
                   if(LiteralToken.isLiteral(tokens[i])){
                        if(unaryminus){
                             numberstack.push(new LiteralToken(-1*Double.parseDouble(tokens[i])));
                             opstack.pop();
                             unaryminus = false;
                        }else{
                             numberstack.push(new LiteralToken(Double.parseDouble(tokens[i])));
                        checkunaryminus = false;
                   }else if(CellToken.isCell(tokens[i])){
                        Cell tempcell = getCell(tokens[i]);
                        cellrefs.push(tempcell);
                        Token temp = new CellToken(tempcell);
                        if(unaryminus){
                             temp = buildSubTree(new LiteralToken(0), (OperatorToken)opstack.pop(), temp);
                             unaryminus = false;
                        numberstack.push(temp);
                        checkunaryminus = false;
                   }else if(OperatorToken.isOperator(tokens[i])){
                        if(unaryminus) throw new MalformedCellException("illegal expression operator after minus");
                        char op = tokens[i].charAt(0);
                        if(checkunaryminus){
                             if(op=='-'){
                                  opstack.push(new OperatorToken(op));
                                  checkunaryminus = false;
                                  unaryminus = true;
                             }else{
                                  opstack.push(new OperatorToken(op));
                        }else{
                             if(op=='('){
                                  opstack.push(new OperatorToken(op));
                             }else if(op==')'){
                                  OperatorToken temp = (OperatorToken)opstack.pop();
                                  while(temp.instancePriority() != OperatorToken.getPriority('(')){
                                       if(numberstack.numObjects()<2){
                                            throw new MalformedCellException("Incefficient Numbers");
                                       Token r = (Token)numberstack.pop();
                                       Token l = (Token)numberstack.pop();
                                       numberstack.push(buildSubTree(l, temp, r));
                                       temp = (OperatorToken)opstack.pop();
                             }else{
                                  if(!opstack.isEmpty()){
                                       OperatorToken ot = (OperatorToken)opstack.peek();
                                       if(OperatorToken.getPriority(op)<ot.instancePriority()){
                                            if(numberstack.numObjects()<2){
                                                 throw new MalformedCellException("Incefficient Numbers");
                                            Token r = (Token)numberstack.pop();
                                            Token l = (Token)numberstack.pop();
                                            numberstack.push(buildSubTree(l, (OperatorToken)opstack.pop(), r));
                                  opstack.push(new OperatorToken(op));
                             checkunaryminus = true;
                   }else{
                        throw new MalformedCellException("illegal expression Failed all tests");
              while(!opstack.isEmpty()){
                   if(numberstack.numObjects()<2){
                        throw new MalformedCellException("Incefficient Numbers");
                   Token r = (Token)numberstack.pop();
                   Token l = (Token)numberstack.pop();
                   numberstack.push(buildSubTree(l, (OperatorToken)opstack.pop(), r));
              root = (Token)numberstack.peek();
         *gets the value of this expression
         *@return String returns the value of this expression in a String
         public String getValue(){
              double temp = root.getValue();
              return String.valueOf(temp);
         *gets the original expression that was parsed
         *@return String the original expression
         public String getEquation(){
              return originalexpression;
         *get the cells that are reference in this expression
         *@return Cell[] array of cells this expression holds
         public Cell[] getReferences(){
              Cell[] returncells = new Cell[cellrefs.numObjects()];
              int index = 0;
              while(!cellrefs.isEmpty()){
                   returncells[index++]=(Cell)cellrefs.pop();
              return returncells;
         //builds one three node subtree
         private Token buildSubTree(Token l, OperatorToken ot, Token r){
              ot.setLeftChild(l);
              ot.setRightChild(r);
              return ot;
         //uses buildSubTree to create a tree until more of the expression needs to be parsed
         private Token buildSubTrees(char op)throws MalformedCellException{
              if(op==')'){
                   OperatorToken ot = (OperatorToken)opstack.peek();
                   while(ot.instancePriority()!=0){
                        if(numberstack.numObjects()<2){
                             throw new MalformedCellException("Incefficient Numbers");
                        Token r = (Token)numberstack.pop();
                        Token l = (Token)numberstack.pop();
                        numberstack.push(buildSubTree(l, (OperatorToken)opstack.pop(), r));
              }else{
                   OperatorToken ot = (OperatorToken)opstack.peek();
                   while(OperatorToken.getPriority(op)<ot.instancePriority()){
                        if(numberstack.numObjects()<2){
                             throw new MalformedCellException("Incefficient Numbers");
                        Token r = (Token)numberstack.pop();
                        Token l = (Token)numberstack.pop();
                        numberstack.push(buildSubTree(l, (OperatorToken)opstack.pop(), r));
              return (Token)numberstack.peek();
         //gets or creates cell that is referenced in expression
         private Cell getCell(String cellname)throws MalformedCellException{
              int row = 0;
              int col = 0;
              Pattern colpatt = Pattern.compile("[a-zA-Z]+");
              Pattern rowpatt = Pattern.compile("\\d+");
              Matcher m = colpatt.matcher(cellname);
              m.find();
              String columnstring = m.group().toUpperCase();
              m = rowpatt.matcher(cellname);
              m.find();
              String rowstring = m.group();
              row = Integer.parseInt(rowstring);
              row--;
              char[] colchar = columnstring.toCharArray();
              for(int j=colchar.length-1;j>=0;j--){
                   col+=colchar[j]-'A'*Math.pow(26, j);
              if(row<0||col<0){
                   throw new MalformedCellException("illegal expression");
              Vertex v = graph.doesCellExist(col, row);
              if(v!=null){
                   return v.getCell();
              return new Cell(col, row, "0", graph);

  • Hi, I am running Mac OS X 10.5.

    Hi, I am running Mac OS X 10.5. Can I update to current OSX level?
    What level ? Snow Lepard?
    What would the cost be, would it screw with my entire system?
    Thanks, J

    Choose About this Mac from the Apple menu and check the processor.
    If it's a Core Duo Mac, click here, install the DVD, and run Software Update.
    If it's a Core 2 Duo or better Mac, follow the Core Duo instructions, open the Mac App Store, and try purchasing Mountain Lion. If you get told it's incompatible, phone the online Apple Store and order a download code for Lion.
    (84038)

  • Adding io.File array into DefaultListModel

    I am creating what should be a simple slide show with images loaded using a JChooser and File Filter.
    Here's my code:
    Loading Images
         private void loadImages() {          
              JFileChooser chooser = new JFileChooser();
              chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
              int state = chooser.showOpenDialog(this);
              if (state == JFileChooser.APPROVE_OPTION) {
                   File directory = chooser.getSelectedFile();
                   imageFiles = directory.listFiles(new ImageFileFilter());
                   listModel = new DefaultListModel();
                   listModel.addElement(imageFiles);
              } else {
                   close();
         }getListRendererComponent
         public Component getListCellRendererComponent(JList list, Object value,
                   int row, boolean isSelected, boolean cellHasFocus) {
              setOpaque(isSelected);
              setBorder(cellHasFocus ? HAS_FOCUS_BORDER : null);
              if (value instanceof File) {
                   File imageFile = (File) value;
                   ImageIcon imageIcon = cachedImages.get(imageFile);
                   if (imageIcon == null) {
                        try {
                             imageIcon = getScaledImageIcon(imageFile);
                             cachedImages.put(imageFile, imageIcon);
                        } catch (IOException e) {
                             setText("Exception!!");
                             setIcon(null);
                   setText("");
                   setIcon(imageIcon);
              } else {
                   setText("No Images");
                   setIcon(null);
              return this;
         }My problem here is that it's showing "No Images", even when there are images in the selected directory.
    I think I have to change something from here:
                   File directory = chooser.getSelectedFile();
                   imageFiles = directory.listFiles(new ImageFileFilter());
                   listModel = new DefaultListModel();
                   listModel.addElement(imageFiles);But I don't know what.
    Thanks in advance.

    Wrong forum, but here you go anyway:
        listModel = new DefaultListModel();
        for(File file : imageFiles)
          listModel.addElement(file);
        }

  • UIManager ClassPath ignored? (access violation)

    Appologies if this is a second post, but I do not believe my previous post worked. I do not see it in the list of topics...
    I've encountered a serious problem: I can not use any 3rd party look and feel
    implementations inside the Java Web Start secure sandbox. More specifically,
    they work unless you use the FileOpenService or FileSaveService, which bring
    up a JChooser with UI components that are in the wrong ClassLoader and cause
    access violation exceptions.
    Some code I have tried to (unsuccessfully) work around this problem:
    // Attempt #1
    ClassLoader jwsClassLoader = this.getClass().getClassLoader();
    UIManager.put("ClassLoader", jwsClassLoader);
    SlafLookAndFeel slaf = new SlafLookAndFeel("com.memoire.slaf.SlafLookAndFeel"); UIManager.setLookAndFeel(slaf);
    This brings up the SLAF look and feel for everything but the FileOpenService.
    Exception pasted below.
    // Attempt #2
    // After executing the above code, I also run this:
    Hashtable tb = UIManager.getDefaults();
    tb.put("ClassLoader", jwsClassLoader);
    Enumeration e = tb.keys();
    while (e.hasMoreElements()) {
    Object obj = e.nextElement();
    if (! (obj instanceof String))
    continue;
    String k = (String)obj;
    if (k.endsWith("UI")) {
    Class uic;
    try {
    uic = jwsClassLoader.loadClass(tb.get(k).toString());
    } catch(Exception ex) {
    // classnotfound...
    continue;
    tb.put(uic.getName(), uic);
    Again, this does not help.
    // Attempt #3
    In Sun bug:4155617 the username 'awiner' posted a message that contained
    some code to register your own ClassInstantiator (implements UIDefaults.LazyValue)
    I would like to try this, but I do not know how to use the code presented.
    I think it needs to be integrated within the Look and Feel code?
    Here's the exception:
    java.security.AccessControlException: access denied (java.io.FilePermission /tmp read)
    at java.security.AccessControlContext.checkPermission(AccessControlContext.java:270)
    at java.security.AccessController.checkPermission(AccessController.java:401) at java.lang.SecurityManager.checkPermission(SecurityManager.java:542)
    at java.lang.SecurityManager.checkRead(SecurityManager.java:887)
    at java.io.File.exists(File.java:677)
    at javax.swing.filechooser.FileSystemView.getSystemDisplayName(FileSystemView.java:140)
    at javax.swing.plaf.basic.BasicFileChooserUI$BasicFileView.getName(BasicFileChooserUI.java:1005)
    at javax.swing.JFileChooser.getName(JFileChooser.java:1437)
    at com.memoire.slaf.SlafFileChooserUI$DirectoryComboBoxRenderer.getListCellRendererComponent(SlafFileChooserUI.java:605)
    at javax.swing.plaf.basic.BasicListUI.updateLayoutState(BasicListUI.java:1147) at javax.swing.plaf.basic.BasicListUI.maybeUpdateLayoutState(BasicListUI.java:1097)
    at javax.swing.plaf.basic.BasicListUI$ListSelectionHandler.valueChanged(BasicListUI.java:1465)
    at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:187)
    at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:167)
    at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:214)
    at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:402)
    at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:411)
    at javax.swing.DefaultListSelectionModel.setSelectionInterval(DefaultListSelectionModel.java:435)
    at javax.swing.JList.setSelectedIndex(JList.java:1730)
    at javax.swing.plaf.basic.BasicComboPopup.setListSelection(BasicComboPopup.java:998)
    at javax.swing.plaf.basic.BasicComboPopup.access$000(BasicComboPopup.java:43)
    at javax.swing.plaf.basic.BasicComboPopup$ItemHandler.itemStateChanged(BasicComboPopup.java:782)
    at javax.swing.JComboBox.fireItemStateChanged(JComboBox.java:1161)
    at javax.swing.JComboBox.selectedItemChanged(JComboBox.java:1218)
    at javax.swing.JComboBox.contentsChanged(JComboBox.java:1265)
    at javax.swing.AbstractListModel.fireContentsChanged(AbstractListModel.java:100)
    at com.memoire.slaf.SlafFileChooserUI$DirectoryComboBoxModel.setSelectedItem(SlafFileChooserUI.java:751)
    at com.memoire.slaf.SlafFileChooserUI$DirectoryComboBoxModel.addItem(SlafFileChooserUI.java:746)
    at com.memoire.slaf.SlafFileChooserUI$DirectoryComboBoxModel.access$500(SlafFileChooserUI.java:665)
    at com.memoire.slaf.SlafFileChooserUI$1.propertyChange(SlafFileChooserUI.java:500)
    at javax.swing.event.SwingPropertyChangeSupport.firePropertyChange(SwingPropertyChangeSupport.java:264)
    at javax.swing.event.SwingPropertyChangeSupport.firePropertyChange(SwingPropertyChangeSupport.java:232)
    at javax.swing.JComponent.firePropertyChange(JComponent.java:3814)
    at javax.swing.JFileChooser.setCurrentDirectory(JFileChooser.java:541)
    at javax.swing.JFileChooser.<init>(JFileChooser.java:333)
    at com.sun.jnlp.FileOpenServiceImpl$1.run(FileOpenServiceImpl.java:82)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.jnlp.FileOpenServiceImpl.openFileDialog(FileOpenServiceImpl.java:73) at com.wss.calendar.client.swing.InfoHTML.jButtonUpload_actionPerformed(InfoHTML.java:217)
    at com.wss.calendar.client.swing.InfoHTML$3.actionPerformed(InfoHTML.java:146) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1764)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1817)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
    at java.awt.Component.processMouseEvent(Component.java:5093)
    at java.awt.Component.processEvent(Component.java:4890)
    at java.awt.Container.processEvent(Container.java:1566)
    at java.awt.Component.dispatchEventImpl(Component.java:3598)
    at java.awt.Container.dispatchEventImpl(Container.java:1623)
    at java.awt.Component.dispatchEvent(Component.java:3439)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
    at java.awt.Container.dispatchEventImpl(Container.java:1609)
    at java.awt.Window.dispatchEventImpl(Window.java:1585)
    at java.awt.Component.dispatchEvent(Component.java:3439)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:140)
    at java.awt.Dialog.show(Dialog.java:538)
    at java.awt.Component.show(Component.java:1134)
    at java.awt.Component.setVisible(Component.java:1089)
    at com.wss.calendar.client.swing.ScheduleWorldFrame.showInfoView(ScheduleWorldFrame.java:2247)
    at com.wss.calendar.client.swing.ScheduleWorldFrame.jMenuItem14_actionPerformed(ScheduleWorldFrame.java:2226)
    at com.wss.calendar.client.swing.ScheduleWorldFrame$44.actionPerformed(ScheduleWorldFrame.java:1127)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1764)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1817)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
    at javax.swing.AbstractButton.doClick(AbstractButton.java:289)
    at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1109) at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943)
    at java.awt.Component.processMouseEvent(Component.java:5093)
    at java.awt.Component.processEvent(Component.java:4890)
    at java.awt.Container.processEvent(Container.java:1566)
    at java.awt.Component.dispatchEventImpl(Component.java:3598)
    at java.awt.Container.dispatchEventImpl(Container.java:1623)
    at java.awt.Component.dispatchEvent(Component.java:3439)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
    at java.awt.Container.dispatchEventImpl(Container.java:1609)
    at java.awt.Window.dispatchEventImpl(Window.java:1585)
    at java.awt.Component.dispatchEvent(Component.java:3439)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)

    Hi,
    I am using jdk1.1.6 and personal oracle 8.0.3.0.0.
    I set my classpath to [home]\jdbc\lib\classes111.zip.
    (I am not sure how to try with thin driver to make sure
    everything else is ok).
    I hope you guys got the information to suggest me some solution
    to the problem below. I would greately appeciate if any help to
    solve the problem..
    Thank you,
    Sreenivas.
    Oracle Product Development Team wrote:
    : Need more information :
    : What JDK are you using ?
    : What is the Server version ?
    : Try with THIN to make sure that everything else is okay
    : Sreenivas Kompelli (guest) wrote:
    : : I have Oracle 8i trial version installed on my NT work
    : station.
    : : After configuring the CLASSPATH and PATH, When I try to run a
    : : sample example from files given (I am just trying to connect
    to
    : : the database using JDBC oracle/oci, and display the EMP
    table).
    : : I am getting a Windows internal Error "Exception: Access
    : : Violation (0xc0000005).
    : : I have no clue what to do.. I would greately appeciate if any
    : : help to solve this problem..
    : : Thanks
    : : Sreenivas
    : Oracle Technology Network
    : http://technet.oracle.com
    null

Maybe you are looking for

  • JComboBox selection and highlight problem of the selected item

    Hi, I have a question how can I make my newly added item to the combo-box selectable and highlighted. I am adding new items to my custom comboBox dynamically and I want whatever item I add to be selected by default. I am using my own custom ComboBoxM

  • Error in getting Keystore Manager from SAPSecurityResources Class

    Dear Experts, I am currently exploring using AS keystore in SAP PI 7.1 and encountered an error complaining that the service com.sap.aii.af.svc was not found when I tried getting the KeyStoreManager from SAPSecurityResources with the following code:

  • Pillow emboss

    Hi everyone. I would like to start out by saying i know there are a few solutions already posted about this on the  Forum. I have tried them and they are not quite what I want. What I am looking to do is remake a logo for a customer. Up until now the

  • What's with the instability?

    Wow, what a bummer this is! I got away from iMovie mostly because of it's instability. I thought sure FCPX would be more stable, but this 10.0.7 either locks up my computer so I have to do a force shutdown, or it Quits while I'm viewing the import wi

  • Yosemite - says "not enough application memory - and closes all open applications

    Since the day I installed Yosemite I have had problems. First, some other file was downloaded  when I did the Yosemite install which crashed the computer. It had to go in for repair. Once that was remedied, I frequently get an error message "Not enou