>>>>> John Summerfield writes:
John> On Fri, 27 Nov 1998, Karthik Vishwanath wrote:
>> Hi all,
>> when i create an application as :
>> public class Myapp extends Frame
>> {
>> public Myapp()
>> {
>> super("MyApp");
>> setSize(100,100);
>> show();
>> }
>> }
>>
>> and run it, the setSize does not resize the frame.
>>
>> Can anyone tell me what must i do inorder to resize a frame?
>>
>> -Karthik.
John> Karthik
John> I did expect to see more sensible replies than I have thus far.
John> I expanded your code to what you SHOULD have posted - with
John> this example, the whole program isn't excesive.
John> This works here:
John> import java.awt.*;
John> class Myapp extends Frame
John> {
John> public Myapp()
John> {
John> super("MyApp");
John> setSize(1100,100);
John> show();
John> }
John> public static void main(String [] s)
John> {
John> Myapp m = new Myapp();
John> // m.setSize(1100,100);
John> // m.show();
John> }
John> }
John> I've not read through the docs, but setSize(100,100); does
John> not resize here either.
Ok, the code does exactly what it's supposed to do on my machine:
It opens a frame with the size 1100x100.
What window managers do you guys use? What JDK version?
Juergen