JTextArea listener

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • - ions

    JTextArea listener

    Hello, i am relatively new to programming, Java being the first
    language im learning. At the moment im having trouble changing the
    setEnable value of a button, relative to the state of a JTextArea, ie
    setEnable(false ) if the JTextArea is empty, and once somthing IS typed
    into the TextArea the button is Enabled, i cant find any listeners for
    JTextArea which help me, what ive got now is ok (button dosnt do
    anything is the Area is empty) but not quite wot i want, help
    appreciated :D
  • FISH

    #2
    Re: JTextArea listener

    negative_ions_0 @hotmail.com (- ions) wrote in message news:<4799447d. 0307092235.1a74 463a@posting.go ogle.com>...[color=blue]
    > Hello, i am relatively new to programming, Java being the first
    > language im learning. At the moment im having trouble changing the
    > setEnable value of a button, relative to the state of a JTextArea, ie
    > setEnable(false ) if the JTextArea is empty, and once somthing IS typed
    > into the TextArea the button is Enabled, i cant find any listeners for
    > JTextArea which help me, what ive got now is ok (button dosnt do
    > anything is the Area is empty) but not quite wot i want, help
    > appreciated :D[/color]


    Always remember to check the methods inherited from subclasses.
    In this case JTextArea is a subclass of Component, JComponent
    and JTextComponent. All of these have listener registration
    methods for various types of AWT/Swing events.


    -FISH- ><>

    Comment

    Working...