Petr Cyhelsky | 9 Feb 16:41
Picon
Favicon

statistics.netbeans.org server is UP again

Hi everybody,
statistics.netbeans.org server, which was down for more than a week is 
finally up again. The outage was due to hardware failure and subsequent 
migration of all the data and services.

The server is used for the exception reporter service and usage statistics.

We apologise for the inconvenience and hope that it will run smoothly 
from now on. If you encounter some issues with the exception reporting 
nonetheless, please report it as normal issue under ide|Report Exception.

Sincerely

Petr Cyhelsky
Netbeans QE

tommmmmm | 8 Feb 19:23
Picon
Gravatar

[Tutorial] Get more with Master/Detail Sample Form (with Netbeans)

As we know, To create a GUI representation of MySQL table one needs to create Master/Detail Sample Form
(from new -> persistence). However that form is very simplified and lacks many features

If you want:
- your table to have ability to sort ascending and descending by simply clicking on column name with your mouse
- make certain JTextFields viewable, but not editable
- make certain columns in the table viewable, but not editable
- to use DATE/TIMESTAMP sql types with embedded JTextFields without whole application crashing instantly
- have a progress bar that will tell you the progress of all inserts/deletes/updates (they actually take
time) in real time without lying
- sort your table on creation to show latest entries first - for example according to first colum (usually
unsigned int) descending - because it's usually a primary key with auto increment so highest number is
latest entry

Then follow this list:
0. Import these:
import org.jdesktop.beansbinding.Converter;
import java.text.ParseException;
import java.text.DateFormat;
import java.util.Calendar;
import javax.swing.table.TableRowSorter; 
import javax.swing.RowSorter; 
import javax.swing.SortOrder;
import javax.swing.SwingWorker;

1. check the checkbox at: masterTable (JTable) -> right mouse click -> Properities ->
autoCreateRowSorter 
2. uncheck the checkbox at all apropriate JTextFields (that you don't want to be editable) at
your_field_name_to_disable (JTextField) -> right mouse click -> Properities -> editable
3. uncheck the checkbox at all appropriate table columns (that you don't want to be editable) at
(Continue reading)

kitfox | 8 Feb 19:22
Favicon
Gravatar

What work is being done to fix endless 'scanning projects'?

This is more of a complaint than a question.  I've been using NetBeans for several years, and have noticed
over the last one that Netbeans is pretty much useless if I need to edit a project that depends on another
project.  This is because NetBeans spends almost all of it's time "Scanning Projects".  After about 30
minutes it will complete, only to start up another 30 minute scanfest after you've typed 10 or so lines of code.

It's a shame, since in other respects NetBeans is a really nice editor.  I've been reading lots of posts about
the "Scanning Projects" bug while waiting for "Scanning Projects" to complete.  Looks like this problem
has been around for quite a while, going back to at least 2009.

I've submitted at least 3 bug reports, compete with log files, and never heard back.  The scanning on startup
is bad enough, but what really kills me is that once that's over with, it will start up again at the drop of a
hat.  All the info I've found for workarounds is either out of date or doesn't seem to help.

I'd like to know if the NetBeans team is taking this bug seriously and what work is being done to resolve it.

landolini | 8 Feb 16:23
Picon
Favicon
Gravatar

Makefile:86: *** separator missing


I get this message when I add the flag -lm to the makefile 

Makefile:86: *** separator missing .
Build failed. Exit value 2.

What does it mean ?
Thanks a lot !

***********
# build
build: .build-post

.build-pre:
# Add your pre 'build' code here...

.build-post: .build-impl
# Add your post 'build' code here...
 *-lm*

--
View this message in context: http://netbeans-org.1045718.n5.nabble.com/Makefile-86-separator-missing-tp5466798p5466798.html
Sent from the Netbeans IDE Users mailing list archive at Nabble.com.

pdelre | 8 Feb 16:28
Picon
Gravatar

Editor not displaying font supported Unicode characters

I've started working on an i18n project and I'm noticing a few issues with some unicode scripts.
Traditional Chinese (Han) characters aren't displaying properly in some fonts I know support them. I've
also tested the file in Notepad++ with those same fonts and it renders them properly.

Here's what I've found so far:

Cyrillic
DejaVu Sans Mono 11 (my default) -> shows in Netbeans, shows in Notepad++
Courier New 11 -> shows in Netbeans, shows in Notepad++
Monospaced 11 -> shows in Netbeans, not available in Notepad++

Han
DejaVu Sans Mono 11 (my default) -> doesn't show in Netbeans, shows in Notepad++
Courier New 11 -> doesn't show in Netbeans, shows in Notepad++
Monospaced 11 -> shows in Netbeans, not available in Notepad++

ziim | 8 Feb 16:21
Picon
Gravatar

apdating and uninstalling Java bundled with NetBeans on Ubuntu?

Hi, may I ask you for a little help for new guy?

I have downloaded and installed NetBeans with bundled Java from here:

http://www.oracle.com/technetwork/java/javase/downloads/jdk-netbeans-jsp-142931.html

1. I am quite surprised, there are ni MD5 checksums, am I blind?
2. may I ask you if is this Java installation working only for NetBeans, or is it equal to installing Java itself?
3. I assume, that I have to reinstall Java to newer version manually, right?
4. How can i uninstall bundled Java from this package? I tried to run uninstal.sh in netbeans folder, wizard
saids, that it can uninstall both NB and Java, but folder with Java instalation is still here. What a mess..

Thank you for your help and excuse my stupid questions :[ R.R.

ierpe | 8 Feb 14:34
Picon
Gravatar

Mustache templating - seen like an html file

Hi,

I am using the Mustache templating in my php projects.

The Mustache language is not supported by Netbeans, but it's actually mostly like html.

So I would like to tell Netbeans to display .mustache files like .htm files

How can I achieve this?

Ricardus | 8 Feb 12:04
Picon

NetBeans on multiple machines


BenSheppard wrote:
> I'm not sure I made my question clear, what I mean is, for example, on Computer A I have loaded several
projects into NetBeans, now I move to Computer B, I install a fresh copy of NetBeans, is there an easy way to
make all my projects appear on Computer B that are on Computer A i.e driving them from a single file
location, or do I have to add all the projects I wish to work on manually into the software on Computer B.

Well, if these computers A, B etc are networked, maybe you could use a shared network folder to store the one
Netbeans project and all computers use it?

Is this too slow (slow networks make the editing and compiling of Netbeans projects a nightmare), or is
there a need to work simultaneously from the computers A, B etc on the same project? 
Because that's the case for my project. So I started using the source code management system named Git
invented by Linus Torvalds. It's pretty easy and logical to use (once you got the first steps right). Also
it doesn't need a server or network drive but can use them of course. http://git-scm.com/

Also there's a pure Java plugin for Git in Netbeans since NB 7.1, in contrast to the other source code
management systems which you need external plugins and native binaries for. 
And there's a good tutorial how to use Git in Netbeans: http://netbeans.org/kb/docs/ide/git.html

(There's a simplified general tutorial on the Git homepage, where you can ignore the single shell commands
because in Netbeans you do the same via GUI.)

Ricardus | 8 Feb 11:46
Picon

Source change does not trigger rebuild in nb7.1

Yes, this NB 7.1 [s]bug[/s] feature drove my crazy, too.

In the end I've disabled the 'Compile on save' for all the projects which are connected (i.e. project A uses
project B as library) and then NB 7.1. takes the class files again instead of the JAR file. (Option "compile
all projects on classpath" has to be enabled and it's by default")

larryl | 8 Feb 08:25
Picon
Gravatar

Can't instantiate component

Can't seem to find the problem that let's me instantiate this Class. The IDE log points to the underlined
code as the problem. Any ideas.
Thanks.

package readcore;

import java.awt.Color;
import java.awt.GridLayout;
import javax.swing.BorderFactory;
import javax.swing.border.Border;

/**
 *
 * @author Larry
 */
public class qCore extends javax.swing.JPanel {

    /** Creates new form qCore */
    public qCore() {
        initComponents();
        final int ROWS = 4;
        final int COLS = 4;
        nAssembly[][] assembly = new nAssembly[ROWS][COLS];

        spacer[] blank = new spacer[3];

        setLayout(new GridLayout(ROWS, COLS));
        setBackground(Color.black);
        Border emptyBdr  = BorderFactory.createEmptyBorder(20,20,20,20);
        setBorder(emptyBdr);
(Continue reading)

tkellerer | 8 Feb 19:32
Picon

Netbeans - is it possible to see project source folders in a tree (hierarchical) view, rather then a flat view?


magitek wrote:
> Hello,
> 
> I have some huge NetBeans projects with many packages, sub-packages, sub-sub-packages .etc, and it gets
very confusing seeing all these package folders in the flat layout that NetBeans shows.. e.g.
a.b.c.d.e.f.g , a.b.c.d.d.e.f.h .etc .etc
> 
> 
> Is it possible to have a hierarchical directory (tree?) view, like in IntelliJ IDEA?
> 

Please check out the FAQ: http://wiki.netbeans.org/NetBeansUserFAQ

In the "Navigation" section there is a question:

"Can I view the package structure of my project as a tree?" http://wiki.netbeans.org/FaqTreePackageView


Gmane