🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #16522

Newbee question

#16522
From: Fang Zhong
Date: Tue, 09 Feb 1999 00:00
39 lines
1293 bytes
Hello:

I am learning Java but a simple test makes me puzzled:

The following codes work fine. I get a frame of size 100 X 100:

public class Frame1 extends DecoratedFrame {

  public Frame1() {
  }

  public static void main(String[] args) {
    Frame1 frame11 = new Frame1();
    frame11.setSize(100, 100);
    frame11.show();
  }
}

The following codes only give me a minimized:

public class Frame1 extends DecoratedFrame {

  public Frame1() {
  }

  public static void main(String[] args) {
    Frame1 frame11 = new Frame1();
    Dimension frameSize = frame11.getSize();
    frameSize.height = 100;
    frameSize.width = 100;
    frame11.setVisible(true);
  }
}

Based on my understanding, they are equivalent. Can you help me on this?

Thanks,

Fang Zhong
Technical Details
Message-ID: <36C0B3B8.5FC58A59@hba.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,d6beff772fa1174a,start
X-Google-Attributes: gidf74b3,public
From: Fang Zhong <fangz@hba.com>
Subject: Newbee question
Date: 1999/02/09
Message-ID: <36C0B3B8.5FC58A59@hba.com>
X-Deja-AN: 442576369
Content-Transfer-Encoding: 7bit
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language