Displaying a Label in JApplet


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Displaying a Label in JApplet

  1. #1
    Join Date
    Jun 2009
    Posts
    1

    Displaying a Label in JApplet

    hi im making a tic tac toe program in which i have inserted logic into the actionperformed method. if the tictactoe condtion for victory is met , i want it to display it somehow. currently i am using buttons for the tictactoe and i wnat to display the message onto a label. how do i do that?

    psuedocode:

    if(logic for victory)
    label.setText(victory);

    which does not work?

    all of that is in the action performed method

  2. #2
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,666
    Welcome to DevX

    Does this help?
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

Similar Threads

  1. Replies: 6
    Last Post: 05-31-2010, 08:19 PM
  2. Converting label to string to integer in C# error
    By naijacoder in forum ASP.NET
    Replies: 2
    Last Post: 01-30-2006, 10:06 PM
  3. button listener not working
    By DrunkinP in forum Java
    Replies: 0
    Last Post: 03-31-2005, 10:36 AM
  4. Displaying the access key assignments
    By Sunil Menon in forum Web
    Replies: 1
    Last Post: 07-26-2002, 10:00 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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center