Results 1 to 2 of 2

Thread: basic condition

  1. #1
    ts96 is offline Member
    Join Date
    Feb 2011
    Rep Power

    Default basic condition

    I need to add code so the odd numbers < 10 are on the screen. Am i just writing some text in the GLabel quotes? Anyone help?

    GLabel num = new GLabel(“”);
    for( int i=0; i<10; i++ )

    add(num, 10, 20*i);


  2. #2
    goldest's Avatar
    goldest is offline Senior Member
    Join Date
    Oct 2009
    Pune, India
    Rep Power



    Explain your question in more detail. In fact, ask a specific question.

    Is it GLabel or javax.swing.JLabel?

    Or is it your own class GLabel whose instance you are trying to create?

    Java Is A Funny Language... Really!
    Click on * and add to member reputation, if you find their advices/solutions effective.

Similar Threads

  1. difficulties with IF statement condition
    By maas in forum JavaServer Pages (JSP) and JSTL
    Replies: 11
    Last Post: 10-12-2010, 08:38 AM
  2. While loop condition
    By counterfox in forum New To Java
    Replies: 3
    Last Post: 10-10-2010, 01:14 AM
  3. IF-Condition in a String
    By lenaz in forum Advanced Java
    Replies: 1
    Last Post: 07-18-2009, 12:07 PM
  4. JFrame (closing under a condition)
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 03-12-2008, 11:17 AM
  5. problem with using string in if condition
    By sireesha in forum New To Java
    Replies: 2
    Last Post: 11-20-2007, 10:40 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