Search:

Type: Posts; User: liron50

Search: Search took 0.07 seconds.

  1. Replies
    17
    Views
    2,703

    Re: Hiding\Showing parts of the frame

    Again it's work.
    But if the components that I set his visible to false is JPanel it's enough to set it's visible, if it's JScrollPane I also need to call pack();

    you can run the code example and...
  2. Replies
    17
    Views
    2,703

    Re: Hiding\Showing parts of the frame

    Yes,

    only in case of setting the visibility of JScrollPane I have to call method pack() of the frame, to see the change.
  3. Replies
    17
    Views
    2,703

    Re: Hiding\Showing parts of the frame

    oo my, just now I understand why it's happen,
    because when I do it in the second way:
    add(new JScrollPane(southPanel), BorderLayout.SOUTH);

    I actually had the scrollPane to the frame, and after...
  4. Replies
    17
    Views
    2,703

    Re: Hiding\Showing parts of the frame

    But you did help...
    thanks again
  5. Replies
    17
    Views
    2,703

    Re: Hiding\Showing parts of the frame

    by the way, it's acting the same also with GridBagLayout.
  6. Replies
    17
    Views
    2,703

    Re: Hiding\Showing parts of the frame

    I found where the problem.
    I wrote little program with 5 panel, and 5 buttons that each button make panel hide\show and indeed the panel expand as I want.

    But when I add the panels with...
  7. Replies
    17
    Views
    2,703

    Re: Hiding\Showing parts of the frame

    I don't sure,
    I am using currently GridBagLayout. but before that I try to use BorderLayout and that also won't help.
    After I set the visibly for component into false, his place become empty.
  8. Replies
    17
    Views
    2,703

    Re: Hiding\Showing parts of the frame

    what I'm trying is similar to the functionality in the eclipse environment.
    if, for example I have four windows opening (like the first picture - the explorer the code, the javadoc and the task list...
  9. Replies
    17
    Views
    2,703

    Re: Hiding\Showing parts of the frame

    but I want that the other components will re size and fill the space,
    I don't want that the frame will be smaller.
    if I will calculate it, I will need to take into account all possibilities and...
  10. Replies
    17
    Views
    2,703

    Hiding\Showing parts of the frame

    I have JFrame with some components, and I'm trying to supply methods for
    hiding\showing each component.
    I set the visible of the component to false - witch make him indeed invisible,
    and them I...
Results 1 to 10 of 10