FeaturesPluginsDocs & SupportCommunityPartners

NetBeans Forums

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

fixing the size of TopComponent

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



Joined: 12 Oct 2009
Posts: 6

PostPosted: Mon Nov 02, 2009 12:00 pm    Post subject: fixing the size of TopComponent Reply with quote

Hi everyone,

I have a TopComponent with three panels inside.. i have customized a mode
viz undocked and exhibits modal behavior. Sometimes when i run my App, the
TopComponent size shrinks down to minimum(like a JDialogue) and the biggest
problem is when i try to run the application in other machine probably
having different resolution, the window sometimes is too small to display
all the panels and components inside it.
My requirement is i need the window size to be fixed relative to screen
resolution and user should not be able to shrink or resize it, in the sense
atleast panels inside the window should be visible. Can anybody plz help me
out?

Thanks,
Ashraf
--
View this message in context: http://old.nabble.com/fixing-the-size-of-TopComponent-tp26156689p26156689.html
Sent from the Netbeans RCP/Platform Users (Open API) mailing list archive at Nabble.com.
Back to top
View user's profile Send private message
Marek Slama
Posted via mailing list.





PostPosted: Mon Nov 02, 2009 12:25 pm    Post subject: fixing the size of TopComponent Reply with quote

Ashaf wrote:
Quote:
Hi everyone,

I have a TopComponent with three panels inside.. i have customized a mode
viz undocked and exhibits modal behavior. Sometimes when i run my App, the
TopComponent size shrinks down to minimum(like a JDialogue) and the biggest
problem is when i try to run the application in other machine probably
having different resolution, the window sometimes is too small to display
all the panels and components inside it.
My requirement is i need the window size to be fixed relative to screen
resolution and user should not be able to shrink or resize it, in the sense
atleast panels inside the window should be visible. Can anybody plz help me
out?

Thanks,
Ashraf

I think you need to change mode container to be modified JFrame (without
resize) or
JDialog? How did you customize it so far?

Marek
Back to top
ashraf



Joined: 12 Oct 2009
Posts: 6

PostPosted: Mon Nov 02, 2009 1:11 pm    Post subject: Reply with quote

Thanks for the reply Marek. I have customized it by following the procedure given in Window System API screencast video, wherein we open a topcomponent undock it and fix it to the position we want, close the application and copy the anonymous mode files created in the testuserdir.
I would like to know more about changing the mode container to modified JFrame or JDialogue, coz i have never done it. Is it like creating a JDialogue with a topcomponent inside??
Back to top
View user's profile Send private message
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