Results 1 to 15 of 15
  1. #1
    Mizzhell is offline Member
    Join Date
    Apr 2010
    Posts
    7
    Rep Power
    0

    Default JComboBox won't add/remove elements

    Hi, I want to add and delete a element from the ComboBoxList, but it won't work! Any suggestions?? The DefaultComboBoxModel should be mutable (of what I've read).

    This is the ComboBoxList-class which is a inner class

    Java Code:
    class ComboBoxList extends JPanel {
             private String[] notes = {"Select a note", "Dentist", "Workout",      "Meeting"};
             private DefaultComboBoxModel model;
             private JComboBox cb;
             private String selection;
             private int indexNotes;
           
             public ComboBoxList() {
                Vector<String> myNotes = new Vector<String>();
                for(int i = 0; i<notes.length; i++) {
                    myNotes.add(i, notes[i]);
                }
    
                JButton add = new JButton("New");
                JButton remove = new JButton("Delete");
                
                model = new DefaultComboBoxModel(myNotes);
                cb = new JComboBox();
                cb.setModel(model);
                ComboBoxListener listener = new ComboBoxListener();
                ComboBoxButtonListener listener2 = new ComboBoxButtonListener();
                cb.addActionListener(listener);
                cb.setMaximumRowCount(6);
    
                add.addActionListener(listener2);
                remove.addActionListener(listener2);
                JPanel p = new JPanel(new FlowLayout());
                p.add(cb);
                p.add(add);
                p.add(remove);
                add(p);
            }
                
                                      
                public int getIndex(String note) {
                    indexNotes = model.getIndexOf(note);
                    return indexNotes;
                }
                
            
                public void addNewNote(String newNote) {
                    int newIndex = getLength();
                    
                    model.insertElementAt(newNote, newIndex);
    
                }
    
                public void removeNote(int index) {
                    model.removeElementAt(index);
                }
    
                public int getLength() {
                    return model.getSize();
                }
    }
    Here are the listeners

    Java Code:
    class ComboBoxListener implements ActionListener {
            
            public void actionPerformed(ActionEvent event) {
                ComboBoxList cbl = new ComboBoxList();
                cb = (JComboBox)event.getSource();
                selection = (String)cb.getSelectedItem();
                int i = cbl.getIndex(selection);
                System.out.println("index " + i + " selected: " + selection);
                
                   if(i > 0) {
                       noteText.setText(selection);
                                   
                   }
                
            }//contentsChanged
        }//ComboBoxListener
    
       class ComboBoxButtonListener implements ActionListener {
            public void actionPerformed(ActionEvent event) {
                ComboBoxList cbl = new ComboBoxList();
                String command = event.getActionCommand();
                String newNote;
                if("New".equals(command)) {
                    newNote = showInputDialog("New standard note");
                    cbl.addNewNote(newNote);
                } else if("Delete".equals(command)) {
                   int index = cbl.getIndex(selection);
                   cbl.removeNote(index);
                }
    
            } 
        }

  2. #2
    RamyaSivakanth's Avatar
    RamyaSivakanth is offline Senior Member
    Join Date
    Apr 2009
    Location
    Chennai
    Posts
    835
    Rep Power
    6

    Default

    Please format the code and send the complete runnable one.Totally confusing and no comments.
    Ramya:cool:

  3. #3
    Mizzhell is offline Member
    Join Date
    Apr 2010
    Posts
    7
    Rep Power
    0

    Default

    Ahh, sorry, here's the entire file, it should be runnable so that you can get the picture what it is about. This is just one window of a calendarprogram, so the methods that doesn't make sense is probably connected to other files.

    Java Code:
    package kalenderprosjekt;
    
    //import calendar.GUIComponents;
    import java.awt.BorderLayout;
    import java.awt.Dimension;
    import java.awt.FlowLayout;
    import java.awt.Frame;
    import java.awt.GridLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.util.Calendar;
    import java.util.Date;
    import java.util.StringTokenizer;
    import java.util.Vector;
    import javax.swing.DefaultComboBoxModel;
    import javax.swing.JButton;
    import javax.swing.JComboBox;
    import javax.swing.JDialog;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JSpinner;
    import javax.swing.JTextField;
    import static javax.swing.JOptionPane.*;
    import java.lang.String.*;
    import javax.swing.SpinnerDateModel;
    import javax.swing.event.ChangeEvent;
    import javax.swing.event.ChangeListener;
    
    /**
     *
     * @author Michelle
     */
    
    class newApp extends JDialog {
        private JTextField noteText = new JTextField(20);
        private JSpinner spinner;
        private JSpinner spinner2;
        private JSpinner.DateEditor de;
        private JSpinner.DateEditor de2;
        private Dimension windowSize = new Dimension(300, 290);
        private int timeUntil;
        private int fromTime;
        private Logic myLogic;
        private long date;
        private String appointment;
        private JComboBox cb;
        private int repType;
        private int repetition = 0;
        private String[] notes = {"Select a note", "Dentist", "Workout", "Meeting"};
        private int indexNotes;
        private DefaultComboBoxModel model;
        private String selection;
    
        public newApp(Frame owner, long date, Logic myLogic) {
    		super(owner, true);
    		this.date = date;
    		this.myLogic = myLogic;
            setTitle("New appointment");
            setLocationRelativeTo(null);
            setLayout(new BorderLayout(4, 1));
            this.setMinimumSize(windowSize);
            setDefaultCloseOperation(DISPOSE_ON_CLOSE);
    
            add(new HeadingPanel(), BorderLayout.NORTH);
            add(new FieldPanel(), BorderLayout.CENTER);
            add(new ConfirmPanel(), BorderLayout.SOUTH);
    
            pack();
    
        }
    
        private int transformTime(String time) {
            StringTokenizer st = new StringTokenizer(time, ":");
            String hour = st.nextToken();
            String minute = st.nextToken();
            int finalTime = Integer.parseInt(hour + minute);
            return finalTime;
        }
    
    
        class HeadingPanel extends JPanel {
            public HeadingPanel() {
            JPanel p = new JPanel(new FlowLayout(FlowLayout.CENTER));
            JLabel heading = new JLabel("New Appointment");
            p.add(heading);
            add(p);
    
            }
        }
    
        class ConfirmPanel extends JPanel {
            public ConfirmPanel() {
                JPanel p = new JPanel(new FlowLayout(FlowLayout.CENTER));
                JButton ok = new JButton("Ok");
                JButton options = new JButton("Options");
                JButton cancel = new JButton("Cancel");
                ConfirmListener listener = new ConfirmListener();
                p.add(ok);
                p.add(options);
                p.add(cancel);
                ok.addActionListener(listener);
                options.addActionListener(listener);
                cancel.addActionListener(listener);
                add(p);
            }
        }
    
        class FieldPanel extends JPanel {
            public FieldPanel() {
            setLayout(new GridLayout(4, 1, 1, -5));
            JPanel fromPanel = new JPanel(new FlowLayout(FlowLayout.LEFT));
            JPanel toPanel = new JPanel(new FlowLayout(FlowLayout.LEFT));
            JPanel notePanel = new JPanel(new FlowLayout(FlowLayout.LEFT));
            JPanel notePanel2 = new JPanel(new FlowLayout(FlowLayout.LEFT));
            SpinnerListener listener = new SpinnerListener();
         
            Date date = new Date();
            SpinnerDateModel sm = new SpinnerDateModel(date, null, null, Calendar.HOUR_OF_DAY);
            spinner = new JSpinner(sm);
            de = new JSpinner.DateEditor(spinner, "HH:mm");
            spinner.setEditor(de);
    
            SpinnerDateModel sm2 = new SpinnerDateModel(date, null, null, Calendar.HOUR_OF_DAY);
            spinner2 = new JSpinner(sm2);
            de2 = new JSpinner.DateEditor(spinner2, "HH:mm");
            spinner2.setEditor(de2);
    
            spinner.addChangeListener(listener);
            spinner2.addChangeListener(listener);
    
    
            JLabel from = new JLabel("From: ");
            JLabel to = new JLabel("To:      ");
            JLabel note = new JLabel("Note: ");
            JLabel standardNotes = new JLabel("Standard: ");
    
            fromPanel.add(from);
            fromPanel.add(spinner);
            toPanel.add(to);
            toPanel.add(spinner2);
            notePanel.add(note);
            notePanel.add(noteText);
            notePanel2.add(standardNotes);
            notePanel2.add(new ComboBoxList());
    
            add(fromPanel);
            add(toPanel);
            add(notePanel);
            add(notePanel2);
    
            }
    
        }
    
        class ComboBoxList extends JPanel {
            public ComboBoxList() {
                Vector<String> myNotes = new Vector<String>();
                for(int i = 0; i<notes.length; i++) {
                    myNotes.add(i, notes[i]);
                }
    
                JButton add = new JButton("New");
                JButton remove = new JButton("Delete");
                
                model = new DefaultComboBoxModel(myNotes);
                cb = new JComboBox();
                cb.setModel(model);
                ComboBoxListener listener = new ComboBoxListener();
                ComboBoxButtonListener listener2 = new ComboBoxButtonListener();
                cb.addActionListener(listener);
                cb.setMaximumRowCount(6);
    
                add.addActionListener(listener2);
                remove.addActionListener(listener2);
                JPanel p = new JPanel(new FlowLayout());
                p.add(cb);
                p.add(add);
                p.add(remove);
                add(p);
            }
                
                                      
                public int getIndex(String note) {
                    indexNotes = model.getIndexOf(note);
                    return indexNotes;
                }
                
            
                public void addNewNote(String newNote) {
                    int newIndex = getLength();
                    model.insertElementAt(newNote, newIndex);
                }
    
                public void removeNote(int index) {
                    model.removeElementAt(index);
                }
    
                public int getLength() {
                    return model.getSize();
                }
        
        }
    
            //Listens to the ConfirmPanel, and is connected to another file
            class ConfirmListener implements ActionListener {
            public void actionPerformed (ActionEvent event) {
                String command = event.getActionCommand();
                if("Ok".equals(command)) {
                    String time = de.getTextField().getText();
                    String time2 = de2.getTextField().getText();
                    fromTime = transformTime(time);
                    timeUntil = transformTime(time2);
                    appointment = noteText.getText();
                    if(repetition > 0) {
                        switch(repType) {
                            case 0:
                                myLogic.dailyAppointment(date, fromTime, timeUntil, appointment, repetition);
                                dispose();
                            break;
    
                            case 1:
                                myLogic.weeklyAppointment(date, fromTime, timeUntil, appointment, repetition);
                                dispose();
                            break;
    
                            case 2:
                               myLogic.monthlyAppointment(date, fromTime, timeUntil, appointment, repetition);
                                dispose();
                            break;
    
                            case 3:
                                myLogic.yearlyAppointment(date, fromTime, timeUntil, appointment, repetition);
                                dispose();
                            break;
                        }//Switch
                    } else {
                         myLogic.regNewAppointment(date, fromTime, timeUntil, appointment);
                        dispose();
                    }
    
                } else if("Options".equals(command)) {
                    GUIComponents gui = new GUIComponents(newApp.this, date, fromTime, timeUntil, appointment, myLogic);
                    gui.setVisible(true);
                    repType =  gui.getRepType();
                    repetition = gui.getRepetition();
    				
    
                } else if("Cancel".equals(command)) {
                    dispose();
                }
    
            }
        }
    
        //Listens to changes on the spinners
        class SpinnerListener implements ChangeListener {
            public void stateChanged(ChangeEvent event) {
                String time = de.getTextField().getText();
                String time2 = de2.getTextField().getText();
                fromTime = transformTime(time);
                timeUntil = transformTime(time2);
            }
        }//SpinnerListener
    
    //Listens to the comboBox   
    class ComboBoxListener implements ActionListener {
            
            public void actionPerformed(ActionEvent event) {
                ComboBoxList cbl = new ComboBoxList();
                cb = (JComboBox)event.getSource();
                selection = (String)cb.getSelectedItem();
                int i = cbl.getIndex(selection);
                System.out.println("index " + i + " selected: " + selection);
                
                   if(i > 0) {
                       noteText.setText(selection); //sets the noteText to text from the comboBox, but not if the first is selected which is "Select a note"
                                   
                   }
                
            }//contentsChanged
        }//ComboBoxListener
    
    //Listens to the new/delete buttons on the ComboBoxList   
    class ComboBoxButtonListener implements ActionListener {
            public void actionPerformed(ActionEvent event) {
                ComboBoxList cbl = new ComboBoxList();
                String command = event.getActionCommand();
                String newNote;
                if("New".equals(command)) {
                    newNote = showInputDialog("New standard note");
                    cbl.addNewNote(newNote);
                } else if("Delete".equals(command)) {
                   int index = cbl.getIndex(selection);
                   cbl.removeNote(index);
                }
    
            }
        }
    
    }//newApp
    
    public class NewAppointment {
        public static void main(String[] args) throws Exception {
        newApp gui = new newApp(null, 20100101L, new Logic());
        gui.setVisible(true);
        }
    }

  4. #4
    j2me64's Avatar
    j2me64 is offline Senior Member
    Join Date
    Sep 2009
    Location
    Zurich, Switzerland
    Posts
    962
    Rep Power
    6

    Default

    the problem was in the listeners. if you want to modify your items in the combobox then you have to modify the entries in the vector, because the combobox is displaying what the vector is containing. so from your first post i modified the listeners this way

    Java Code:
    	class ComboBoxListener implements ActionListener {
    
    		public void actionPerformed(ActionEvent event) {
    			ComboBoxList cbl = new ComboBoxList();
    			cb = (JComboBox) event.getSource();
    			selection = (String) cb.getSelectedItem();
    			int i = cbl.getIndex(selection);
    			System.out.println("index " + i + " selected: " + selection);
    
    			if (i > 0) {
    				cb.setSelectedItem(selection);
    
    			}
    
    		}// contentsChanged
    	}// ComboBoxListener
    
    	class ComboBoxButtonListener implements ActionListener {
    		public void actionPerformed(ActionEvent event) {
    			ComboBoxList cbl = new ComboBoxList();
    			String command = event.getActionCommand();
    			String newNote;
    			if ("New".equals(command)) {
    				newNote = JOptionPane.showInputDialog("New standard note");
    				[b]myNotes.add(newNote);[/b]
    				cb.setSelectedItem(newNote);
    			} else if ("Delete".equals(command)) {
    				int index = cbl.getIndex(selection);
    				[b]myNotes.remove(selection);[/b]
    				if (index > 0) {
    					cb.setSelectedIndex(index - 1);
    				}
    			}
    
    		}
    	}

    so that the combobox was updated with the buttons changed and new. to be able to change myNotes declare this variable as class memeber. and watch out manipulating the vector, because you can cause different exceptions. last question: what the heck is the type Logic?
    Last edited by j2me64; 04-22-2010 at 03:59 PM.

  5. #5
    Mizzhell is offline Member
    Join Date
    Apr 2010
    Posts
    7
    Rep Power
    0

    Default

    Logic is another class which connects a database, and the classes "Month" and "MyCalendar" together. We have a project at school were we are making a calendar.

    Thnx for the reply, but when I change the listeners, the new standard note i'm making doesn't show up in the comboBox..? and the text you choose in the comboBox is supposed to show up in the noteText. Do you suggest using something different than the vector??

  6. #6
    j2me64's Avatar
    j2me64 is offline Senior Member
    Join Date
    Sep 2009
    Location
    Zurich, Switzerland
    Posts
    962
    Rep Power
    6

    Default

    Quote Originally Posted by Mizzhell View Post
    Thnx for the reply, but when I change the listeners, the new standard note i'm making doesn't show up in the comboBox..? and the text you choose in the comboBox is supposed to show up in the noteText. Do you suggest using something different than the vector??

    the vector is ok. if you change the vector from the class ComboBoxList them the change must be show up in the comboBox. can you post the code inside the listener?

  7. #7
    Mizzhell is offline Member
    Join Date
    Apr 2010
    Posts
    7
    Rep Power
    0

    Default

    Here are the listener after I have changed them;

    When I press "delete"-button the selectedItem changes to index-1, but the entry was not deleted.

    And when I make a new, the selectedItem changes to the new, and gets index -1, but is not added to the comboBox. This is view with the system.out.println in ComboBoxListener

    Java Code:
    class ComboBoxListener implements ActionListener {
            
            public void actionPerformed(ActionEvent event) {
                ComboBoxList cbl = new ComboBoxList();
                cb = (JComboBox)event.getSource();
                selection = (String)cb.getSelectedItem();
                int i = cbl.getIndex(selection);
                System.out.println("index " + i + " selected: " + selection);
                
                   if(i > 0) {
                     noteText.setText(selection);
                                   
                   }
                
            }//contentsChanged
        }//ComboBoxListener
    
       class ComboBoxButtonListener implements ActionListener {
            public void actionPerformed(ActionEvent event) {
                ComboBoxList cbl = new ComboBoxList();
                String command = event.getActionCommand();
                String newNote;
                if("New".equals(command)) {
                    newNote = showInputDialog("New standard note");
                    myNotes.add(newNote);
                    cb.setSelectedItem(newNote);
                } else if("Delete".equals(command)) {
                   int index = cbl.getIndex(selection);
                   myNotes.remove(selection);
                   if(index > 0) {
                     cb.setSelectedIndex(index - 1);
                   }
                }
    
            }
        }

  8. #8
    j2me64's Avatar
    j2me64 is offline Senior Member
    Join Date
    Sep 2009
    Location
    Zurich, Switzerland
    Posts
    962
    Rep Power
    6

    Default

    change your code in ComboBoxButtonListener and the changes should be shown.

    Java Code:
    			class ComboBoxButtonListener implements ActionListener {
    	Vector<String> newNotes;
    	JComboBox cbl;
    	
    	public ComboBoxButtonListener(Vector<String> myNotes, JComboBox cb) {
    		
    		newNotes = myNotes;
    		cbl = cb;
    	}
          public void actionPerformed(ActionEvent event) {
              String command = event.getActionCommand();
              String newNote;
              if("New".equals(command)) {
                  newNote = showInputDialog("New standard note");
                  newNotes.add(newNote);
                  cbl.repaint();
                  cbl.setSelectedItem(newNote);
              } else if("Delete".equals(command)) {
                 int index = cbl.getSelectedIndex();
                 newNotes.remove(index);
                 cbl.repaint();
              }
    
          }
      }
    
    }//newApp

    what I'm doing here is following: i pass the vector and the jcombobox from the ComboBoxList to the listener. so please change also this line in the ComboBoxList

    Java Code:
    ComboBoxButtonListener listener2 = new ComboBoxButtonListener(myNotes, cb);

    now in your listener the newNotes is referencing the same vector and the same jcombobox as the one in ComboBoxList. your previous code

    Java Code:
               ComboBoxList cbl = new ComboBoxList();

    had no effects on the ComboBoxList because you are creating a new one and changing this has no effect on the one in the jcombobox. passing the component to the listener constructor is a pattern, if you want to change the original component in the listener. notice that in the delete there are no checks if you run out of bounds which can cause an exception. so please add your checks.

    you will find my files in the attachment. please note that the logic datatype is only a simulation.
    Attached Files Attached Files
    Last edited by j2me64; 04-22-2010 at 05:48 PM.

  9. #9
    camickr is offline Senior Member
    Join Date
    Jul 2009
    Posts
    1,236
    Rep Power
    7

    Default

    if you want to modify your items in the combobox then you have to modify the entries in the vector
    No, you should ignore the Vector. The Vector is only used to initially create the model. Once the combobox has been created all changes should be done to the model. You can update the model directly or you can invoke the convenience methods of the JComboBox which will in turn invoke the methods in the model.

    For the answer I suggest you read the section from the Swing tutorial on How to Use Lists. The example there shows how to update a JList. The concept is exactly the same with a combo box because it is the model that should be updated.

  10. #10
    Mizzhell is offline Member
    Join Date
    Apr 2010
    Posts
    7
    Rep Power
    0

    Default

    Quote Originally Posted by j2me64 View Post
    change your code in ComboBoxButtonListener and the changes should be shown.

    Java Code:
    			class ComboBoxButtonListener implements ActionListener {
    	Vector<String> newNotes;
    	JComboBox cbl;
    	
    	public ComboBoxButtonListener(Vector<String> myNotes, JComboBox cb) {
    		
    		newNotes = myNotes;
    		cbl = cb;
    	}
          public void actionPerformed(ActionEvent event) {
              String command = event.getActionCommand();
              String newNote;
              if("New".equals(command)) {
                  newNote = showInputDialog("New standard note");
                  newNotes.add(newNote);
                  cbl.repaint();
                  cbl.setSelectedItem(newNote);
              } else if("Delete".equals(command)) {
                 int index = cbl.getSelectedIndex();
                 newNotes.remove(index);
                 cbl.repaint();
              }
    
          }
      }
    
    }//newApp

    what I'm doing here is following: i pass the vector and the jcombobox from the ComboBoxList to the listener. so please change also this line in the ComboBoxList

    Java Code:
    ComboBoxButtonListener listener2 = new ComboBoxButtonListener(myNotes, cb);

    now in your listener the newNotes is referencing the same vector and the same jcombobox as the one in ComboBoxList. your previous code

    Java Code:
               ComboBoxList cbl = new ComboBoxList();

    had no effects on the ComboBoxList because you are creating a new one and changing this has no effect on the one in the jcombobox. passing the component to the listener constructor is a pattern, if you want to change the original component in the listener. notice that in the delete there are no checks if you run out of bounds which can cause an exception. so please add your checks.

    you will find my files in the attachment. please note that the logic datatype is only a simulation.

    Thanks, now I can delete every entry in the comboBox, but I can only add one new String to the comboBox, and it always gets the index of -1. If I delete the new entry and old ones I still can't add more. Seems like there is a limit of number of times you can add, which is one, which must be wrong.

    The listener and constructor look just like yours.. any more ideas?

  11. #11
    Mizzhell is offline Member
    Join Date
    Apr 2010
    Posts
    7
    Rep Power
    0

    Default

    Hey, I got it working now. Did a combo of what j2me64 and camickr suggested. Did all the same as j2me64, but instead of sending in the vector, I sent the model in the constructor. Now I can add several entrys, and delete them. And I put up antoher check than using the index.

    Thanks so very much for the help! :D

    Java Code:
    class ComboBoxListener implements ActionListener {
            
            public void actionPerformed(ActionEvent event) {
                ComboBoxList cbl = new ComboBoxList();
                cb = (JComboBox)event.getSource();
                selection = (String)cb.getSelectedItem();
               [B] if(!"Select a note".equalsIgnoreCase(selection))[/B] {
                     noteText.setText(selection);          
                   }
                
            }//contentsChanged
        }//ComboBoxListener
    Java Code:
    class ComboBoxButtonListener implements ActionListener {
           JComboBox cbl;
           [B]DefaultComboBoxModel dfc;[/B]
           public ComboBoxButtonListener([B]DefaultComboBoxModel model[/B], JComboBox cb) {
               [B]dfc = model;[/B]
               cbl = cb;
           }
    
            public void actionPerformed(ActionEvent event) {
                String command = event.getActionCommand();
                String newNote;
                if("New".equals(command)) {             
                    newNote = showInputDialog("New standard note");
                    [B]dfc.addElement(newNote);[/B]
                    cbl.repaint();
                    cbl.setSelectedItem(newNote);
                } else if("Delete".equals(command)) {
                   [B]dfc.removeElement(selection);[/B]
                    cbl.repaint();
                }
    
            }
        }
    Java Code:
    ComboBoxButtonListener listener2 = new ComboBoxButtonListener(model, cb);

  12. #12
    camickr is offline Senior Member
    Join Date
    Jul 2009
    Posts
    1,236
    Rep Power
    7

    Default

    I sent the model in the constructor.
    There is no need to do this.

    The getSource() method of the ActionEvent will return the combo box. You can then either use the methods of the combo box to update the model as I suggested. Or you use use the getModel() method and then update the model directly.

  13. #13
    j2me64's Avatar
    j2me64 is offline Senior Member
    Join Date
    Sep 2009
    Location
    Zurich, Switzerland
    Posts
    962
    Rep Power
    6

    Default

    Quote Originally Posted by Mizzhell View Post
    Hey, I got it working now.

    great! the user will be thankful if you save the changes made in the list to a file and reload it in the jlist when the application is restarted. perhaps in the next release :D

  14. #14
    Mizzhell is offline Member
    Join Date
    Apr 2010
    Posts
    7
    Rep Power
    0

    Default

    Quote Originally Posted by j2me64 View Post
    great! the user will be thankful if you save the changes made in the list to a file and reload it in the jlist when the application is restarted. perhaps in the next release :D
    Guess what, we save the changes in a database, so when the user starts the program again every change is reloaded.. :D

  15. #15
    voscom is offline Member
    Join Date
    Apr 2010
    Posts
    2
    Rep Power
    0

Similar Threads

  1. Replies: 2
    Last Post: 12-10-2009, 01:58 PM
  2. How to remove border in JComboBox
    By tiro in forum AWT / Swing
    Replies: 2
    Last Post: 03-08-2009, 05:45 PM
  3. what does <Elements> mean
    By JordashTalon in forum New To Java
    Replies: 1
    Last Post: 01-31-2009, 10:19 PM
  4. how to remove an old version of JDK
    By tommy in forum New To Java
    Replies: 2
    Last Post: 07-30-2007, 08:59 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •