Search:

Type: Posts; User: startas

Search: Search took 0.10 seconds.

  1. Replies
    17
    Views
    4,873

    Re: How to get visible size of jpanel

    I'm making a simple game, and part of the game is elements, that randomly appears/disappears at random positions, i realised these elements via jbutton, and i'm looking for the best way to keep these...
  2. Replies
    17
    Views
    4,873

    Re: How to get visible size of jpanel

    Well, visually. I have a few panels-tabs, tabs has their own elements, and i need a way to add somewhere element, which will be visible over all other elements, so far the only way i found is to add...
  3. Replies
    17
    Views
    4,873

    Re: How to get visible size of jpanel

    So the only variant to keep one element over every other element is to add that element directly to frame, i.e. JFrame frame.add(button, 0) ?
  4. Replies
    17
    Views
    4,873

    Re: How to get visible size of jpanel

    If i have a simple JTabbedPane tabbedPane, and i add a few tabs to it with tabbedPane.addTab("name", JPanel panel), is it possible to add the same one element, i.e. JButton, to all of those...
  5. Replies
    17
    Views
    4,873

    Re: How to get visible size of jpanel

    Ok, my bad, update : it's not the point if it is jpanel or jlabel or jbutton or whatever, the point is, i can set frame's size i.e. to 1300x700, but i cant fit other elements into frame's work place...
  6. Replies
    17
    Views
    4,873

    Re: How to get visible size of jpanel

    It will be just a program for myself, so no different pcs, especially devices, and screens. I'm just starting to build my programs gui, but initial code looks like this :


    import...
  7. Replies
    17
    Views
    4,873

    Re: How to get visible size of jpanel

    I dont like layout managers and the way they work, so i dont use them, i do everything manually, it is much easier to place elements in the right place manualy, layout manager is like stupid AI in...
  8. Replies
    17
    Views
    4,873

    How to get visible size of jpanel

    2308
    So, i noticed a little misbehavior in java with all the sizes of jpanel. When i set bounds of jpanel, i.e., setbounds(0, 0, 100, 100), then the first point's (0,0) position is normal, but the...
Results 1 to 8 of 8