NetBeans,javas Studio Creator, Java Studio Enterpise.

Hi,
I would like to learn one of the IDE
Net Beans, SunJava Studio Creator and Sun Java Studio Enterprise
which is the best one to start and where do i find tutorials for these.
pls help me out.
Thanks.

This depends on what you are doing. If you are creating web applicaitons, then Creator is the way to go. Otherwise, Netbeans is what you want.
Note that Java Studio Enterprise is built on NetBeans. If you need j2ee profiling and UML, then get the latest version of Java Studio Enterprise. If these are not needed, then get the Netbeans 5.5 preview. The Welcome screen contains links to the tutorials.
Creator: http://developers.sun.com/prodtech/javatools/jscreator/
Netbeans: http://www.netbeans.org/community/releases/55/index.html

Similar Messages

  • Studio enterpise edition 7.0

    Hello,
    Right now we are using Sun Java Studio standard edition just for the IDE part. (5 licenses)
    I saw your product tour at
    http://developers.sun.com/prodtech/javatools/jsenterprise/reference/presentations/launch_jse7_overview.html
    Could you please answer these four questions.
    Can I use the early access version of Sun Java Studio enterpise edition 7.0 for 12 months without buying it? We are in middle of a project with deadlines. But I would like to download one and try it during spare time. If we like it, then we will upgrade all our licenses.
    I have 1 gb ram running on windows 2000 PC with oracle also installed in it. Will it be sufficient to develop application using Sun Java Studio enterpise edition 7.0.
    Can I develop using Sun Java Studio enterpise edition 7.0 and deploy it in production using Sun Jave Studio standard edition 5 update 1?
    Will it work with jato-2_1_0.jar?
    Thanks
    das

    Hi Das
    1. I don't think we can use EA version for 12 months. You need to talk to your sales person to get the latest version.
    2. 1GB RAM is enough to develop applications using JSE7 but since you are running Oracle also on this, we recommend more memory for best performance.
    3. Will get back to you with more specifics.
    Thanks
    Srinivas

  • Netbeans(java.exe) chewing up CPU

    [Please excuse me if this shows up twice but after make my last post this thread never showed up!]
    Hello, everytime I run an emu, no matter which one including wtk, netbeans java.exe starts chewing up lots of CPU time it's like at 98percent and nb comes to a halt and Ihave to wait a few minutes for it to settle down. I really gets bad when I do , "System.out.println()" on a large buffer that really kills it. so I now I can't display large buffers and I have no alternative.
    What can I do to stop java.exe from chewing up cpu time when I run and/or print large buffers?
    My Environment:
    CPU: AMD 64 +3200
    MEM: 1GB
    OS: XP Pro SP2 (version 5.1 )
    EMU: Nokia S60 3rd Ed. / Nokia S40 / Sun WTK 2.5.1
    Java: 1.5.0_12
    VM: Java Hotspot(TM) Client VM 1.5.0_12-b04
    NB Product Ver: Netbeans IDE 5.5.1 (Build 20070422300)
    I would appreciate any help!
    Thankyou.

    I found the problem and once I did find it I googled for it and found a thread right here about it.
    http://forums.lenovo.com/t5/X-Series-ThinkPad-Laptops/X220-Ricoh-Media-card-driver-high-system-cpu-u...

  • Need Help With NetBeans (Java Studio Enterprise 8)'s code generation

    Hi!
    I am using Java Studio Enterprise 8 with NetBeans 4.1 IDE bundled together with it. When trying to create GUI out from NetBeans Form Designer, I don't like the way it generates the code. When I try to use a JTextField, it uses "Fully Qualifed Class Names" (e.g: javax.swing.JTextField) on the code. How do I set NetBeans not to use it but rather use only the class name and generate import lines on top of the code? Also, how do I set it up that it will generate the variable declarations (which is on the uneditable blue portion of the code) on top rather than the default which is placed at the bottom of the class code body. I have tried tweaking the Options menu of this IDE but haven't got any luck...
    Hope you could help, and thanks in advance!

    To address the location of the var decl codegen section (or any codegen location issues), there is a workaround, admittedly, it is a bit tedious.
    Once the form code is generated, as Kris mentioned, open the class in an external editor so that you can edit the generated code.
    Then cut the entire var declaration section along with the begin/end gen-code markers and paste it to the section of the file you desire.
    When you add more components to your form, the codegen will find this section wherever it is and add to it.
    Alternatively, you could just move the non-protected code around the protected within the NB editor, but you would not be able to rearrange the order of the actual code-genned sections.
    craig

  • Studio Enterpise 7 upgrade to java 1.5.0_02

    Dear Java Experts...
    having installed Sun Studio Enterprise 7, I found that typical java 1.5 features namely 'enum' would not be recognised/compiled.
    To remedy this Java 1.5.0_02 was installed in /usr/jdk1.5.0_02 and the ide.cfg file modified to point to this directory.
    Now when the IDE 'About' is displayed it shows that the VM and Java is 1.5, the IDE will compile and execute 'enum' classes but Im getting a red line under the source code line, and code completion is not working correctly.
    I have downloaded and patched the IDE with all that I found, the full system config is a follows...
    Blade 150, 1Gb memory running fully pacthed Solaris 8 (Generic_108528-29)
    Any help on this matter would be greatly received
    Thanks

    I'm expieriencing the very same problem, i.e. code compilation with a 1.5.0_06 compiler and execution on a 1.5.0_06 jre works fine, but the code parser will display an red line under a code line like the following:
    Vector<String> sv = new Vector<String>();
    I did what was hinted to in the reply. I connected to archive rt.jar in the jre-director of the jdk-1.5 and connected the javadoc for 1.5, but I still have the red lines.
    I have also added the argument -source 1.5 to the compiler, but nothing seems to help.
    Any hints very much appreciated. Many thanks.
    Pasqualino

  • Netbeans Java Desktop Application Problem

    Hi
    I have build a java desktop application via netbeans and it creates a jnlp file to execute this applets however in my project when i press a button on an applet it opens another applet and send some parameter via html file how can i do that in desktop application because it doesnt have html file it only has jnlp file ?
    Thanks

    I guess I didnt make myself clear enough,I dont want to use another applet's public methods I want to execute it
    Lets make a scenario
    assume that I have an applet a and applet b
    on applet a there is a button called open applet b and when somebody press this button applet b will be opened
    Before I was doing that like this
                URL page = new URL("http://www.xxx.edu.tr/~team5/nps/build/giris.html");
                getAppletContext().showDocument(page,"_self");but now I made the project netbeans desktop application so I dont have any html file I only have jnlp and jar files
    so what should I do to maintain opening an applet from another applet?
    Thanks

  • Netbeans - java error on intel mac - please help me

    Hello!
    I imagine it may not be the right place for this post, maybe I should ask on some java forums, but it occured on my MBP, so I don't know what can cause the problem.
    The thing is: I wrote some apps in netbeans for linux and now I copied them to my MBP to continue developing.
    They work just fine, but during startup I get an error message:
    "2006-04-29 13:21:43.787 java[749] CFLog (0): CFMessagePort: bootstrap_register(): failed 1103 (0x44f), port = 0x10b03, name = 'java.ServiceProvider'
    See /usr/include/servers/bootstrap_defs.h for the error codes.
    2006-04-29 13:21:43.787 java[749] CFLog (99): CFMessagePortCreateLocal(): failed to name Mach port (java.ServiceProvider)"
    I didn't have this problem before, so I guess it's some MAC-NETBEANS issue, can anyone help me?

    I get a similar error message whenever I start up any program with a GUI, using either Java 1.4.2 or 1.5 JVM on any Mac (G5, 12" Powerbook, G4 power mac) running Tiger. I cannot remember when the messages started or what they mean. However, regardless of the error, the programs run fine for the most part. So it is not specific to the MBP (or Intel-based) Mac. I just bought an MBP today and have just started getting it configured.
    p.s. I have had one problem with Java programs on OS/X since upgrading to Tiger last year. I never experienced this problem on OS/X before Tiger and it has never been a problem on Linux. Seemingly randomly,when I am running a program for many hours, the JVM dies with only O/S type messages. Sometimes the messages is "bus error", most of the time the errors in the log file are obscure references to the underlying JVM code (i.e. Objective C???). This happens both with commercial Java programs and ones I write myself. For example, if I am processing thousands of files for import into a relational database, the program will fail over and over again, but at a different point in the data and a different point in the processing of that data. The only common pattern is that the problem occurs after many hours (many of my programs run for 12-40 hours). My solution thus far has been to develop on OS/X but do long runs on Linux. I've tried reporting it as a bug to Apple - but it's difficult to send a large body of code and a large relational database to Apple, particularly when, in any case, the problem will be hard to replicate. The one common thread is that all the Java programs that die in this way are using JDBC. Something changed with Tiger.

  • NetBean - java class add to JFrame form?

    i have already type my own class using 'java class type' . The problem is, now i wanted to add a new class using the GUI in netbeans, so i create a JFrame using GUI in netbean, how do i connect the 'java class type' with the 'JFrame Form type' in netbean?
    I'll be able to call a frame to another frame if i using both JFrame form type. The problem came in when i try to link the java class i just mention above. Please help.

    karhong,
    Sorry mate, your question is impossible to interpret. Try asking your question again in different words... and include your code, and error any message(s)...
    ... and read the Formatting tips before you post.
    ... and this is a Java coding forum... so you might have better luck posting this one on a netbeans specific forum like JGuru's Netbeans Forum.

  • How do I thead a netbeans/ java aplication?

    How would i multithread this?
    i creadted a gui in netbeans to run my antivirus for mac, its coded in version 6 of java, (windows and linux), how would i thread it to output finds and after it scans every 100 files scanned?
    The full files are avalable at www.saveourmacs.com
    * JavaAntivirusView.java
    package saveourmacs;
    import java.net.*;
    import java.io.*;
    import java.util.*;
    import java.text.DecimalFormat;
    import org.jdesktop.application.Action;
    import org.jdesktop.application.ResourceMap;
    import org.jdesktop.application.SingleFrameApplication;
    import org.jdesktop.application.FrameView;
    import org.jdesktop.application.TaskMonitor;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.Timer;
    import javax.swing.Icon;
    import javax.swing.JDialog;
    import javax.swing.JFrame;
    * The application's main frame.
    public class JavaAntivirusView extends FrameView {
        public Signatures sig;
        public boolean virusFound;
        public int count = 1;
        public long before, after, total = 0;
        public DecimalFormat cur;
        public JavaAntivirusView(SingleFrameApplication app) {
            super(app);
            initComponents();
            sig = new Signatures("C:\\Documents and Settings\\Ryan\\Desktop\\MAIN\\main.db", this.textoutput);
            // status bar initialization - message timeout, idle icon and busy animation, etc
            ResourceMap resourceMap = getResourceMap();
            int messageTimeout = resourceMap.getInteger("StatusBar.messageTimeout");
            messageTimer = new Timer(messageTimeout, new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    statusMessageLabel.setText("");
            messageTimer.setRepeats(false);
            int busyAnimationRate = resourceMap.getInteger("StatusBar.busyAnimationRate");
            for (int i = 0; i < busyIcons.length; i++) {
                busyIcons[i] = resourceMap.getIcon("StatusBar.busyIcons[" + i + "]");
            busyIconTimer = new Timer(busyAnimationRate, new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    busyIconIndex = (busyIconIndex + 1) % busyIcons.length;
                    statusAnimationLabel.setIcon(busyIcons[busyIconIndex]);
            idleIcon = resourceMap.getIcon("StatusBar.idleIcon");
            statusAnimationLabel.setIcon(idleIcon);
            progressBar.setVisible(false);
            // connecting action tasks to status bar via TaskMonitor
            TaskMonitor taskMonitor = new TaskMonitor(getApplication().getContext());
            taskMonitor.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
                public void propertyChange(java.beans.PropertyChangeEvent evt) {
                    String propertyName = evt.getPropertyName();
                    if ("started".equals(propertyName)) {
                        if (!busyIconTimer.isRunning()) {
                            statusAnimationLabel.setIcon(busyIcons[0]);
                            busyIconIndex = 0;
                            busyIconTimer.start();
                        progressBar.setVisible(true);
                        progressBar.setIndeterminate(true);
                    } else if ("done".equals(propertyName)) {
                        busyIconTimer.stop();
                        statusAnimationLabel.setIcon(idleIcon);
                        progressBar.setVisible(false);
                        progressBar.setValue(0);
                    } else if ("message".equals(propertyName)) {
                        String text = (String)(evt.getNewValue());
                        statusMessageLabel.setText((text == null) ? "" : text);
                        messageTimer.restart();
                    } else if ("progress".equals(propertyName)) {
                        int value = (Integer)(evt.getNewValue());
                        progressBar.setVisible(true);
                        progressBar.setIndeterminate(false);
                        progressBar.setValue(value);
        @Action
        public void showAboutBox() {
            if (aboutBox == null) {
                JFrame mainFrame = JavaAntivirusApp.getApplication().getMainFrame();
                aboutBox = new JavaAntivirusAboutBox(mainFrame);
                aboutBox.setLocationRelativeTo(mainFrame);
            JavaAntivirusApp.getApplication().show(aboutBox);
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        @SuppressWarnings("unchecked")
        // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
        private void initComponents() {
            mainPanel = new javax.swing.JPanel();
            jScrollPane1 = new javax.swing.JScrollPane();
            textoutput = new javax.swing.JTextArea();
            SelectDirectory = new javax.swing.JButton();
            UpdateDefinitions = new javax.swing.JButton();
            Scan = new javax.swing.JButton();
            Exit = new javax.swing.JButton();
            dirselect = new javax.swing.JTextField();
            jLabel1 = new javax.swing.JLabel();
            jLabel2 = new javax.swing.JLabel();
            menuBar = new javax.swing.JMenuBar();
            javax.swing.JMenu fileMenu = new javax.swing.JMenu();
            javax.swing.JMenuItem exitMenuItem = new javax.swing.JMenuItem();
            javax.swing.JMenu helpMenu = new javax.swing.JMenu();
            javax.swing.JMenuItem aboutMenuItem = new javax.swing.JMenuItem();
            statusPanel = new javax.swing.JPanel();
            javax.swing.JSeparator statusPanelSeparator = new javax.swing.JSeparator();
            statusMessageLabel = new javax.swing.JLabel();
            statusAnimationLabel = new javax.swing.JLabel();
            progressBar = new javax.swing.JProgressBar();
            mainPanel.setName("mainPanel"); // NOI18N
            jScrollPane1.setName("jScrollPane1"); // NOI18N
            textoutput.setColumns(20);
            textoutput.setRows(5);
            textoutput.setName("textoutput"); // NOI18N
            textoutput.addComponentListener(new java.awt.event.ComponentAdapter() {
                public void componentShown(java.awt.event.ComponentEvent evt) {
                    textoutputComponentShown(evt);
            jScrollPane1.setViewportView(textoutput);
            org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(saveourmacs.JavaAntivirusApp.class).getContext().getResourceMap(JavaAntivirusView.class);
            SelectDirectory.setText(resourceMap.getString("SelectDirectory.text")); // NOI18N
            SelectDirectory.setName("SelectDirectory"); // NOI18N
            SelectDirectory.addMouseListener(new java.awt.event.MouseAdapter() {
                public void mousePressed(java.awt.event.MouseEvent evt) {
                    SelectDirectoryMousePressed(evt);
            UpdateDefinitions.setText(resourceMap.getString("UpdateDefinitions.text")); // NOI18N
            UpdateDefinitions.setName("UpdateDefinitions"); // NOI18N
            UpdateDefinitions.addMouseListener(new java.awt.event.MouseAdapter() {
                public void mousePressed(java.awt.event.MouseEvent evt) {
                    UpdateDefinitionsMousePressed(evt);
            Scan.setText(resourceMap.getString("Scan.text")); // NOI18N
            Scan.setName("Scan"); // NOI18N
            Scan.addMouseListener(new java.awt.event.MouseAdapter() {
                public void mousePressed(java.awt.event.MouseEvent evt) {
                    ScanMousePressed(evt);
            Exit.setText(resourceMap.getString("Exit.text")); // NOI18N
            Exit.setName("Exit"); // NOI18N
            Exit.addMouseListener(new java.awt.event.MouseAdapter() {
                public void mousePressed(java.awt.event.MouseEvent evt) {
                    ExitMousePressed(evt);
            dirselect.setText(resourceMap.getString("dirselect.text")); // NOI18N
            dirselect.setName("dirselect"); // NOI18N
            jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N
            jLabel1.setName("jLabel1"); // NOI18N
            jLabel2.setText(resourceMap.getString("jLabel2.text")); // NOI18N
            jLabel2.setName("jLabel2"); // NOI18N
            javax.swing.GroupLayout mainPanelLayout = new javax.swing.GroupLayout(mainPanel);
            mainPanel.setLayout(mainPanelLayout);
            mainPanelLayout.setHorizontalGroup(
                mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(mainPanelLayout.createSequentialGroup()
                    .addContainerGap()
                    .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 381, Short.MAX_VALUE)
                        .addGroup(mainPanelLayout.createSequentialGroup()
                            .addComponent(SelectDirectory)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(UpdateDefinitions)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(Scan)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(Exit))
                        .addGroup(mainPanelLayout.createSequentialGroup()
                            .addComponent(jLabel1)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(dirselect, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(jLabel2)))
                    .addContainerGap())
            mainPanelLayout.setVerticalGroup(
                mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, mainPanelLayout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabel1)
                        .addComponent(dirselect, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jLabel2))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(SelectDirectory)
                        .addComponent(UpdateDefinitions)
                        .addComponent(Scan)
                        .addComponent(Exit))
                    .addContainerGap())
            menuBar.setName("menuBar"); // NOI18N
            fileMenu.setText(resourceMap.getString("fileMenu.text")); // NOI18N
            fileMenu.setName("fileMenu"); // NOI18N
            javax.swing.ActionMap actionMap = org.jdesktop.application.Application.getInstance(saveourmacs.JavaAntivirusApp.class).getContext().getActionMap(JavaAntivirusView.class, this);
            exitMenuItem.setAction(actionMap.get("quit")); // NOI18N
            exitMenuItem.setName("exitMenuItem"); // NOI18N
            fileMenu.add(exitMenuItem);
            menuBar.add(fileMenu);
            helpMenu.setText(resourceMap.getString("helpMenu.text")); // NOI18N
            helpMenu.setName("helpMenu"); // NOI18N
            aboutMenuItem.setAction(actionMap.get("showAboutBox")); // NOI18N
            aboutMenuItem.setName("aboutMenuItem"); // NOI18N
            helpMenu.add(aboutMenuItem);
            menuBar.add(helpMenu);
            statusPanel.setName("statusPanel"); // NOI18N
            statusPanelSeparator.setName("statusPanelSeparator"); // NOI18N
            statusMessageLabel.setName("statusMessageLabel"); // NOI18N
            statusAnimationLabel.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
            statusAnimationLabel.setName("statusAnimationLabel"); // NOI18N
            progressBar.setName("progressBar"); // NOI18N
            javax.swing.GroupLayout statusPanelLayout = new javax.swing.GroupLayout(statusPanel);
            statusPanel.setLayout(statusPanelLayout);
            statusPanelLayout.setHorizontalGroup(
                statusPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(statusPanelSeparator, javax.swing.GroupLayout.DEFAULT_SIZE, 401, Short.MAX_VALUE)
                .addGroup(statusPanelLayout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(statusMessageLabel)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 231, Short.MAX_VALUE)
                    .addComponent(progressBar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(statusAnimationLabel)
                    .addContainerGap())
            statusPanelLayout.setVerticalGroup(
                statusPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(statusPanelLayout.createSequentialGroup()
                    .addComponent(statusPanelSeparator, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(statusPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(statusMessageLabel)
                        .addComponent(statusAnimationLabel)
                        .addComponent(progressBar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(3, 3, 3))
            setComponent(mainPanel);
            setMenuBar(menuBar);
            setStatusBar(statusPanel);
        }// </editor-fold>//GEN-END:initComponents
    private void ExitMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_ExitMousePressed
    // TODO add your handling code here:
    System.exit(0);//GEN-LAST:event_ExitMousePressed
    private void SelectDirectoryMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_SelectDirectoryMousePressed
    // TODO add your handling code here:
      /*  textoutput.setText(" Initializing...");
        String filename = File.separator+"tmp";
        JFileChooser fc = new JFileChooser(new File(filename));
        // Show open dialog; this method does not return until the dialog is closed
        fc.showOpenDialog(frame);
        File selFile = fc.getSelectedFile();
        // Show save dialog; this method does not return until the dialog is closed
        fc.showSaveDialog(frame);
        selFile = fc.getSelectedFile();
        /*if (aboutBox == null) {
                JFrame mainFrame = JavaAntivirusApp.getApplication().getMainFrame();
                aboutBox = new JavaAntivirusAboutBox(mainFrame);
                aboutBox.setLocationRelativeTo(mainFrame);
            JavaAntivirusApp.getApplication().show(aboutBox); */
        if (aboutBox == null) {
                JFrame mainFrame = JavaAntivirusApp.getApplication().getMainFrame();
                aboutBox = new JavaAntivirusAboutBox(mainFrame);
                aboutBox.setLocationRelativeTo(mainFrame);
            JavaAntivirusApp.getApplication().show(aboutBox);
    }//GEN-LAST:event_SelectDirectoryMousePressed
    private void UpdateDefinitionsMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_UpdateDefinitionsMousePressed
    // TODO add your handling code here:
    /*FTPClient ftpClient = new FTPClient();
    ftpClient.connect("ftp.foo.com", "user01", "pass1234");
    ftpClient.download("C:\\Temp\\", "README.txt");
    // Eventually other operations here ...
    ftpClient.disconnect();*/
    }//GEN-LAST:event_UpdateDefinitionsMousePressed
    private void ScanMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_ScanMousePressed
    // TODO add your handling code here:
        String directorychoose "";
        directorychoose = dirselect.getText();
        if(directroychoose.equals(""))
          directorychoose = "."; 
        cur =  new DecimalFormat(".00");
        File startingDirectory = new File(directorychoose);
        //File startingDirectory = new File(".");
        textoutput.append("Scanning Files.");
        scanDirectory(startingDirectory);
    }//GEN-LAST:event_ScanMousePressed
    private void textoutputComponentShown(java.awt.event.ComponentEvent evt) {//GEN-FIRST:event_textoutputComponentShown
      // TODO add your handling code here:
    }//GEN-LAST:event_textoutputComponentShown
    * This program demonstrates how to traverse a directory.
    * @version 1.0
    * @author  Jeffrey M. Hunter  ([email protected])
    * @author  http://www.idevelopment.info
        public void scanDirectory(File dir) {
              if (count % 100 == 0)
                   if ( (total / 1000) < 60 )
                        textoutput.append(count + " files scanned in " + cur.format((double)(total) / 1000) + " seconds.");
                   else
                        textoutput.append(count + " files scanned in " + cur.format((double)(total) / 60000) + " minutes." );               
            if (dir.isDirectory()) {
                String[] children = dir.list();
                for (int i=0; i<children.length; i++) {
                        scanFile(dir.getAbsolutePath() + "\\" +children);
    scanDirectory(new File(dir, children[i]));
         public void scanFile(String fileName)
              before = System.currentTimeMillis();
              File f = new File(fileName);
              virusFound = false;
              count++;
              if ((int)f.length() > Integer.MAX_VALUE) {
                   textoutput.append("Not enough memory to read file.");
                   System.exit(-1);
              //System.out.print ("Scanning " + f + " - ");
              byte[] bytes = new byte[(int)f.length()]; // assume < 2gb
              RandomAccessFile raf = null;
              try
                   raf = new RandomAccessFile(f,"r");
                   raf.readFully(bytes);
                   raf.close();
              catch (Exception e)
                   textoutput.setText(e.toString());
                   //System.exit(-1);
              String fileBytes = new String(bytes);
              for (int i = 0; i < sig.numSigs(); i++)
                   if (fileBytes.indexOf(sig.getSignature(i).getPattern()) > 0 )
                        textoutput.append(sig.getSignature(i).getName() + " Virus Found!");
              after = System.currentTimeMillis();
              total = total + (after - before);
              if (!virusFound)
                   System.out.println("Clean");
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton Exit;
    private javax.swing.JButton Scan;
    private javax.swing.JButton SelectDirectory;
    private javax.swing.JButton UpdateDefinitions;
    private javax.swing.JTextField dirselect;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JPanel mainPanel;
    private javax.swing.JMenuBar menuBar;
    private javax.swing.JProgressBar progressBar;
    private javax.swing.JLabel statusAnimationLabel;
    private javax.swing.JLabel statusMessageLabel;
    private javax.swing.JPanel statusPanel;
    private javax.swing.JTextArea textoutput;
    // End of variables declaration//GEN-END:variables
    private final Timer messageTimer;
    private final Timer busyIconTimer;
    private final Icon idleIcon;
    private final Icon[] busyIcons = new Icon[15];
    private int busyIconIndex = 0;
    private JDialog aboutBox;
    public static void download(String address) {
              int lastSlashIndex = address.lastIndexOf('/');
              if (lastSlashIndex >= 0 &&
              lastSlashIndex < address.length() - 1) {
                   //download(address, address.substring(lastSlashIndex + 1));
              } else {
                   System.err.println("Could not figure out local file name for " +
                        address);
    public static void download(String address, String localFileName) {
              OutputStream out = null;
              URLConnection conn = null;
              InputStream in = null;
              try {
                   URL url = new URL(address);
                   out = new BufferedOutputStream(
                        new FileOutputStream(localFileName));
                   conn = url.openConnection();
                   in = conn.getInputStream();
                   byte[] buffer = new byte[1024];
                   int numRead;
                   long numWritten = 0;
                   while ((numRead = in.read(buffer)) != -1) {
                        out.write(buffer, 0, numRead);
                        numWritten += numRead;
                   System.out.println(localFileName + "\t" + numWritten);
              } catch (Exception exception) {
                   exception.printStackTrace();
              } finally {
                   try {
                        if (in != null) {
                             in.close();
                        if (out != null) {
                             out.close();
                   } catch (IOException ioe) {
    public static void main(String[] args) {
              for (int i = 0; i < args.length; i++) {
                   download(args[i]);
    Edited by: kingryanj on Jun 19, 2008 10:49 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    nclow wrote:
    Dumping a huge application in the lap of a stranger and asking them to tell you how to multithread it is a pretty tall order, don't you think? You might try familiarizing yourself with threading concepts here , identifying the parts of your program that you want to split into new threads, and then come back if you have some specific questions.not to mention it sounds like threading is not what the OP even wants
    a simple counter would suffice and every time the counter reaches 100 you could print or whatever and then reset the counter

  • Bug in Netbeans Java compiler?

    I think Netbeans (or Java itself?) has a major flaw in its compiler design.
    Explain to me why the following code is not compilable. Specifically, why it should complain about line 8:
    cannot find symbol
    symbol : variable Selected
    When I clearly declared it a couple lines above it!
    Now the fact that it was declared in an "If" clause is a lame excuse, because there is an unconditional Else clause which ALSO declares the same Object array. So either way, the Object array gets declared exactly ONCE. Not zero, not twice. In
    EVERY SINGLE LOGICAL CASE.
    So why was someone on crack when they designed Java/Netbeans? This is a BS error.
    1     if (president.compareTo("Bush") == 0) {
    2           Object Selected[] = listWarCriminals.getSelectedValues();
    3       }
    4       else {
    5           Object Selected[] = listPresidents.getSelectedValues();
    6       }
    7
    8       for (int n=0; n<Selected.length; n++) {
    9           name = Selected[n].toString();
    10          JOptionPane.showMessageDialog(frame, name, "Result", JOptionPane.INFORMATION_MESSAGE);
    11      }

    Please don't
    [url=http://forum.java.sun.com/thread.jspa?threadID=51
    76269&messageID=9681394#9681394]crosspost!Although for a topic this stupid it can't be bad to share the love.

  • Using NetBeans Java ME Designer for List

    I'm using the Java ME screen Designer in NetBeans. I'd like to create a simple list from which users can select one option. I know how to write code to do it, but how do I do it through the screen designer?

    import java.util.ArrayList;
    import java.util.List;
    import java.util.Map;
    import javax.xml.ws.BindingProvider;
    import weblogic.wsee.security.unt.ClientUNTCredentialProvider;
    import weblogic.xml.crypto.wss.WSSecurityContext;
    import weblogic.xml.crypto.wss.provider.CredentialProvider;
    you can add username for weblogic client using
    // Create list of credential providers
    List credProviders = new ArrayList();
    // Create user name token provider
    ClientUNTCredentialProvider unt = new ClientUNTCredentialProvider("weblogic", "weblogic");
    credProviders.add(unt);
    credProviders.add(cp);
    // Finally add the credential providers to the request context
    Map<string, object=""> requestContext = ((BindingProvider)brokerService).getRequestContext();
    requestContext.put(WSSecurityContext.CREDENTIAL_PROVIDER_LIST, credProviders);

  • Microsoft Access, Netbeans & Java... Strange IO runtime error.

    Hello, Im using java to interface an Access database. From Netbeans, everything compiles, and runs perfectly. However, when I build the project and run the jar, it cant find the database.
    I diagnosed it and found that it it is something to do with the second line below:
    try{
                Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                filename = System.getProperty("user.dir") + "/test.mdb";
                //filename = "c:/test.mdb";
                String database = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=" + filename;
                Connection conn = DriverManager.getConnection( database , "","");
                statement = conn.createStatement();
                System.out.println("Connected...ok");
                System.err.println(filename);
            } catch (Exception e) {
                System.err.println("Got a connection Problem!");
                JOptionPane.showMessageDialog(this, "Got a connection Problem!", "Got a connection Problem!", JOptionPane.ERROR_MESSAGE);
                System.err.println(e.getMessage());
            }How can i fix this?
    Thanks, Ant...

    Probably you have not placed your test.mdb file in your System.getProperty("user.dir") directory. For solve this problem first place this line JOptionPane.showMessageDialog(new JFrame(),System.getProperty("user.dir")); and run the jar as you do privous then you will find where the path is pointing then place the mdb file there

  • Possible iPod Classic and Oracle Netbeans/Java Issue

    I recently lost all the music from my iPod Classic and was unable to restore from iTunes or reset to factory defaults. The iPod showed a large amount of disk usage but no music, video, photos, etc. and it took forever to connect to my Windows USB port. After battling this and trying tons of ideas on the net, the Apple Store had to reformat the device from a Mac and reset the drive. Today I just had the same issue and I think the issue was caused by Oracle Netbeans and/or Java being loaded to my desktop. Both times I had this issue was after downloading Oracle NetBeans for a development tool. Has anyone else seen this issue?

    1. How likely is it that Apple will fix this issue with future firmware releases?
    No-one here could even hazard a guess. We're just users like yourself. Do Philips claim this DVD player is compatible? Isn't it the responsibility of the makers of the DVD player to ensure it works with the Classic?
    2. Are other 3rd party devices (i.e. Docks, Automobiles, etc.) affected by this firmware release?
    Yes. Almost all older 3rd party accessories don't work with the Classic. There have been many posts about such issues both here and other iPod forums.
    3. Is there any way to go back to firmware release 1.0.2? I know backing off firmware releases is possible with the iPhone.
    This may be of help but you have to have the previous version still on your computer.
    Remove the latest update from the iTunes/iPod updates folder.
    In Windows XP but I think it's found in "Documents and Settings\User Name\Application Data\Apple Computer\iTunes\iPod Software Updates."
    Then prevent iTunes from checking the internet for a new update (preferences/general and remove the check mark from "check for updates automatically), then click restore. Or simply disconnect your modem from the computer.
    Then restore the iPod.
    You should then be asked if you want to use the previous version of the iPod software.

  • [solved] netbeans - java.lang.InternalError

    Hi, I've problem with netbeans. I installed the latest version with pacman few weeks ago, and everything was working. But when I was trying to start it yesterday I got the following message:
    A java.lang.InternalError exception has occurred.
    Please report this at http://www.netbeans.org/community/issues.html,
    including a copy of your messages.log file as an attachment.
    The messages.log file is located in your /home/dorian/.netbeans/6.0/var/log folder.
    Here is my messages.log file: http://rafb.net/p/HZXRHZ16.html
    Last edited by dorian (2008-04-23 23:06:43)

    Aaron wrote:
    I'm using eclipse on arch64 with [unstable], without problems.  I also use firefox3b5 and xulrunner.
    I don't know why I'm not affected by this as well, are any of you experiencing the issue on 64bit?  That may help narrow the problem.
    I have Eclipse and NetBeans running just fine on i686, but not from Arch's packages.  I have Arch's JRE/JDK packages, FF3B5 from [unstable], no xulrunner, both Eclipse and Netbeans installed to /opt from their respective websites.

  • NetBeans Java Files Changes

    Hi there,
    I'm using netbeans 4.1 and when I need to change a java file, the IDE doesn't recognize these changes when running web app.
    Any tips?
    Tks in Advance,

    Hi there,
    I'm using netbeans 4.1 and when I need to change a
    java file, the IDE doesn't recognize these changes
    when running web app.
    Any tips?
    Tks in Advance,Did you check out netbeans.org site?
    http://www.netbeans.org/kb/index.html

Maybe you are looking for

  • Driver Problem False Report ?

    Motherboard: F1A75-V PRO Processor:AMD A8-3870 APU with Radeon Graphics ( 4 Core Processor) RAM: Corsair 8 GB System drive : Samsung 128 GB SSD OS: Windows 8.1.1 All the 4 units of the above mentioned Processor shows defective drivers. If I try to re

  • Time Machine no longer backs up data, but also doesn't display "Failed"

    Hello. I've had problems with Time Machine for a while now. First, instead of just performing an incremental backup, almost every day it tries to back up about 59GB of data, far more data than I'm changing. Then it started to fail after the first suc

  • MBP/iBook won't read repaired USB drive?

    I have an ativa thumb drive I've been using for a few months now. In the past few days suddenly my MBP (also an iBook) gives me the message "Disk you've inserted cannot be read by this computer - Initialize / Ignore / Eject." So I opened Disk Utiliti

  • Can't share video recordings via email

    It works great on my gmail and AOL accounts but I can't send recorded videos through my yahoo account even on WIFI. It just stays in the outbox forever then it states email is unable to send... is anyone having this issue?

  • Customer service Order settlement

    Resource related billing. I created a Service Order. I finished all the steps from Create Order to Billing VF01. Next Service Order Settlement. I did not activate Profitability. I freezed the settlement profiles and allocation structure. I configured