NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

[platform-dev] Re: Topcomponent fix aspect ration width to height

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users
View previous topic :: View next topic  
Author Message
adamgmetzler



Joined: 27 Mar 2010
Posts: 22

PostPosted: Fri Jun 25, 2010 4:19 pm    Post subject: [platform-dev] Re: Topcomponent fix aspect ration width to height Reply with quote

Just add your fixed aspect ratio component a JPanel using the LayoutManager (the last code example in the forum link) and add you JPanel to your TopComponent.

On Fri, 2010-06-25 at 15:23 +0200, Oliver Rettig wrote:
Quote:
Quote:

Hallo,

I want to have a Topcomponent that resizes with a fix aspect ratio of width
and height.

In the forum
http://forums.sun.com/thread.jspa?threadID=5386305
there is described a specific Window Manager which does this. This works fine
for a JPanel/JFrame.

Has anybody done this for a Topcomponent. Maybe TopComponent itself can be
extended with this functionality? Maye this is done and I do not know this?

best regards
Oliver



Back to top
Oliver Rettig
Posted via mailing list.





PostPosted: Fri Jun 25, 2010 8:30 pm    Post subject: [platform-dev] Re: Topcomponent fix aspect ration width to height Reply with quote

Hi Adam,
thanks for your answer. Yes, I think I will do it the way you explain, but I
thought maybe there is an existing Netbeans implementation of this
functionality still there.
best regards
Oliver
Quote:
Just add your fixed aspect ratio component a JPanel using the
LayoutManager (the last code example in the forum link) and add you
JPanel to your TopComponent.

On Fri, 2010-06-25 at 15:23 +0200, Oliver Rettig wrote:
Quote:
Hallo,

I want to have a Topcomponent that resizes with a fix aspect ratio of
width and height.

In the forum
http://forums.sun.com/thread.jspa?threadID=5386305
there is described a specific Window Manager which does this. This works
fine for a JPanel/JFrame.

Has anybody done this for a Topcomponent. Maybe TopComponent itself can
be extended with this functionality? Maye this is done and I do not know
this?

best regards
Oliver
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo