HandyGeek | 1 Nov 01:09
Picon

Re: ClassNotFoundException using JDBC driver to connect to SQL Server and NetBeans 5.5.1

This should apply to SQL Server (I use Oracle) - Did you place the 
correct jar file in the common/lib directory?

Jaime Stuardo wrote:
> Hello... I am having problems with connecting NetBeans 5.5.1 IDE with a SQL
> Server 2005 database. 
>
> I have this in the imports section of a servlet source code: 
> import java.sql.*; 
> import com.microsoft.sqlserver.jdbc.*; 
>
> The second import is recognized well by the IDE, meaning that the SQL Server
> classes are correctly reachable (I have added the JAR file to the library of
> the project) 
>
> When I write in code:
> Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");, NetBeans
> immediately throws a classNotFoundException. The folder that contains the
> sqljdbc.jar file is present in system environment CLASSPATH as well. 
>
> I cannot even compile the code because of the same ClassNotfound compilation
> error
>
> What is wrong? 
> Thanks 
>
> Jaime
>   

(Continue reading)

Keefie | 1 Nov 01:20
Picon

I can run unit tests but not debug them with NB 5.5.1


Soooo, I've finally given up trying to make any timely progress with the
corporate dictated JDeveloper 11g and as I no longer having a license for my
beloved Intellij IDEA I thought I'd give the much publicized "New Netbeans"
a shot. 

Overall it seems a whole lot better than Eclipse and JDeveloper although I'm
still having a little difficulty getting it to realize that it is not the
center of my universe and that I do have source code that was not created
using Netbeans and is not part of any Netbeans project structure. But that
is not my most pressing problem.

I know I must be doing something really basic wrong but when it is so easy
to do a right-mouse-click and have my test compile & run you can imagine my
dismay when my tests don't even compile when I do a right-mouse-click to
debug :(

Start of many error messages follow. They seem to indicate that in debug
mode JUnit has disappeared from the compile classpath.

init:
deps-jar:
compile:
Compiling 17 source files to C:\Documents and
Settings\vmware\Montecarlo\build\test\classes
E:\montecarlo\checkout\montecarlo\trunk\java_src\test\com\apldbio\lims\dsl\TestCounter.java:12:
package org.junit does not exist
import org.junit.Assert;
E:\montecarlo\checkout\montecarlo\trunk\java_src\test\com\apldbio\lims\dsl\TestDSLResolver.java:10:
package org.junit does not exist
(Continue reading)

Chris M | 1 Nov 01:27
Picon

Re: Convenient way to add bean properties ?

Right click an empty space on your toolbars and select 'Customize'. From the dialog just locate the action button needed and drag it onto your toolbar.

Chris.

On 10/31/07, burferd <jarzabek <at> pobox.com> wrote:

How does one go about doing that?


Chris M-7 wrote:
>
> Why not add the 'Find in projects' button to the toolbar?
>
> On 10/31/07, burferd < jarzabek <at> pobox.com> wrote:
>>
>>
>> I also miss having the global find icon on the main menu.
>> In 6.0 you have to select "Find in projects..." under the "Edit" menu bar
>> item.
>
>

--
View this message in context: http://www.nabble.com/Convenient-way-to-add-bean-properties---tf4719148.html#a13520184
Sent from the Netbeans - Users mailing list archive at Nabble.com.

burferd | 1 Nov 01:40
Picon
Favicon

Re: Convenient way to add bean properties ?


Cool...  Easy when you know how.
You don't by any chance have an answer to my original question about adding
attributes in NB6?
It is a real PITA to have to cut/paste and edit an existing attribute to
make a new one.
Some of my session beans have hundreds of attributes to bind to components.
Can't just make them public, got to have getter methods for binding.

Chris M-7 wrote:
> 
> Right click an empty space on your toolbars and select 'Customize'. From
> the
> dialog just locate the action button needed and drag it onto your toolbar.
> 
> Chris.
> 
> On 10/31/07, burferd <jarzabek <at> pobox.com> wrote:
>>
>>
>> How does one go about doing that?
>>
>>
>> Chris M-7 wrote:
>> >
>> > Why not add the 'Find in projects' button to the toolbar?
>> >
>> > On 10/31/07, burferd <jarzabek <at> pobox.com> wrote:
>> >>
>> >>
>> >> I also miss having the global find icon on the main menu.
>> >> In 6.0 you have to select "Find in projects..." under the "Edit" menu
>> bar
>> >> item.
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Convenient-way-to-add-bean-properties---tf4719148.html#a13520184
>> Sent from the Netbeans - Users mailing list archive at Nabble.com.
>>
> 
> 

--

-- 
View this message in context: http://www.nabble.com/Convenient-way-to-add-bean-properties---tf4719148.html#a13521545
Sent from the Netbeans - Users mailing list archive at Nabble.com.

Mark A Hausman | 1 Nov 02:00

How to use Swing Actions with Matisse?

I am using NB 5.5.1 and the Matisse GUI Builder to create a large program with toolbar buttons and menu items that perform duplicate tasks.  I want to use javax.swing.Action objects to ensure that my buttons and menu items are synchronized, but I cannot see how to do it in Matisse.
 
When I use the Events pane of the Properties window for a button or menu item, clicking on "actionPerformed" creates a skeleton method only for the specific component I have selected, not a separate Action object.  If I choose the "action" property on the Properties pane, it brings up the bewildering Form Connection Wizard.  I have been unable to use this Wizard either to create a new Action object or to associate my component with an Action I have previously written by hand.
 
Can this actually be done in Matisse?
 
Mark A. Hausman
NorthWest Research Associates
301 Webster St.
Monterey, CA  93940
(831) 582-4903
 
Travis Risner | 1 Nov 02:19
Favicon

Re: Convenient way to add bean properties ?

Hi Rick & burferd,

The Module Manager is now a downloadable plugin, even for a "full" 
install.  I think it moved to one of the update centers that is visible 
only from the dailies.  More info is given at 
http://wiki.netbeans.org/wiki/view/NB6BetaModulesUC.

HTH,
Travis

Rick Fincher wrote:
> Hi,
>
> No, sorry, I missed where you mentioned that you were using 6.0b2 in 
> your first post.
>
> That's a pretty critical capability so, it has to be there somewhere.
>
> Sorry to have wasted your time.  I'll be interested to hear the answer 
> to that one before I make the leap to NB 6.
>
> Rick
>
> burferd wrote:
>> Hi Rick:
>>
>> Are you using NB 6.0? I'm using NB6.0 Beta 2.
>> I don't see "Module Manager" under the "Tools" menu bar item.
>> There are several "Design Time Support" libraries.
>>
>> They changed up the interface considerably from 5.5. That was almost the
>> same as JSC.
>> I also miss having the global find icon on the main menu.
>> In 6.0 you have to select "Find in projects..." under the "Edit" menu bar
>> item.
>>
>> They took a step backwards in the user interface IMHO, but they do have
>> prettier icons.
>>
>>
>> Rick Fincher wrote:
>>   
>>> Hi,
>>>
>>> My setup has it under the "Window" menu bar item.  Sounds like something 
>>> did not get installed or turned on. 
>>>
>>> Try opening the "Module Manager" under the "Tools" menu bar item.  Then 
>>> click the "+" by "Visual Web".  There should be a ton of items under 
>>> there that all have check boxes checked to enable them.
>>>
>>> Also, under the "Libraries" folder in your project you should see 8 or 9 
>>> "Design Time Support" libraries.
>>>
>>> If not, you may need to unload and re-install the VWP module.
>>>
>>>
>>> Rick
>>>
>>> burferd wrote:
>>>     
>>>> Maybe I'm a bit dense, but I do not see an "Outline" panel.
>>>> I've looked everywhere I can think of on the display and in the "View"
>>>> and
>>>> "Window" menu options.
>>>>
>>>> What am I missing?
>>>>
>>>>
>>>> Rick Fincher wrote:
>>>>   
>>>>       
>>>>> Hi,
>>>>>
>>>>> It's there, you just have to right-click on your page then select "add" 
>>>>> in the "Outline" panel, not the "Project" panel.  Works just like
>>>>> Creator.
>>>>>
>>>>> Rick
>>>>>
>>>>> burferd wrote:
>>>>>     
>>>>>         
>>>>>> I have just started using NetBeans (6.0 B2) - switching from Java
>>>>>> Studio
>>>>>> Creator.
>>>>>>
>>>>>> There are a lot of similarities between the two, but one feature I used
>>>>>> in
>>>>>> JSC 2 ALL THE TIME was adding bean properties.
>>>>>>
>>>>>> You right click on a session bean, select Add / Properties and you
>>>>>> could
>>>>>> add
>>>>>> a bean property with getter and setter methods.
>>>>>>
>>>>>> I am probably missing something, but I do not see a comparable feature
>>>>>> in
>>>>>> NB.
>>>>>> The Add option seems to be disabled.
>>>>>>
>>>>>> Is there a convenient way to add a property with setter and getter
>>>>>> methods?
>>>>>> Something other than cut and paste of another property?
>>>>>>
>>>>>> Thanks
>>>>>>   
>>>>>>       
>>>>>>           
>>>>>     
>>>>>         
>>>>   
>>>>       
>>>     
>>   
>

Wade Chandler | 1 Nov 03:05
Picon
Favicon

Re: Convenient way to add bean properties ?


The beans module has been removed. I'm hoping in the coming days to work on it some. Not my day job, so it is just
a matter of time. I know one of the Sun folks will also be looking to work on it. It will have to be an AU hotfix or
something as it can't make it for 6.0. There is an issue for this in IZ:
http://www.netbeans.org/issues/show_bug.cgi?id=90907

I think this is what you are referring is it not?

Wade

----- Original Message ----
From: burferd <jarzabek <at> pobox.com>
To: nbusers <at> netbeans.org
Sent: Wednesday, October 31, 2007 8:40:08 PM
Subject: Re: [nbusers] Convenient way to add bean properties ?

Cool...  Easy when you know how.
You don't by any chance have an answer to my original question about
 adding
attributes in NB6?
It is a real PITA to have to cut/paste and edit an existing attribute
 to
make a new one.
Some of my session beans have hundreds of attributes to bind to
 components.
Can't just make them public, got to have getter methods for binding.

Chris M-7 wrote:
> 
> Right click an empty space on your toolbars and select 'Customize'.
 From
> the
> dialog just locate the action button needed and drag it onto your
 toolbar.
> 
> Chris.
> 
> On 10/31/07, burferd <jarzabek <at> pobox.com> wrote:
>>
>>
>> How does one go about doing that?
>>
>>
>> Chris M-7 wrote:
>> >
>> > Why not add the 'Find in projects' button to the toolbar?
>> >
>> > On 10/31/07, burferd <jarzabek <at> pobox.com> wrote:
>> >>
>> >>
>> >> I also miss having the global find icon on the main menu.
>> >> In 6.0 you have to select "Find in projects..." under the "Edit"
 menu
>> bar
>> >> item.
>> >
>> >
>>
>> --
>> View this message in context:
>>
 http://www.nabble.com/Convenient-way-to-add-bean-properties---tf4719148.html#a13520184
>> Sent from the Netbeans - Users mailing list archive at Nabble.com.
>>
> 
> 

--

-- 
View this message in context:
 http://www.nabble.com/Convenient-way-to-add-bean-properties---tf4719148.html#a13521545
Sent from the Netbeans - Users mailing list archive at Nabble.com.

Wade Chandler | 1 Nov 03:10
Picon
Favicon

Re: The fan on the gfx becomes noisy when NetBean is running

Swing actually uses DirectDraw by default. You can turn it off, but it slows down Swing performance. It
should help with the fan issue. See:
http://java.sun.com/j2se/1.5.0/docs/guide/2d/flags.html

search for noddraw on that page.

Wade

----- Original Message ----

From: Kristofer Hindersson <krimark <at> telia.com>

To: nbusers <at> netbeans.org

Sent: Wednesday, October 31, 2007 5:16:23 PM

Subject: [nbusers] The fan on the gfx becomes noisy when NetBean is running

         Hi,

 whenever I start the IDE for NetBeans 5.5.1 or 6.0  beta, the fan on the gfx starts spinning really fast. It's
really annoying and I  don't see how just running the IDE would put such a strain on the graphics? Has  anyone
had a similar problem and now how to solve this?

 Regards Kristofer.

Brad Mayer | 1 Nov 03:55
Picon

Re: Find output no longer sortable?

Yep, checking both 6.0 Beta 2 and 5.5.1, it looks gone as you report.  
Let me check issuezilla a bit on this and get back to you.

Regards,
-Brad

TadFrysinger wrote:
> In 6.0 latest, I don't see a way to sort the results of a "Find" 
> operation. In 5.5.1 this was controlled by a radio button. Is it gone?
>
> T

--

-- 
/**********************************************************************/ 
Brad Mayer 
Technical Support Engineer, DPG CIS 
Sun Microsystems, Inc. - Sun Developer Platforms Group 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
NOTICE:  This email message is for the sole use of the intended 
recipient(s) and may contain confidential and privileged information. 
Any unauthorized review, use, disclosure or distribution is prohibited. 
If you are not the intended recipient, please contact the sender by 
reply email and destroy all copies of the original message. 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
/***********************************************************************/

burferd | 1 Nov 04:09
Picon
Favicon

Bean Properties - any order to them in binding list?


Using NB6.0 B2 on WinXp with Glassfish 2.

I created two new bean properties - manually, since there is no function to
add properties like in JSC or NB5

When you attempt to bind a component value to a bean property, in JSC, the
properties are presented in the order that they are created.  
Not alphabetically, but not randomly either.

In NB6, I created two bean properties - a string (named relationship) and an
array list (named relationshipList).
The string was created first and just after the string, I created the Array
list, 
so the code with the property definition and the getter/setter methods were
sequential in the bean.

When you attempt to bind thses properties to a component, you are presented
with a list of properties for each session bean 
so you can select the one you want to bind to the component.

In JSC, the properties are presented in the order they are created, so I
would see 
relatiionship followed immediately by relationshipList.

In NB6, the order seems random.
I finally found 'relationship' but 'relationshipList' was about 50 entries
down the list.

Is there any order to the way bean properties are presented in the list for
selecting binding?

I have beans with several hundred properties and having to hunt for each one
is a real PITA.

Is there any way they can be ordered for selection, either by order of entry
in the code, or alphabetically?

This apparently random ordering takes a significant amount of time to hunt
down the appropriate property.
--

-- 
View this message in context: http://www.nabble.com/Bean-Properties---any-order-to-them-in-binding-list--tf4729213.html#a13522859
Sent from the Netbeans - Users mailing list archive at Nabble.com.


Gmane