ejamm | 30 Jan 20:13 2015
Picon

Problems linking dialog box to button

Hello, I am a first time poster and new to NetBeans and the GUI application. 

I am having trouble linking a button to open a dialog box I created. The dialog box is in the same JFrame as the
JPanel but will not open.

I have tried the tutorial on the website but it doesn't address my issue.

I have tried using JOptionPane class as follows:

private void YES_BTN_mainmenuActionPerformed(java.awt.event.ActionEvent evt) {   
  JOptionPane.showInputDialog(PRI4_PCT_dialogbox);
  // PRI4_PCT_dialogbox is the name of the dialog box
}

Any help would be appreciated.

jonlanghoff | 30 Jan 20:54 2015
Picon

Time difference in program completion

Hi all,

I've made a program in Java, which parses data from iTunes' library file, does some calculations and
produces an output to a local MySQL database.

When I run this program from Netbeans, it varies in duration time; either it's 3 minutes or it's 10 minutes.
This run duration persists as long as Netbeans remains open and I don't put the computer to sleep.

I speculate that the difference could be correlated with memory swapping or something like that... Or
maybe the application get's down-prioritized sometimes by the OS. Either way, does anyone have any
suggestions as to how I can ensure that Netbeans runs as fast as possible when crunching my code??

(I am running Netbeans on a 2009 iMac with 8 GB of RAM, an SSD (on which Netbeans resides) and also a regular
hard drive, and I'm running Mac OS X Yosemite.)

B.R. Jon

erikruud | 30 Jan 21:03 2015

Disappearance of compiler error linemarker

Disappearance of compiler error linemarker.
I have been running Netbeans 7.4 for a long time. For some reason the little red marker in the vertical column
on the right side of the source files (showing compiler errors) has suddenly stopped showing up.
The filetab shows a red bullet (when I save) indicating the error, but now I have to do an explicit Compile to
get the line number of the error.
The source is Java (if it makes any difference).
If someone could help me with turning back on the little marker, I would greatly appreciate it.
Regards

mananpal1997 | 29 Jan 19:17 2015
Picon

OS interface prototype

http://youtube.com/watch?v=DGa4X8wFmSY
Guys, do see it once and give feedback !!!

123beans | 29 Jan 09:32 2015
Picon

Netbeans 7.4 is overheating my laptop???

Hello,

Since 4 days i have the feeling netbeans is overheating my laptop (samsung i5, 4gb). Watching taks manager i
see netbeans is using ~980.000kb memory is this normal? 

I have approx 43 sites/projects should i delete a bunch (out of netbeans)? 

Any tips or suggestions?

Bayless Kirtley | 29 Jan 03:25 2015
Picon
Picon

Re: Stupid slow compile time

I am on a stand alone computer, not on a network. Also not using Maven. Just the default Ant process generated by Netbeans.
 
Further testing indicates the hang up is in the clean procedure. I can do a build without clean and it takes less than 5 seconds. I tried clean without build and it ran 1 minute, 9 seconds.
The project contains 65 classes and 2 libraries. The build folder contains 503 files in 1.36 MB (2.86 MB on disk). The generated jar file is 1.48 MB.
 
The absolute only change I made was update to JDK 8.31 and change the project from JDK 7 to JDK 8.
I am running a reasonably fast quad core processor with 16GB memory and more than ample disk so I don’t believe it is resource related.
Anyway, using JDK8.25 it took less than 10 seconds.
 
Bayless
 
 
From: Brett Ryan
Sent: Wednesday, January 28, 2015 11:22 AM
Subject: [nbusers] Re: Stupid slow compile time
 
That sounds quite excessive. It is possible you're encountering this bug (https://bugs.openjdk.java.net/browse/JDK-8066199). If using maven you can overcome it by adding the following MAVEN_OPTS
 
-XX:CICompilerCount=1 -XX:TieredStopAtLevel=1
 
This has been fixed for JDK9 and back ported for JDK8u40.
 
In my experience this has only added a maximum of 20 seconds IIRC, over a minute sounds like a network timeout issue (11 seconds for your actual build plus transport timeout). If your build process communicates with a network source this could be it.
 
Also note that SSL v3 has been deprecated as of 8u31 and disabled by default, if your build process requires it you will need to enable it. To do so edit the file <JRE_HOME>/lib/security/java.security and remove SSLv3 from jdk.tls.disabledAlgorithms

Sent from my iPhone

On 29 Jan 2015, at 03:54, Bayless Kirtley <bkirt <at> cox.net> wrote:

I received a JDK update to 8.31 yesterday. I installed it and changed the Netbeans project I am working on from JDK 7 to JDK 8. Before installing that, the project would “clean & build” in less than 10 seconds. After the update it now takes 1 minute and 11 seconds. I am using a Windows 7, 64 bit computer. Is there a problem with this Java update? Any other suggestions?
 

No virus found in this message.
Checked by AVG - www.avg.com
Version: 2015.0.5646 / Virus Database: 4273/9017 - Release Date: 01/28/15

Throwable | 28 Jan 19:39 2015

Can't uninstall Netbeans

I'm trying to uninstall Netbeans so that I can have a more recent version installed. But every time I try I get
this error:

[Image: http://s24.postimg.org/s1tg2ntph/Untitled4.png ]

I still got this when I restarted my computer and ran uninstall without launching Netbeans. How do I fix this?

itisquestiontime | 28 Jan 20:51 2015

Query that Joins Tables from multiple databases

I currently have Netbeans IDE 8.01 with a connection to an Oracle DB, MySQL, and DB2. I want to run a query that
compares data across the data sources and returns results to the user.

This is very simple to do in MS Access, but I cannot figure out how to do this in NetBeans. 

Is this possible?  [Question] 

Please Help.

Bayless Kirtley | 28 Jan 17:54 2015
Picon
Picon

Stupid slow compile time

I received a JDK update to 8.31 yesterday. I installed it and changed the Netbeans project I am working on from JDK 7 to JDK 8. Before installing that, the project would “clean & build” in less than 10 seconds. After the update it now takes 1 minute and 11 seconds. I am using a Windows 7, 64 bit computer. Is there a problem with this Java update? Any other suggestions?
 
dirvingnb | 28 Jan 09:45 2015
Picon

Problem with Platform Application- Lock-up on Restore from Minimized State

I read somewhere about Jave IDE's being prone to this. Something about low level AWT classes and I/O, so I
constructed a class to show a tiny window in the corner of the screen for 1 second every 3 minutes if the
enclosing frame was minimised. I also created a temp file to give the I/O something to do.
Having done this I have successfully left a Netbeans app minimised for over 150 mins and restored without
problem. 
 The class looks something like...

public class MinimisedChecker implements Runnable, WindowListener
{

    private static MinimisedChecker checker = null;
    boolean minimised = true;
    Frame frame;
    boolean running = false;
    long ticks = 0L;
    SimpleDateFormat format;

    private MinimisedChecker()
    {
        WindowManager mgr = WindowManager.getDefault();
        frame = mgr.getMainWindow();
        frame.addWindowListener(checker);
        minimised = frame.isShowing();
        ticks = new Date().getTime();
        format = new SimpleDateFormat("HH:mm:ss");
    }

    public static MinimisedChecker getDefault()
    {
        if (checker == null)
        {
            checker = new MinimisedChecker();
            Thread checkThread = new Thread(checker);
            checkThread.start();
        }
        return checker;
    }

    public void run()
    {
        running = true;
        int oneMinute = 60000; // 60000; // 1 minute.
        int refreshPeriod = 3 * oneMinute;
        int cnt = refreshPeriod;
        while (running)
        {
            synchronized (this)
            {
                try
                {
                    wait(oneMinute);// 1 sec.
                    cnt -= oneMinute;
                }
                catch (InterruptedException ex)
                {

                }
            }
            if (!minimised)
            {
                cnt = refreshPeriod;
            }
            else
            {
                if (cnt < 0)
                {
                    loadFunction();
                    cnt = refreshPeriod;
                }
            }
        }
    }

    public void loadFunction()
    {
        Date date = new Date();
        long time = date.getTime();
        long period = time - ticks;
        period /= 1000;// seconds
        period /= 60; // minutes.
        String timeStr = format.format(date);
        String minStr = "Costing : minimised for ... " + period + " mins  <at>  " + timeStr;

        ICadFileSystem icadFS = ICadFileSystem.getDefault();
        JWindow win = new JWindow();
        JPanel panel = new JPanel();
        win.add(panel);
        panel.add(new JLabel(minStr));
        win.pack();
        win.setVisible(true);
        synchronized (this)
        {
            try
            {
                wait(1000);// 1 sec.
            }
            catch (InterruptedException ex)
            {

            }
        }
        win.setVisible(false);
        // access io.
        String workingPath = icadFS.getWorkingDir();
        workingPath += File.separator + "minimised.txt";
        FileWriter fWriter;
        try
        {
            fWriter = new FileWriter(workingPath);
            PrintWriter writer = new PrintWriter(fWriter);
            String buffer = "0123456789abcdefghijklmnopqrstuvwxyz";
            writer.println(minStr);
            writer.println(timeStr);
            for (int i=0; i<1024; i++)
            {
                writer.println(buffer);
            }
            writer.flush();
            writer.close();
            buffer = buffer.substring(1) + buffer.charAt(0);
        }
        catch (IOException ex)
        {
            Exceptions.printStackTrace(ex);
        }

    }

     <at> Override
    public void windowOpened(WindowEvent e)
    {
    }

     <at> Override
    public void windowClosing(WindowEvent e)
    {
        running = false;
    }

     <at> Override
    public void windowClosed(WindowEvent e)
    {
    }

     <at> Override
    public void windowIconified(WindowEvent e)
    {
        minimised = true;
    }

     <at> Override
    public void windowDeiconified(WindowEvent e)
    {
        minimised = false;
    }

     <at> Override
    public void windowActivated(WindowEvent e)
    {
    }

     <at> Override
    public void windowDeactivated(WindowEvent e)
    {
    }

}

DigiDev | 28 Jan 05:33 2015
Picon

Text Limit Line

Using 8.0.2 on Ubuntu 14.04 (left image) and Fedora 20 (right image) I seem to be missing the entire
"general" group in the options. After manually folding up all the groups, this is what I get:

[Image: http://s3.postimg.org/pskq5z0gz/Screenshot_from_2015_01_28_15_23_49.png ][Image:
http://s21.postimg.org/boq385frb/Capture.png ]

I've been going slightly nuts trying to find the right margin controls, so hearing that it's something
freaky in my setup that hides the option would actually be reassuring.


Gmane