Re: JFrame Resize Issues



On 30 Jun 2005 12:30:19 -0700, casey.lutz@xxxxxxxxx wrote:

> Well, the problem is the... well, okay I'll do my best to produce
> something real quick.

That was pretty quick for around ..1000+(?!) lines of code!

A couple of comments..

You'd think after that amount of code, you might remember to..

> static public void main(String[] args) {
> videoControl = new videoGui(0, 0);

videoControl.setVisible(true);

> }

Otherwise it is pretty boring.

What is the point of the 'mouse selection box'? Is
that necessary to demonstrate the problem? Did I miss
something?

And.. We need to be able to distinguish the corners of
the 'video window', (I take it that is the basic nature
of the component for which you want to maintain the
aspect ratio) so perhaps you need to draw a red 'x'
or a line from upper left to lower right of that
target component.

In the SOUTH you have a complex structure of buttons and
menus, does that demonstrate anything that a single text
field (spanning the entire width) would not?

I suspect you could trim this down to around 100-200
lines of code, and while somebody else might do that
in order to help you, you can also do it yourself
and save them the trouble.

Please be careful to keep the lines short, your code
had to have lines reconstructed before it would compile .

Finally. Please do not post such *long* code examples.

--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.LensEscapes.com/ Images that escape the mundane
.


Quantcast