Kenneth_Hu | 1 Aug 01:36
Picon

Re: getResource() failing outside NetBeans


The class path might be different within and outside NetBeans;
Try to use the absolute path.

Neph wrote:
> 
> Hey there,
> 
> I use getResource to load images, and for instance:
> 
> imgURL = MenuBar.class.getResource("../icons/file-stop.png");
> menuItem.setIcon(new ImageIcon(imgURL));
> 
> Works fine when running using NetBeans (F6) but doesn't when using double
> click, or a batch script. The error is a NullPointerException on the
> second line, obviously that imgURL is null.
> How come this is working inside NetBeans but isn't outside of NetBeans?
> 
> (Inside the jar, the hierarchy is simple
> menu/MenuBar.java
> icons/file-stop.png
> )
> 
> Thanks in advance
> Lars
> 

--

-- 
View this message in context: http://www.nabble.com/getResource%28%29-failing-outside-NetBeans-tf4162147.html#a11937099
Sent from the Netbeans - Users mailing list archive at Nabble.com.
(Continue reading)

Paul Fussell | 1 Aug 02:32
Picon

Re: [Visual Web] Updating a Text Field

Brad,

It sounds like the first problem to solve is that the dropdown list 
isn't changing the values shown in the table. Are you doing something 
like what's done in 
<http://www.netbeans.org/kb/55/vwp-databoundcomponents.html> to pick 
a user and then display data from another table for that user? If so 
and you haven't done so already, I suggest going through the steps in 
that tutorial to first get the table to work. You'll need to:

1. Set up the query properly for the rowset used by the table so the 
table displays only what the dropdown list selects.
2. Adapt the code for the dropdown list's processValueChange method 
and for the prerender method.
3. Make sure to right-click the dropdown list and choose Autosubmit 
on Change (or the dropdown list won't submit the page when you select a value).

After you get that working,  think the next thing is to do is to set 
up the droplist to work with the text fields so they'll display and 
update the database table values. The idea is similar to the setup 
for the table. I won't go into detail on that now. For the update 
part it might be useful to apply principals from the Performing 
Inserts, Updates, and Deletes tutorial at 
<http://www.netbeans.org/kb/55/vwp-inserts_updates_deletes.html>.

If you run into more problems and want to send code samples or screen 
shots, I'll try to help.

--Paul

(Continue reading)

Sam Klin | 1 Aug 03:42

CVS with Netbeans

Hi,
 
I have a CVS repository on a Solaris Server (it's the GNU version). I am running Netbeans on Windows-XP. Is their a plugin/module for Netbeans that will give me some sort of visual way of working with CVS? Something like WINCVS?
 
Thanks for any help.
Sam Klin | 1 Aug 04:07

Re: CVS with Netbeans

OK. I figured out that I don't see the built in CVS option because as part of installing the Starteam module I also installed the Generic versioning support. Is there anyway I can go back to the workflow oriented CVS support module without having to reinstall Netbeans?
----- Original Message -----
From: Sam Klin
Sent: Tuesday, July 31, 2007 8:42 PM
Subject: [nbusers] CVS with Netbeans

Hi,
 
I have a CVS repository on a Solaris Server (it's the GNU version). I am running Netbeans on Windows-XP. Is their a plugin/module for Netbeans that will give me some sort of visual way of working with CVS? Something like WINCVS?
 
Thanks for any help.
Brad Oleson | 1 Aug 04:31

Re: Re: [Visual Web] Updating a Text Field

Paul -
 
I've worked it all out so that the form table displays things correctly when the drop down is changed.  Same with the static text fields, where I have tested them  But the regular text field only loads the first record it is tied to, then won't update when the drop down changes.  I'll send you a screen shot or two tomorrow.  Actually, I could deploy my development copy and you could probably test it live.  I will message you in the morning with more so you can check it out.  Thanks for your help!
 
Brad

--------------- Original Message Follows ------------------
From: Paul.Fussell <at> Sun.COM (Paul Fussell)
Date: 7/31/2007 05:32 PM (Pacific Standard Time)
To: nbusers <at> netbeans.org
Subject: Re: [nbusers][Visual Web] Updating a Text Field

Brad,

It sounds like the first problem to solve is that the dropdown list
isn't changing the values shown in the table. Are you doing something
like what's done in
to pick
a user and then display data from another table for that user? If so
and you haven't done so already, I suggest going through the steps in
that tutorial to first get the table to work. You'll need to:

1. Set up the query properly for the rowset used by the table so the
table displays only what the dropdown list selects.
2. Adapt the code for the dropdown list's processValueChange method
and for the prerender method.
3. Make sure to right-click the dropdown list and choose Autosubmit
on Change (or the dropdown list won't submit the page when you select a value).

After you get that working, think the next thing is to do is to set
up the droplist to work with the text fields so they'll display and
update the database table values. The idea is similar to the setup
for the table. I won't go into detail on that now. For the update
part it might be useful to apply principals from the Performing
Inserts, Updates, and Deletes tutorial at
.

If you run into more problems and want to send code samples or screen
shots, I'll try to help.

--Paul

At 01:22 PM 7/31/2007, Brad Oleson wrote:
>Yes, I have done the tutorials, but none of them really address using a text
>field specifically. Here's how I bound the text field to the database
>table:
>
>I first added a form table to the form, then dragged the DB table onto the
>form to create the data binding. Then, using the rowset created there, I
>bound the text field to the DB table field I want it to display (right
>click, bind to data, choose the right rowset and field).
>
>Is this a bad way to do it...or, is there a BETTER way to do it? It seemed
>that if I dragged the DB table to the text field it didn't create the
>binding relationship.
>
>Let me know if I can supply any more info. Thanks!
>
>Brad
>
>-----Original Message-----
>From: Paul.Fussell <at> Sun.COM [mailto:Paul.Fussell <at> Sun.COM]
>Sent: Tuesday, July 31, 2007 8:31 AM
>To: Brad Oleson
>Subject: I lost your last message
>
>Hi Brad,
>
>I managed to lose the last message on the visual web problems you've
>been having. Could you send it again directly to me? I'll run it past
>the team and see if anyone can figure things out. It sounds like it's
>a basic design thing that we probably didn't explain well enough.
>Have you done any of the tutorials? There are a few dealing with
>database access and binding components that might be useful for basic
>concepts. See the Accessing a Database section the web page at
>.
>
>
>Paul Fussell . Tech Writer . NetBeans Visual Web Pack
>mailto:paul.fussell <at> sun.com . mailstop umpk16-250
>phone/fax 877-249-1842 . internal x51772


Vaughn Spurlin | 1 Aug 05:28

Re: CVS with Netbeans

Turn off generic VCS, and turn CVS back on. You can switch back and forth as needed, but you can't have both active at the same time. The exact instructions depend on the IDE version, but with NB 5.5, do this:
 
1. In the IDE, choose Tools > Module Manager.
2. In the module manager check the Active box for Version Control, and uncheck Versioning (generic VCS).
 
See attached screenshots.
Vaughn
----- Original Message ----
From: Sam Klin <samk <at> twinix.com>
To: nbusers <at> netbeans.org
Sent: Tuesday, July 31, 2007 7:07:21 PM
Subject: Re: [nbusers] CVS with Netbeans

OK. I figured out that I don't see the built in CVS option because as part of installing the Starteam module I also installed the Generic versioning support. Is there anyway I can go back to the workflow oriented CVS support module without having to reinstall Netbeans?
----- Original Message -----
From: Sam Klin
Sent: Tuesday, July 31, 2007 8:42 PM
Subject: [nbusers] CVS with Netbeans

Hi,
 
I have a CVS repository on a Solaris Server (it's the GNU version). I am running Netbeans on Windows-XP. Is their a plugin/module for Netbeans that will give me some sort of visual way of working with CVS? Something like WINCVS?
 
Thanks for any help.

Vaughn Spurlin | 1 Aug 05:30

Re: CVS with Netbeans

Resending, because the screenshots somehow got lost. Probably don't need them, anyway.

----- Original Message ----
From: Vaughn Spurlin <spurdyne <at> pacbell.net>
To: nbusers <at> netbeans.org
Sent: Tuesday, July 31, 2007 8:28:30 PM
Subject: Re: [nbusers] CVS with Netbeans

Turn off generic VCS, and turn CVS back on. You can switch back and forth as needed, but you can't have both active at the same time. The exact instructions depend on the IDE version, but with NB 5.5, do this:
 
1. In the IDE, choose Tools > Module Manager.
2. In the module manager check the Active box for Version Control, and uncheck Versioning (generic VCS).
 
See attached screenshots.
Vaughn
----- Original Message ----
From: Sam Klin <samk <at> twinix.com>
To: nbusers <at> netbeans.org
Sent: Tuesday, July 31, 2007 7:07:21 PM
Subject: Re: [nbusers] CVS with Netbeans

OK. I figured out that I don't see the built in CVS option because as part of installing the Starteam module I also installed the Generic versioning support. Is there anyway I can go back to the workflow oriented CVS support module without having to reinstall Netbeans?
----- Original Message -----
From: Sam Klin
Sent: Tuesday, July 31, 2007 8:42 PM
Subject: [nbusers] CVS with Netbeans

Hi,
 
I have a CVS repository on a Solaris Server (it's the GNU version). I am running Netbeans on Windows-XP. Is their a plugin/module for Netbeans that will give me some sort of visual way of working with CVS? Something like WINCVS?
 
Thanks for any help.


Ryan | 1 Aug 05:46
Favicon

netbeans' anoying font problem

Hi, 
I used Netbeans for half a year. The integration is excellent, making me do less work. But I found the font of
Netbeans is really awful.
I want to set it as Couriter New, But it can not display Chinese. I checked the maillist, one user have the same
question, the reply is 
change font to Monospaced. I think it is a solution, but not a good one. When Netbeans 6M10 came out, I
download and install it, but sadly
the font problem still there. I wonder whether this is due to Swing ? Eclipse work well, and its font is
Couriter New. I don't know why?

Thanks !

Ryan
2007-08-01

ITVGuy2000 | 1 Aug 05:51
Picon
Favicon

Re: A few thoughts about NB


Marco Castillo-2 wrote:
> 
> My own opinions:
> 1. I think NB developer team must focus all of its efforts in making NB
> faster. This is undeniable. The VWP is slow, very slow, sometimes it just
> stop running and one have to restart the complete machine!!! :-(, and let
> me
> say that the resources in the machine has nothing to do in here!! (I have
> a
> Dual Core 2.1 Ghz with 4 GB RAM!!! and I assign 2GB to NB).
> 2. I don't see any guy at SUN giving its opinion on the matter. I will
> love
> to hear of you guys!!.
> 3. In the other hand, NB is a very good product. I love the VWP, it is an
> incredible tool!!. I would like to say that is not my intention in
> diminishing the great work the NB team has done giving to the Java
> developer
> community such an incredible tool. It is just that it could be better.
> 

I have to say ditto on all counts!

ITVGuy2000

--

-- 
View this message in context: http://www.nabble.com/A-few-thoughts-about-NB-tf4156111.html#a11939254
Sent from the Netbeans - Users mailing list archive at Nabble.com.

ITVGuy2000 | 1 Aug 05:58
Picon
Favicon

Re: A few thoughts about NB


Why is it that every time anyone types anything about improving performance
on this list that there is always someone else to jump in and say, "Well I
don't have any problems with performance (I find NB quite
speedy, without any lag time.)" as though that is end all answer?

ITVGuy2000

Kai Ponte wrote:
> 
> On Sun, July 29, 2007 12:43 pm, Marco Castillo wrote:
>> My own opinions:
>> 1. I think NB developer team must focus all of its efforts in making
>> NB
>> faster. This is undeniable. The VWP is slow, very slow, sometimes it
>> just
>> stop running and one have to restart the complete machine!!! :-(, and
>> let me
>> say that the resources in the machine has nothing to do in here!! (I
>> have a
>> Dual Core 2.1 Ghz with 4 GB RAM!!! and I assign 2GB to NB).
> 
> 
> I'm not sure what you mean by "faster" in this regard. I find NB quite
> speedy, without any lag time. It is - after all - a source code editor
> and GUI designer.
> 
> When I use the application, I am able to type and edit code with no
> noticeable lag.  Though I don't use Visual Studio on my main machine,
> when I downgrade to Windows, I do use VS 2003 and 2005, and notice
> little difference in speed between the IDE environments.
> 

--

-- 
View this message in context: http://www.nabble.com/A-few-thoughts-about-NB-tf4156111.html#a11939321
Sent from the Netbeans - Users mailing list archive at Nabble.com.


Gmane