[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.newcomer] Re: Question regarding visual editor

I've already tried frame.setSize(400,400); and it didn't work.

However I made an interesting discovery (thanks to Jeff's note about frame.pack();) that solved my problem.

It seems that frame.pack() wipes out whatever values I set in frame.setSize().

So, if I either:
-Call frame.setSize() after calling frame.pack()
-Don't call frame.pack()

Everything works as expected, and the window is the size I specified in frame.setSize.

Thanks Jeff!