fixing the size of TopComponent

View: New views
2 Messages — Rating Filter:   Alert me  

fixing the size of TopComponent

by Ashaf :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

Re: fixing the size of TopComponent

by Marek Slama :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ashaf wrote:

> 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