Re: comp.lang.java.gui FAQ

From: Babu Kalakrishnan (k.a.l.a_at_sankya.com)
Date: 04/21/04


Date: Wed, 21 Apr 2004 13:00:08 +0530

hiwa wrote:
>
> Small contribution:
> Q: GUI doesn't update.
> A: Call validate() on the container.
>

Correction :

Q : GUI doesn't update after modifying the the contents of a Container.

A : For Swing containers, call revalidate()
     For AWT containers, call invalidate() followed by validate()

BK



Relevant Pages

  • Call for suggestions: Declaring data entry forms using Python classes
    ... For the purposes of GUI description, ... the renderer has to iterate over its fields. ... # instantiated as objects inside the container classes ... # I'm trying several versions of the iterator interface, ...
    (comp.lang.python)
  • Re: I never did this before...
    ... Still lazy, but I figured it out without looking. ... This way widgets never worry about in what kind of container they sit, row or stack, tho at runtime their geometry slots end up with rules providing rowy or stacky behavior. ... the last one ends up with a dependency chain sixteen longer than the intution would suggest looking at the parent-child depth of the GUI structure. ...
    (comp.lang.lisp)
  • Re: A container suitable for a "recent files menu"
    ... In many GUI ... > applications there's a menu the displays the most recent files that has ... Say such a menu has four entries and the most ... container class to provide the functionality that you need? ...
    (comp.lang.cpp)
  • Re: writeObject too slow for big object, any idea?
    ... Writing a container or GUI component? ... The things painted were components in the canvas, ... Had to make sure the canvas did not serialize the parent reference... ...
    (comp.lang.java.programmer)
  • Re: known Java frame, how to get handle to a edit control box?
    ... since the Peers for Swing classes will mostly use ... jdb to tell you what type of container you have at each ... > I am using Matlab7 to design my GUI. ... > focus to move to that control. ...
    (comp.lang.java.programmer)