Results 1 to 2 of 2
  1. #1
    harland09 is offline Member
    Join Date
    Jun 2011
    Posts
    2
    Rep Power
    0

    Default button actionPerformed in gui interface

    could somebody please help me as im trying use a ok button to trigger an event where a integer password placed in a password field is accepted and changes the colour of a panel i would appreciate any advice.

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default

    Quote Originally Posted by harland09 View Post
    could somebody please help me as im trying use a ok button to trigger an event where a integer password placed in a password field is accepted and changes the colour of a panel i would appreciate any advice.
    Hello and welcome to the Java-forums.org!

    Your question is somewhat general and as such, the best advice is for you at this time is to check out the Swing tutorials on using buttons and ActionListeners.

    Please have a look here:
    How to use Buttons
    How to write an ActionListener

    If after reviewing these you still need help, please come on back, show us your code and your attempts to solve this along with any specific questions you may have and let's see if we can help you.

    Best of luck and hope this helps.

Similar Threads

  1. Using a button to change the interface
    By kev670 in forum AWT / Swing
    Replies: 3
    Last Post: 03-17-2011, 05:19 AM
  2. Replies: 9
    Last Post: 11-01-2009, 06:45 AM
  3. Help with actionPerformed
    By mayhewj7 in forum New To Java
    Replies: 8
    Last Post: 02-10-2009, 07:45 PM
  4. trouble with actionPerformed
    By diggitydoggz in forum New To Java
    Replies: 2
    Last Post: 12-26-2008, 03:18 AM
  5. actionPerformed problem
    By tomitzel in forum New To Java
    Replies: 1
    Last Post: 01-08-2008, 07:10 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
  •