Picon

no way to enclose a selected amount of text within a comment?

Is there no way to select text and enclose it in a comment , I mean through an action within Netbeans... either under the "edit" menu or some  refactoring? 


Many thanks. 
Ricardo Palomares | 1 Nov 01:00
Picon
Picon
Favicon

Re: Questions about NB profiler

Ricardo Palomares escribió:
> Hi,
> 
> I'm trying to debug a small desktop app with memory leaks. (...)

Oopss! My deepest apologies for the duplicate post. Somehow I tought
it hadn't reached the list and I resent it.

And thank you again for your answers, Jiri, I'm downloading NB6.8 beta
right now. :-)

robert Lee | 1 Nov 01:07
Picon

problem netbean code 6.7.1

public class Operation {

    /**

     * @param args the command line arguments

     */

    public static void main(String[] args) {

        // TODO code application logic here

    }

    String customerName = "Robert Le",

            homePhone = "9774 3832" ;

    int numberOfShirts = 2, numberOfPants = 2, numberOfDresses = 8 ;

    double princeOfShirt = 0.95D, priceApairOfPants = 2.95D,

            priceOneDress = 3.25D ;

    int orderMonth = 3, orderDay = 15, orderYear = 2002 ;

    double mondayDiscount = 0.25 ;

    String businessName = "AAAAAAAAA" ;

   System.out.print(businessName) ;

}

when I compile I got the error which I don't understand while it failed .

 Created dir: C:\Users\robert\Downloads\Documents\NetBeansProjects\Operations1\build\classes

Created dir: C:\Users\robert\Downloads\Documents\NetBeansProjects\Operations1\build\empty

Compiling 1 source file to C:\Users\robert\Downloads\Documents\NetBeansProjects\Operations1\build\classes

C:\Users\robert\Downloads\Documents\NetBeansProjects\Operations1\src\Operation.java:28:
<identifier> expected

   System.out.print(businessName) ;

C:\Users\robert\Downloads\Documents\NetBeansProjects\Operations1\src\Operation.java:28:
<identifier> expected

   System.out.print(businessName) ;

2
errors

C:\Users\robert\Downloads\Documents\NetBeansProjects\Operations1\nbproject\build-impl.xml:363:
The following error occurred while executing this
line:

C:\Users\robert\Downloads\Documents\NetBeansProjects\Operations1\nbproject\build-impl.xml:168:
Compile failed; see the compiler error output for details.

BUILD FAILED (total time: 0 seconds)

please help .

wrappingduke | 1 Nov 01:23
Picon
Favicon

netbeans subversion

hello,

wondering if it's possible to checkout files from file url via netbeans? my internet connection was not
strong enough to checkout all files where netbeans resided, so had to use another computer to checkout.
now, would like to build sources from file url, if possible?

currently using NetBeans 5.5.1 & Subversion 1.4.6 w/ subversion bundled in netbeans on xp machine.

tried using file///C:/mydir but rec'v error msg.

help is appreciated

timotheus2 | 1 Nov 01:59

exclude from jar in NB 6.7?

How can I exclude specific resource files from JAR packaging. The wiki discusses this feature for NB 6.5 as
being in the project Properties dialog. However, it appears that the feature is missing from NB 6.7.

h3rne | 1 Nov 02:17
Picon
Picon

Why cant my java jar find resource files when running?

Dear Marco

Many thanks for the work-around - but hacking the xml sounded a bit scary.

As it happens, I found another way. This seems to work for both Netbeans and as a .jar

Code:

            InputStream stream = SoloWarforEdadhOpponentApp.getApplication().getClass().getResourceAsStream("resources/MasteryCardData.esd");

            InputStreamReader fileReader = new InputStreamReader(stream);

            BufferedReader reader = new BufferedReader(fileReader);

Many thanks to Henry Wong on the Javaranch forum for pointing out that the File object was really for
accessing the wider file system and not resources, and pointing me towards the getResourceAsStream and
leading me to the fact that a BufferedReader doesn't actually need a FileReader object as its argument,
just a Reader object.

I hope that helps you too.

As Ever

Simon*

kb2tfa | 1 Nov 04:00
Picon

Java DB

not sure if this is the right place.

I'm looking to create a desktop database app. that can be complied and put on another pc that does not have the
development software installed.

Can this be done with netbeans or should I look for another way. I created the cars app from the tutorials
page, but it won't run outside of netbeans.

ronizedsynch | 1 Nov 07:29
Picon
Favicon

how to set JInternalFrame object appears in front between 2 JInternalFrame objects

I make MDIForm project -> I make JMenuItem (New) and (Open)..

If New menuitem is clicked it will call JInternalFrame1 window so do with Open menuitem will call
JInternalFrame2 window..

my ask ?

if I click New menuitem first then Open menuitem..the JInternalFrame1 will appears in front but the
JInternalFrame2 in back it. I try to select JInternalFrame2 its no respon..the JInternalFrame2 still in
back of JInternal1..

why ??

I want if I click JInternalFrame2 window , it appears in front of JInternalFrame1..

thank..

Roni:)

shang1 | 1 Nov 07:40
Picon

Netbeans not auto importing classes

I recently did a new install of netbeans on my opensuse distro.

Before, when I used to use netbeans if I typed for example:

ArrayList<String> a = new ArrayList<String>();

Then I could click at the start of the line and select add import for java.util.ArrayList;

However, now with my fresh install, this option is no longer available.

I need to import it manually.

Is there an option I need to check or something I am missing with my install?

Thanks for any help..

tomatom | 1 Nov 10:41
Picon
Favicon

Error parsing file & lot of false error marks

Hello,

 I have problems with false errors in my project (J2ME). Problem occured when I changed from NB 6.5 to 6.7.1
(same problem in NB 6.8 beta) (in the same time I also changed OS to Windows 7). Project works perfectly -
compiles, runs ..., but in IDE I get lot of errors. All the variables on picture exists, but are marked as
errors. On files in Project window I get "Error parsing file". Some of the files are without the error
badge, but when I open them there are errors inside too.

 I have tried everything I found in forums (deleting cache, making changes into files, ...). It is very
unpleasant as code completition does work only partialy.

 Anyone who knows how to solve it?

Attachments: 
http://forums.netbeans.org//files/nb_364.png


Gmane