| View previous topic :: View next topic |
| Author |
Message |
ashraf
Joined: 12 Oct 2009 Posts: 6
|
Posted: Mon Nov 02, 2009 12:00 pm Post subject: fixing the size of TopComponent |
|
|
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 |
|
 |
Marek Slama Posted via mailing list.
|
Posted: Mon Nov 02, 2009 12:25 pm Post subject: fixing the size of TopComponent |
|
|
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
|
Posted: Mon Nov 02, 2009 1:11 pm Post subject: |
|
|
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 |
|
 |
|
|
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
|
|
|
|