Results 1 to 3 of 3
  1. #1
    willemjav is offline Senior Member
    Join Date
    Dec 2007
    Location
    Spain
    Posts
    1,075
    Rep Power
    8

    Default funny action listener paradox

    I removed this post, there was another problem I need to look into first, sorry
    Last edited by willemjav; 05-20-2013 at 11:25 AM.

  2. #2
    willemjav is offline Senior Member
    Join Date
    Dec 2007
    Location
    Spain
    Posts
    1,075
    Rep Power
    8

    Default Re: funny action listener paradox

    The general idea is the following:
    The combo boxes are about names of the month and date numbers 1-31.
    So when selecting a starting date I want the previous month and day's number
    to be taken out of the next boxes, so one can not anti-date the boxes.

  3. #3
    willemjav is offline Senior Member
    Join Date
    Dec 2007
    Location
    Spain
    Posts
    1,075
    Rep Power
    8

    Default Re: funny action listener paradox

    here is the error message
    Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1 >= 1
    at java.util.Vector.removeElementAt(Vector.java:511)
    at javax.swing.DefaultComboBoxModel.removeElementAt(D efaultComboBoxModel.java:147)
    at javax.swing.JComboBox.removeItemAt(JComboBox.java: 739)
    at roomassigment.CalenderDialogs$DialogListener.actio nPerformed(CalenderDialogs.java:292)
    at javax.swing.JComboBox.fireActionEvent(JComboBox.ja va:1240)
    at javax.swing.JComboBox.setSelectedItem(JComboBox.ja va:567)
    at javax.swing.JComboBox.setSelectedIndex(JComboBox.j ava:603)
    at roomassigment.CalenderDialogs.createSinglePanel(Ca lenderDialogs.java:189)
    at roomassigment.CalenderDialogs.createDialogPanel(Ca lenderDialogs.java:131)
    at roomassigment.CalenderDialogs.<init>(CalenderDialo gs.java:72)
    at roomassigment.RoomCalender.<init>(RoomCalender.jav a:85)
    at roomassigment.RoomCalender.main(RoomCalender.java: 110)
    Java Result: 1
    BUILD SUCCESSFUL (total time: 2 seconds)

Similar Threads

  1. Need more action listener help
    By ndsmith20 in forum New To Java
    Replies: 9
    Last Post: 01-19-2013, 01:12 AM
  2. Can anyone help me with an action listener?
    By mdCollins1 in forum New To Java
    Replies: 5
    Last Post: 03-21-2012, 04:07 AM
  3. Replies: 2
    Last Post: 12-11-2011, 10:44 PM
  4. Action Listener
    By greatmajestics in forum AWT / Swing
    Replies: 8
    Last Post: 03-25-2010, 05:39 PM
  5. Action Listener? how to use this?
    By jeffrey in forum New To Java
    Replies: 2
    Last Post: 10-12-2009, 08:51 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
  •