This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | netbeans.windows.maxframe & netbeans.windows.small_main_window do not cooperate | ||
---|---|---|---|
Product: | platform | Reporter: | Jesse Glick <jglick> |
Component: | Window System | Assignee: | mslama <mslama> |
Status: | CLOSED FIXED | ||
Severity: | blocker | CC: | mmirilovic |
Priority: | P4 | Keywords: | UI |
Version: | 3.x | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | Marek's proposed patch |
Description
Jesse Glick
2002-04-25 15:41:41 UTC
Created attachment 5560 [details]
Marek's proposed patch
It is OK. StatusLine.getPrefferedSize() is called every time revalidate of menu bar is performed not just at start. I checked what happens when you disable CVS => menu is refreshed => buttons disappear. I suspect that during refreshing menu removeAll() is called on menu bar it causes missing buttons. But it is different problem. I will file issue for it - it happens also without small window switch. I think it will require either to split menu bar and added buttons or to make refreshing menu bar smarter - not to remove all everything just menu items but not buttons because adding/removing buttons is controled elsewhere. Is such solution acceptable? The trouble is that org.openide.awt.MenuBar calls removeAll() when it refreshes. For workaround, see org.netbeans.core.windows.MainWindow.StatusMenuBar.validate(). Should be straightforward to hack that more generally to preserve all non-JMenu's (or whatever it is that MenuBar is capable of adding). I must overwrite MenuBar.removeAll(). It is the same with/without small window switch. In addition I must make sure that menu items are added at correct position - inserted in the middle - issue #22807 Fixed in main trunk. Modified: org/netbeans/core/windows/StatusLine.java r.1.10 All available space is assigned to status line when it is put to menu bar to avoid truncation of status line. verified in [nb_dev](20020430) Resolved for 3.4.x or earlier, no new info since then -> closing. |