Search:

Type: Posts; User: Krumpir

Search: Search took 0.40 seconds.

  1. Replies
    4
    Views
    5,508

    [SOLVED] Re: How to maximize a JFrame Form?

    Where did you initialize the JLabel? It seems like you might be missing the following.


    JLabel image = new JLabel();
    // And then then set the imageicon
    image.setIcon(new...
  2. Replies
    4
    Views
    5,508

    [SOLVED] Re: How to maximize a JFrame Form?

    To maximize a JFrame you need the following code.

    myFrame.setExtendedState(JFrame.MAXIMIZED_BOTH);
    And to put an image in a JPanel you would create a JLabel and set the ImageIcon for that JLabel....
  3. Thread: Initializing

    by Krumpir
    Replies
    4
    Views
    1,571

    Re: Initializing

    Change String numberString; to String numberString = 200;
  4. Replies
    10
    Views
    1,943

    Re: HELP WITH COMBO!

    If you want to check whether something is selected in the combobox you can use:


    if(combobox1.getSelectedIndex() == -1) {
    // Nothing has been selected in the combo box
    }
  5. Re: When i run the Program, the CPU usage become very high

    Your program is most likely stuck in an infinite loop. If you post the source code I we'll be able to point out the problem.
  6. Replies
    5
    Views
    1,613

    Re: how operator( && or || works).....

    Basic OR logic:
    x y x&y
    --------------
    1 0 | 0
    1 1 | 1
    0 1 | 0
    0 0 | 0

    In binary the numbers are represented as follow:
    4: 100
  7. [SOLVED] Re: the output is just a blank frame... no menu bar is present.. plz help me out..

    Add the following line of code after setSize(600,600).


    setJMenuBar(mb);
  8. Replies
    5
    Views
    1,613

    Re: how operator( && or || works).....

    Those are used to represent boolean operators. The && is used for AND statements and the || for OR statements.

    The expression "A || B" will return true if either A or B where "A && B" will only...
  9. Re: arranging components in a vertical manner in a jpanel?

    Oracle has a Visual Guide to Layout Managers that you might find useful for choosing which layout manager to use.

    Another approach to consider is to create a JTabbedPane and align all the tabs on...
Results 1 to 9 of 10