Looking for someone who knows WindowBuilder

Discussion in 'The Projects Forum' started by DerStrom8, Oct 20, 2013.

  1. DerStrom8

    Thread Starter Well-Known Member

    Feb 20, 2011
    2,428
    1,328
    Hi folks--

    I took on a pet project the other day and am using WindowBuilder in eclipse to create a panel in Java. I am having some issues trying to enable a text field based on a selection in a checkbox. I somehow need the text field to refresh after the checkbox is checked, in order for the change to become apparent.
    I know I need an ActionListener, and from there I can set textfield.setEnabled(true). However, since the disable action is run as the JFrame is rendered, I can't figure out how to change it dynamically. I've tried methods like repaint() and had no luck. Anyone have any ideas?

    Regards,
    Matt
     
    Last edited: Oct 20, 2013
  2. DerStrom8

    Thread Starter Well-Known Member

    Feb 20, 2011
    2,428
    1,328
    Update: I got this part working, apparently I was only hitting the "preview" button instead of the "run" button in Eclipse :p

    Still looking for someone who knows how to use Windowbuilder though....

    Matt
     
Loading...