Results 1 to 2 of 2
  1. #1
    Borneq is offline Member
    Join Date
    Jan 2010
    Rep Power

    Default How to set size of window content?

    I want write calculator with windows contenct size 320x480.
    CalcGui frame = new CalcGui();
    calc.setSize(320, 480); <---- size whole window with title and bound
    frame.setPreferredSize(new Dimension(320, 480));

    frame.getContentPane().setPreferredSize(new Dimension(320, 480))

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Washington, DC
    Rep Power

    Default Re: How to set size of window content?

    Look into the following: borders, insets, and margins.
    How to Ask Questions the Smart Way
    Static Void Games - GameDev tutorials, free Java and JavaScript hosting!
    Static Void Games forum - Come say hello!

Similar Threads

  1. Window size increase animation
    By eLancaster in forum New To Java
    Replies: 3
    Last Post: 04-07-2011, 07:57 PM
  2. how to restrict the size of the window in swt
    By chakribobby in forum SWT / JFace
    Replies: 2
    Last Post: 06-09-2010, 04:31 PM
  3. Replies: 22
    Last Post: 05-19-2010, 03:00 PM
  4. run last class in full size window
    By sonny in forum Eclipse
    Replies: 0
    Last Post: 03-05-2010, 03:56 PM
  5. Replies: 1
    Last Post: 06-06-2008, 08:55 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts