Results 1 to 2 of 2
  1. #1
    Prajin's Avatar
    Prajin is offline Senior Member
    Join Date
    Jun 2010
    Location
    Ktm, Nepal
    Posts
    120
    Rep Power
    0

    Question combo box listener?

    I have a Main Frame that have JTabbed Pane with 3 tabs. These tabs are constructed entirely in separate classes. The first tab(say 'A') have a JComboBox which have items like Tab B and Tab C.

    When Main Frame is loaded or program start Tab A is only enabled while tab 'B', tab 'C' is disabled. When user select item, like 'Tab B' from combo box then Tab B should be enabled.

    So problem is, which Listener to use such that, Main Frame can catch event triggered due to index change from comboBox.

    -Note:Main Frame just calls the tab method and holds it in panel.

  2. #2
    PhHein's Avatar
    PhHein is offline Senior Member
    Join Date
    Apr 2009
    Location
    Germany
    Posts
    1,430
    Rep Power
    7

Similar Threads

  1. Combo Box
    By efozdel in forum New To Java
    Replies: 1
    Last Post: 07-07-2010, 04:29 PM
  2. help get the value from the combo box
    By archcavalier in forum Enterprise JavaBeans (EJB)
    Replies: 7
    Last Post: 05-23-2010, 07:03 PM
  3. combo box help... plus hi this is my first post
    By okabeer in forum AWT / Swing
    Replies: 3
    Last Post: 04-06-2009, 07:05 PM
  4. creation of one combo box form another combo box
    By er.tyagigaurav in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 12-09-2008, 04:14 PM

Posting Permissions

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