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.

Bug 12079 - IllegalArgumentException -> JToolBar: Test action: pick toolbar out of frame, close toolbar
Summary: IllegalArgumentException -> JToolBar: Test action: pick toolbar out of frame,...
Status: CLOSED INVALID
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: Sun Solaris
: P4 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-05-10 10:43 UTC by Marian Mirilovic
Modified: 2003-06-30 18:32 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IllegalArgumentException : frame with AbsoluteLayout (1.23 KB, text/plain)
2001-05-10 10:44 UTC, Marian Mirilovic
Details
IllegalArgumentException : frame with GridBagLayout (1.29 KB, text/plain)
2001-05-10 10:44 UTC, Marian Mirilovic
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marian Mirilovic 2001-05-10 10:43:30 UTC
[pilsen](010505), [jdk1.3.0]

SWING:

- open frame (AbsoluteLayout,GridBagLayout)
- add toolbar(with component)
- test frame
- move toolbar out of frame
- close toolbar window

you obtain IllegalArgumentException
Comment 1 Marian Mirilovic 2001-05-10 10:44:13 UTC
Created attachment 1339 [details]
IllegalArgumentException : frame with AbsoluteLayout
Comment 2 Marian Mirilovic 2001-05-10 10:44:43 UTC
Created attachment 1340 [details]
IllegalArgumentException : frame with GridBagLayout
Comment 3 Tomas Pavek 2001-05-15 18:02:01 UTC
This is a problem of how JToolBar behaves - it tries to add itself back to the 
container, but it is designed to be used only with BorderLayout, for other 
layout managers it cannot provide layout constraints - and some layout managers 
don't allow adding components without constraints.
We could change the AbsoluteLayout, but such a change is hardly justifiable 
(not even thinking about other layout managers). It's up to the developer to 
use JToolBar correctly.

So I'm marking this invalid.
Comment 4 Quality Engineering 2003-06-30 18:20:08 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.
Comment 5 Quality Engineering 2003-06-30 18:32:05 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.