[Nanodesigner-developers] Some Java issues
Status: Alpha
Brought to you by:
swinnen
|
From: <sw...@us...> - 2004-12-02 17:51:38
|
I have some questions about using swing. 1. In the three windows interface I used a ComponentListener to prevent=20 the menu and toolbox window to expand over the entire screen. Works fine=20 but, unfortunately, it makes the screen flash. You can see the outline=20 of the window while resizing, as usual, but after you release the mouse=20 button the window resizes to the last outlined size and then immediately=20 resizes to the restricted size I have set in componentResized, hence the=20 flash. How to prevent it? 2. How can I find out the height of the title bar in a window/frame? I=20 know it is 22+4 pixels in Windows but is this always the case? I would=20 prefer not to hardcode it unless it is the same in all operating=20 systems, which I doubt. 3. Is it possible to limit the size of a window so that it doesn=92t=20 overlap the task bar? I have seen it in some programs and I wonder how=20 they do it. Val=E8re |