|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
Fix Window ComponentsHi,
I'd like to know how I can fix window components in Netbeans: this windows cannot be moved by user but I want only decide where they must be placed. Are there some parameters to set in My Window Component Class ? Thanks to all, Stefano Ferrari. Tante idee per la salvaguardia del nostro Pianeta su Yahoo! For Good http://it.promotions.yahoo.com/forgood/environment.html |
|
|
Re: Fix Window ComponentsStefano Ferrari wrote:
> Hi, > > I'd like to know how I can fix window components in Netbeans: this windows cannot be moved by user but I want only decide where they must be placed. > > Are there some parameters to set in My Window Component Class ? > > > Do you mean TopComponent? Easiest way is to arrange manualy, exit app and look what is in user dir under Windows2Local. Then copy necessary files into module layer. For more info look at http://core.netbeans.org/windowsystem/changes.html Simple examples are at hg repo main/misc http://hg.netbeans.org/main/misc/file/tip/platform/samples/ starting with "window-system". Marek |
|
|
Re: Fix Window ComponentsIf you're referring to TopComponents, this can help too:
http://blogs.sun.com/geertjan/entry/farewell_to_space_consuming_weird On May 6, 2008, at 3:04 , Marek Slama wrote: > Stefano Ferrari wrote: >> Hi, >> >> I'd like to know how I can fix window components in Netbeans: this >> windows cannot be moved by user but I want only decide where they >> must be placed. >> >> Are there some parameters to set in My Window Component Class ? >> >> >> > Do you mean TopComponent? Easiest way is to arrange manualy, exit > app and look what is in user dir under Windows2Local. > Then copy necessary files into module layer. > > For more info look at http://core.netbeans.org/windowsystem/changes.html > > Simple examples are at hg repo main/misc http://hg.netbeans.org/main/misc/file/tip/platform/samples/ > starting with "window-system". > > Marek > > -- Fabrizio Giudici, Ph.D. - Java Architect, Project Manager Tidalwave s.a.s. - "We make Java work. Everywhere." weblogs.java.net/blog/fabriziogiudici - www.tidalwave.it/blog Fabrizio.Giudici@... - mobile: +39 348.150.6941 |
|
|
Re: Fix Window ComponentsFabrizio Giudici wrote:
> If you're referring to TopComponents, this can help too: > > http://blogs.sun.com/geertjan/entry/farewell_to_space_consuming_weird Thanks Fabrizio and thanks to Marek, too. Sorry if I responde only now, but I was so busy and I've not read email for some day. Stefano. |
|
|
How to clear the Output panel(s)I'm trying to clear the Output panel. The IOProvider apparently is not a
way to do this, but I am not sure how to go about it another way. I can get a hold of the Output panel through a very naive way: WindowManager manager= WindowManager.getDefault(); Set<TopComponent> topComponents = manager.getRegistry().getOpened(); for(TopComponent tc : topComponents) if(tc.getDisplayName() != null && tc.getDisplayName().equalsIgnoreCase("Output")) ...but even then I have trouble locating the actual text component which would let me issue a .clear() or setText(""). Any help greatly appreciated, /Casper |
|
|
RE: How to clear the Output panel(s)Why don't you want to use IOProvider? I use it and it works. Here's what I do:
InputOutput io = IOProvider.getDefault().getIO(outputWindowName, false); io.getOut().reset(); -Elizabeth -----Original Message----- From: Casper Bang [mailto:casper@...] Sent: Friday, May 09, 2008 9:11 PM To: dev@... Subject: [openide-dev] How to clear the Output panel(s) I'm trying to clear the Output panel. The IOProvider apparently is not a way to do this, but I am not sure how to go about it another way. I can get a hold of the Output panel through a very naive way: WindowManager manager= WindowManager.getDefault(); Set<TopComponent> topComponents = manager.getRegistry().getOpened(); for(TopComponent tc : topComponents) if(tc.getDisplayName() != null && tc.getDisplayName().equalsIgnoreCase("Output")) ...but even then I have trouble locating the actual text component which would let me issue a .clear() or setText(""). Any help greatly appreciated, /Casper |
| Free Forum Powered by Nabble | Forum Help |