areej | 3 Jul 17:21
Favicon

Package doesn't exist

Hi,

I'm trying to use the package org.json.JSONObject in my applictoin in netbeans 5.6.1 but I had an error that
package doesn't exist..

Please I need help in this matter I need to use JSONObject...

AlexanderPD | 3 Jul 17:13

Closing a form from another one

Hi, using the netbeans Gui builder i made 2 form, "a" and "b"

If i need to close form "a" from "a" i simply need to use:

this.setVisible(false);

it works! :D

but now i need to close "a" from "b" :|

using a.setVisible(false); makes an "non-static method setVisible(boolean) cannot be referenced from
a static context" :(

How can i close "a" from "b"? :(

thank you :)

janne mattila | 3 Jul 16:04

binding a dropdown to a List, and adding new values to List

I created a form with a dropdown which displays integer values 1....n. This is bound to two bean properties using beansbinding:


elements: MyBean.choices
selectedItem: MyBean.selected

MyBean {
    private List<Integer> choices;
    private Integer selected;

This works fine. I'm wondering how to implement adding new choices though. My setChoices() looks like:


    public void setChoices(List<Integer> choices) {
        List<Integer> old = this. choices;
        this. choices = choices;
        firePropertyChange("choices", old, choices);
        System.out.println("fired change: " + old + ", " + choices);
    }

and the method which adds a new choice:

    public void addChoice() {
        System.out.println("adding loadchoice");
        List<Integer> newChoices = new ArrayList<Integer>(getChoices());
        newChoices .add(newChoices .size() + 1);
        setLoadNumberChoices(newChoices );
    }

This works too....I am wondering however if this is the easiest way. It seems like a lot of work to create a new copy of the List each time one item is modified, especially since Lists can contain much more complex objects than Integers. Isn't there a way to just add a new choice to the original List and have beansbinding notice this change? 

Tried like this but results is an empty dropdown for some reason:

    public void addChoice() {
        System.out.println("adding choice");
        choices.add(choices.size() + 1);
        setChoices(choices);
    }

dukeofgp | 3 Jul 15:43

cannot uninstall Netbeans 6.7 Beta

When I uninstalled Netbeans 6.7 beta and an error message displayed

"The specified target component -nb-base/6.7.0.0.200904242137 was not found in the registry. the
installer can continue as if the target component was not specified."

Please help.[/img]

inagendra | 3 Jul 15:26

Problem With NetBeans plugin development

Hi,

We are creating a new plugin in NetBeans. This plugin uses saaj api to send soap messages.

We are developing this plugin on NetBeans 6.5.1 and we are using jdk 1.5. When we try to run the plugin the code
that sends soap message is failing with the following exception.

Caused by: javax.xml.soap.SOAPException: Unable to create message factory for SOAP: Provider
com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl not found

        at javax.xml.soap.MessageFactory.newInstance(Unknown Source)

        at org.freebxml.omar.common.SOAPMessenger.sendSoapRequest(SOAPMessenger.java:167)

        ... 35 more

We have added saaj-api.jar, saaj-impl.jar and all other necessary jars.

If I execute the same code with the same set of jar files in a standalone java client from NetBeans, it works
fine. The problem is only while running the code as a plugin. Had any one come across this issue earlier? Any
help on this is greatly appreciated.

Thanks,

Nagendra

valajbeg | 3 Jul 15:47

SVN HEEEEELLLPPPP!!!! netbeans 6.7


i'm having horrible experience with SVN, are there any news for improving SVN
support?

what i need is easy merge, repository browser

AND ALWAYS TO KNOW WHAT branch MY PROJECT IS CONNECTED TO when i'm comparing
files and
easy merge to trunk from another branch !!!!!!!!!!!!!!!!!
--

-- 
View this message in context: http://www.nabble.com/SVN-HEEEEELLLPPPP%21%21%21%21-netbeans-6.7-tp24323418p24323418.html
Sent from the Netbeans IDE Users mailing list archive at Nabble.com.

inagendra | 3 Jul 15:26

Problem With NetBeans plugin development


Hi,

We are creating a new plugin in NetBeans. This plugin uses saaj api to send
soap messages.

We are developing this plugin on NetBeans 6.5.1 and we are using jdk 1.5.
When we try to run the plugin the code that sends soap message is failing
with the following exception.
Caused by: javax.xml.soap.SOAPException: Unable to create message factory
for SOAP: Provider
com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl not found
        at javax.xml.soap.MessageFactory.newInstance(Unknown Source)
        at
org.freebxml.omar.common.SOAPMessenger.sendSoapRequest(SOAPMessenger.java:167)
        ... 35 more

We have added saaj-api.jar, saaj-impl.jar and all other necessary jars.

If I execute the same code with the same set of jar files in a standalone
java client from NetBeans, it works fine. The problem is only while running
the code as a plugin. Had any one come across this issue earlier? Any help
on this is greatly appreciated.

Thanks,
Nagendra
--

-- 
View this message in context: http://www.nabble.com/Problem-With-NetBeans-plugin-development-tp24323191p24323191.html
Sent from the Netbeans IDE Users mailing list archive at Nabble.com.

Mihai Vasilache | 3 Jul 14:30
Favicon

Editor annotations makes harder to set breakpoints.

Anyone noticed that if in the java editor you have some annotations icons in the left side (where the line numbers are displayed) you cannot set a breakpoint by clicking on the line number...

An example of such an annotation is "Fixable hint" - a yellow bulb. My code is full of such yellow bulbs so my only option is to set the breakpoint from the menu: Debug > New Breakpoit > select "Line" option > OK.

For exampe the folowing code:

em.createQuery("delete " +
                " from NodeViewItem nodeViewItems " +
                " where nodeViewItems.parentNodeView.id = :nodeViewID")

has bulbs on each line proposing me : "Assign Return Value To The New Variable".

Mihai
error403 | 3 Jul 13:48

Pressing 'Enter' Doesn't go to new line.


samk wrote:
> Bump.

> 

> Anyone? This seems like a bug.

Yes!! Please!! is desperate

Alpesh Khunt | 3 Jul 13:56

Moving Current Libraries to NetBeans 6.7

Dear All,

Is there any way through which I can move the libraries that we set in Old Versions of 6.5 to New Versions of 6.7?

Everytime we install the new version of NetBeans, we again have to create/import all of the Library APIs in new version. I'm seeking a short-cut or any plug-in which can ease up this task.

Any ideas?

Thanks,
Alpesh Khunt

garlic | 3 Jul 13:29

java.exe have > fisical 351Mb and Virtual 437Mb, it's normal?

i installed 6.7 version and seems garbage works fine


Gmane