Ricardus | 1 Aug 20:32 2015
Picon

How many Netbeans users?

When a few years ago I've been more active in this forum here, there were a lot of Netbeans users posting here,
meaning there were even more Netbeans users out there (who were happy without posting)...

Nowadays, there's very few users posting here on the central Netbeans forum. It looks very spooky.

Why is this? Are there not so many Netbeans users out there, anymore? 
I know of (US-) surveys saying that from the asked Java developers, about 50% use Eclipse and just about 10%
use Netbeans, but is this true world-wide?

How sad.

Ricardus | 1 Aug 20:24 2015
Picon

NB's GUI editor and JTabbedPanel.setMnemonicAt(..)

When we visually layout a JTabbedPane component in NB's GUI editor, can we set the tabs' mnemonic values via
the GUI editor, too?

Because so far I've to do it manually in the Java code, which kind of breaks my "set all visual components'
properties in NB's GUI editor" line...

Let's say there's JTabbedPanel with a tab at index 0 containg "Example":

Code:
jTabPanele.setDisplayedMnemonicIndexAt(i, 2);
jTabPanele.setMnemonicAt(0, KeyEvent.VK_A;

boyleg | 1 Aug 09:24 2015

How do you get a list of nearby blue tooth device address into a combo box?

I have gotten this far with function startDeviceSearch()

But I don't 'get' how you actually obtain the list through my attribute or data member (or what ever you call
them in java) BTListener.

My bias for MFC says to me that you should do something like:

while (deviceDiscovered(btDevice, cod))
     /*add btDevice.address to combo box with function addItem(...)*/

However deviceDiscovered(...) is a void function.

So how do you actually do this with net beans and java. - it is not making any sense to me.

public class Controls extends javax.swing.JFrame {

    /**
     * Creates new form Controls
     */
    public Controls() {
        initComponents();
        jComboBox1.removeAllItems();
//        jComboBox1.addItem();    
    }

    private boolean startDeviceSearch()
    {
        boolean bResult = false;
        try
        {
(Continue reading)

David Mitchell | 1 Aug 08:58 2015
Picon

Netbeans keeps losing the plot

Hi,

Using NB 8.0.2, every so often it "forgets" what the top level class is.
This means it won't compile or run correctly.
So, for example, I'll press F6, and be presented with a dialogue box saying "Browse Main Classes"; but the available class list is blank.

Any ideas how to recover from this - I can't compile at the moment.

--
=======================================================================
= David    --- No, not that one.
= Mitchell ---
=======================================================================
netbean newby | 1 Aug 02:32 2015
Picon

Perl/Tk module install

I am new to netbeans IDE and I am also learning how to program using Tk for perl...so I launched to get the
module. It's has been two days and I am more confused now that when I started. 
is there a module for perl/Tk for netbeans? 
if so, can you give me a pointer to install it?
thaks,
netbean newby

boyleg | 31 Jul 18:30 2015

Brand new to netbeans problem with bluetooth

I am proficient with php, javascript, C++, obkect oriented programming, Visual C++ 6.0, MFC,.....

However I am new to java and the netbeans IDE.

I have installed the IDE, the Bluecove library, created my first project, created a GUI with a combo box and button.

However I am a little stuck.

This is the class associated with my GUI window:

Code:
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package hexapodandroid;

/**
 *
 *  <at> author greg
 */
public class Controls extends javax.swing.JFrame {

    /**
     * Creates new form Controls
     */
    public Controls() {
        initComponents();
        jComboBox1.removeAllItems();
        jComboBox1.addItem();    
    }

    /**
     * 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.
     */
     <at> SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">                          
    private void initComponents() {

        jComboBox1 = new javax.swing.JComboBox();
        jTextField1 = new javax.swing.JTextField();
        jButton1 = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jComboBox1.setName("ComboAvailable"); // NOI18N
        jComboBox1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jComboBox1ActionPerformed(evt);
            }
        });

        jTextField1.setText("Available blue tooth devices");
        jTextField1.setName("TextAvailable"); // NOI18N

        jButton1.setIcon(new
javax.swing.ImageIcon(getClass().getResource("/images/Bluetooth.png"))); // NOI18N
        jButton1.setName("Connect"); // NOI18N

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jTextField1)
                    .addComponent(jComboBox1, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jButton1)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButton1)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(389, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>                        

    private void jComboBox1ActionPerformed(java.awt.event.ActionEvent evt) {                                           
        // TODO add your handling code here:
    }                                          

    /**
     *  <at> param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info :
javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {

java.util.logging.Logger.getLogger(Controls.class.getName()).log(java.util.logging.Level.SEVERE,
null, ex);
        } catch (InstantiationException ex) {

java.util.logging.Logger.getLogger(Controls.class.getName()).log(java.util.logging.Level.SEVERE,
null, ex);
        } catch (IllegalAccessException ex) {

java.util.logging.Logger.getLogger(Controls.class.getName()).log(java.util.logging.Level.SEVERE,
null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {

java.util.logging.Logger.getLogger(Controls.class.getName()).log(java.util.logging.Level.SEVERE,
null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new Controls().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify                     
    private javax.swing.JButton jButton1;
    private javax.swing.JComboBox jComboBox1;
    private javax.swing.JTextField jTextField1;
    // End of variables declaration                   
}

I recognize the constructor:

    public Controls() {
        initComponents();
        jComboBox1.removeAllItems();
        jComboBox1.addItem();    
    }

And I recognize what appears to be the equivalent of a windows MFC message map:

private void jComboBox1ActionPerformed(java.awt.event.ActionEvent evt) {                                           
        // TODO add your handling code here:
    }

And perhaps the equivalent of a windows MFC OnInitDlg() function:
   public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info :
javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {

java.util.logging.Logger.getLogger(Controls.class.getName()).log(java.util.logging.Level.SEVERE,
null, ex);
        } catch (InstantiationException ex) {

java.util.logging.Logger.getLogger(Controls.class.getName()).log(java.util.logging.Level.SEVERE,
null, ex);
        } catch (IllegalAccessException ex) {

java.util.logging.Logger.getLogger(Controls.class.getName()).log(java.util.logging.Level.SEVERE,
null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {

java.util.logging.Logger.getLogger(Controls.class.getName()).log(java.util.logging.Level.SEVERE,
null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new Controls().setVisible(true);
            }
        });

What I want to do is to populate this combo box with available blue tooth device addresses before it becomes visible.

The first step is to know which of those functions to do this in.

In windows MFC it would be in OnInitDlg() or a WM_CREATE message handler.

So which would be the most appropriate function to populate the combo box in the case of netbeans and java?

Now I have also been reading this: https://weblogs.java.net/blog/brunogh/archive/2007/09/my_first_fx_blu.html

But what I need is a step by step tutorial on how to instantiate these bluecove objects in my project.. Are you
meant to create some new classes and type all this code out in them? Or is there some sort of equivalent of MFC
class wizard which does all this sort of thing for you?

I am unclear how to practically go about creating these required bluecove objects and use them to populate
my combo box.

alexsch | 31 Jul 14:14 2015
Picon

File history on a editor margin

IntelliJ IDEA has an option to show file history on the editor margin so you can click on a certain line and to
know who and what changed in it.

Is the same functionality available in NetBeans?

sjk | 31 Jul 13:33 2015
Picon

Native packaging and application icon

Hi,

Is there a way to set the application icon when using the native application packager in NetBeans?

I don't see anywhere in the interface where an icon would be specified. I've found some discussion of the
issue while searching, but I haven't found anything that seems up to date or immediately relevant. I may
just not be understanding the material though.

Is there a way to do this? Or is the suggested solution just to do it manually, e.g. by using a resource editor
in Windows?

Thanks.

Ai-Hoa Sanh | 31 Jul 19:32 2015
Picon

Providing a JAXB Binding File to wsimport

Hello,

I'm hoping this is the correct place to ask this question.

I am trying to create a Web Service from a WSDL, using NetBeans 8.0.2. The schemas my WSDL depends upon have definitions which require me to use a binding file to correct (I do not own the schemas).

I understand that I can do this by using Edit Web Service Attributes -> WSDL Customization -> External Binding Files.

However, when I go through the Web Service from WSDL wizard, the WSDL parsing step fails, and I do not even see a Web Services folder with a web service entry for me to right-click to bring up the Edit WS Attributes menu.

Is there a way for me to resolve this catch-22 situation?

Thank you for your help.
Ai-Hoa
eduard_ | 30 Jul 22:37 2015
Picon

How to delete a file from Netbeans project and Github?

I deleted a file in my local project. 

How do I make sure it is also deleted from Github? Do I have to do it manually on both Netbeans and Github?

Thanks

spiotr12 | 30 Jul 17:15 2015
Picon

How to disable backspace in web browser from navigating back

How to disable backspace in embedded web browser from navigating back?

It is really irritating when working on website and every time I press backspace while typing in input then
it navigates back to previous page, rather then delete a character from input.

Thanks


Gmane