comp.lang.java.programmer http://groups-beta.google.com/group/comp.lang.java.programmer [EMAIL PROTECTED]
Today's topics: * Relayout of JFrame? - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/b187f0e6674dae98 * newbie - Servlets - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/9871d1fe64dbaa63 ============================================================================== TOPIC: Relayout of JFrame? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/b187f0e6674dae98 ============================================================================== == 1 of 2 == Date: Wed, Dec 8 2004 7:44 am From: "Ann" Try this: public void layoutContainer(Container parent) {} "Babu Kalakrishnan" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Knute Johnson wrote: > > I've got a JFrame app that has several components laid out with > > GridBagLayout. One of the components is a JPanel that I draw an image > > on. This component occaisionally can change size. After I resize my > > JPanel, I invalidate it, repaint it and then call pack() on the JFrame. > > Is there a way to cause the JFrame to relayout the components but not > > shrink to fit the layout as it does with pack() but still grow if > > necessary? > > > > I'm afraid nothing that does it automatically. But you can always query > the panel for its preferredSize and set the size of the frame > appropriately - making it bigger if required, but not shrinking it if > that is the case. > > BK == 2 of 2 == Date: Wed, Dec 8 2004 8:57 am From: Martin Egholm Nielsen > I've got a JFrame app that has several components laid out with > GridBagLayout. One of the components is a JPanel that I draw an image > on. This component occaisionally can change size. After I resize my > JPanel, I invalidate it, repaint it and then call pack() on the JFrame. > Is there a way to cause the JFrame to relayout the components but not > shrink to fit the layout as it does with pack() but still grow if > necessary? Try setting the minimumSize(Dimension d) to the minimum-size you want... ============================================================================== TOPIC: newbie - Servlets http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/9871d1fe64dbaa63 ============================================================================== == 1 of 1 == Date: Tues, Dec 7 2004 11:48 pm From: [EMAIL PROTECTED] (Xarky) Hi, I am currently using the JCreator IDE. As already told I compiled the class for MyHelloWorld. I copied the .class file into my /webapps/servlets-examples/ folder. Is this the correct path? I have read that I should create some sort of XML file. How can this be done, or can it be avoided? Thanks ============================================================================== You received this message because you are subscribed to the Google Groups "comp.lang.java.programmer" group. To post to this group, send email to [EMAIL PROTECTED] or visit http://groups-beta.google.com/group/comp.lang.java.programmer To unsubscribe from this group, send email to [EMAIL PROTECTED] To change the way you get mail from this group, visit: http://groups-beta.google.com/group/comp.lang.java.programmer/subscribe To report abuse, send email explaining the problem to [EMAIL PROTECTED] ============================================================================== Google Groups: http://groups-beta.google.com
