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 168986 - Ability to declare a top component not to have a window title/handle
Summary: Ability to declare a top component not to have a window title/handle
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: issues@platform
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-22 18:33 UTC by _ wadechandler
Modified: 2009-07-22 18:35 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ wadechandler 2009-07-22 18:33:46 UTC
This came up when a user on dev@openide was asking how to create a banner. He wants it under the toolbar and above
everything else. This is technically possible, and I'll paste how once I file the issue. The only problem is the banner
has a title which is most likely not what one would want, but I can see a use case for wanting it titled as well.
Anyways, this seems like it would be a good enhancement to the window system to allow such a thing perhaps when it is
docked in a docked mode and is the only TC in that mode. Should be something set like the other "Sliding not allowed"
and "Closing not allowed" options. Maybe "Untitled when only component in docked mode" or something like that.
Comment 1 _ wadechandler 2009-07-22 18:35:22 UTC
To create a banner with a titled window one can:

1) Expand Important Files/XML Layer/<this layer in context>/Windows2/Modes
2) Right click on Modes, roll over New, and click Empty File.
3) Name it banner.wsmode

Double click on banner.wsmode to open and edit and add:

<?xml version="1.0" encoding="UTF-8"?>

<mode version="2.3">
    <name unique="banner" />
  <kind type="view" />
  <state type="joined" />
  <constraints>
    <path orientation="vertical" number="0" weight="0.25"/>
  </constraints>
  <bounds x="0" y="0" width="0" height="0" />
  <frame state="0"/>
    <active-tc  id="BannerTopComponent" />
    <empty-behavior permanent="false"/>
</mode>

Create a new TopComponent/Window and then select the banner mode. Be sure and select it to open on application start,
sliding not allowed, closing not allowed, undocking not allowed, dragging not allowed, and maximization not allowed.

Next, set the preferred size of the TC to what ever you think it should be.

Then, you'll have to come up with some kind of an API or the like for it depending on how you want the banner to behave.