Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > fix horizontal size

Reply
Thread Tools

fix horizontal size

 
 
Scott
Guest
Posts: n/a
 
      09-20-2003
I have a JFrame that I'd like to fix so it is resizable vertically, but not
horizontally. I can't seem to come up with any simple way of doing this, but
it doesn't sound like it should be too difficult.

Can anybody help. If I need to make it a JWindow, or something else, that
shouldn't be a problem.

Cheers
Scott


 
Reply With Quote
 
 
 
 
Harald Hein
Guest
Posts: n/a
 
      09-20-2003
"Scott" wrote:

> I have a JFrame that I'd like to fix so it is resizable
> vertically, but not horizontally. I can't seem to come up with any
> simple way of doing this, but it doesn't sound like it should be
> too difficult.


There is no direct way. You could hook into the resizing event and set
the width back to what you like. This will give you some unusual
jumping window resizing behavior.

BTW comp.lang.java is not a valid newsgroup

 
Reply With Quote
 
 
 
 
Scott
Guest
Posts: n/a
 
      09-21-2003
"Harald Hein" <> wrote in message
news:Xns93FCC09C7E6Dhhtoken@194.97.5.16...
> "Scott" wrote:
>
> > I have a JFrame that I'd like to fix so it is resizable
> > vertically, but not horizontally. I can't seem to come up with any
> > simple way of doing this, but it doesn't sound like it should be
> > too difficult.

>
> There is no direct way. You could hook into the resizing event and set
> the width back to what you like. This will give you some unusual
> jumping window resizing behavior.

Yeah that was the about the only way I could think of doing it, but I
thought there must be a better way.
Aw well

>
> BTW comp.lang.java is not a valid newsgroup

Oh isn't it. I won't bother with it then

Thanks


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Xah's Edu Corner: The Concepts and Confusions of Pre-fix, In-fix, Post-fix and Fully Functional Notations Xah Lee Perl Misc 21 03-21-2006 07:02 AM
Xah's Edu Corner: The Concepts and Confusions of Pre-fix, In-fix, Post-fix and Fully Functional Notations Xah Lee Python 23 03-21-2006 07:02 AM
Xah's Edu Corner: The Concepts and Confusions of Pre-fix, In-fix, Post-fix and Fully Functional Notations Xah Lee Java 22 03-21-2006 07:02 AM
any way to convert vertical pic to horizontal without loosing too much in size? Mario Digital Photography 11 01-20-2005 01:15 AM
What caused the horizontal stripes in my picture? How do I fix it? Bubba Digital Photography 6 10-30-2004 04:47 AM



Advertisments