netbeans

2D Drawing in Netbeans 6.x

How can i draw 2d in a JPanel that i have on my GUI? I can do it in eclipse but am having trouble doing it in netbeans. I've looked for some tutorials but the only good one i found was for netbeans 5.5 (world's fasted java netbeans 5.5 tutorial) and i guess netbeans removed some of the things needed for that tutorial. ...

Changing number of rows of tabs visible in NetBeans

There are times when I have a decent number of source files open at once. Is there a way to change the number of rows of tabs that are visible while working in NetBeans? -- Or -- I have a dual monitor setup here. I could span NetBeans across the two monitors if it were possible to have multiple NetBeans editor windows open at the same...

Is there a way to recover the contents of the Absolute Layout library?

I've deleted content of Absolute Layout library in NetBeans by mistake. Is there a way to recover the contents of this library? ...

Netbeans Mercurial plugin doesn't have addremove option in GUI menus

I use Netbeans for development and have been doing my Mercurial operations on the command line even though Netbeans has a Mercurial plugin to add various Mercurial commands as GUI options. One of the things I always do when I add or delete a file is run hg addremove But the Netbeans Mercurial plugin doesn't offer this as an option. ...

How do i read from database with J2ME?

I am busy with a project that requires me to read from a database and display certain results on mobile(J2ME). For example: I must list all customers in the database (SELECT * FROM CUSTOMERS) and i must display that results on mobile(J2ME). So some how i need to connect the mobile to the database. How do i go about doing this? I really ...

Is JRuby a viable alternative to the MRI for Rails development?

Hey peeps. I am a beginner-verging-on-intermediate rails developer that is working hard to improve my skills. I am a little confused about the state of JRuby, and whether it is a viable alternative to switch to from the MRI. Currently I run a Mac at home and edit using textedit (MRI for ruby, terminal for rails commands, etc). At w...

how to set default main class in java?

I have 2 class within same package.Both classes have main method in them. Now i want to build a jar file.I want to build 2 jar files which uses different main function as default main. eg class A { public static void main(String args[]) { //do something } } class B { public static void main(String args[]) { //do s...

does netbeans support coloring for .sh (bash) scripts?

I use netbeans 6.8 beta and when i load .sh (bash) file it's not colored at all. i can add a new file association for the .sh extension but it doesn't seem that there is a known associated mime type. ...

Netbeans Source Format: Can It Recognize Other Stuff? (For RoR Views)

I am in love with Netbeans Source->Format feature. Is there any way to get it to recognize stuff in these blocks <% content_for :style do %> <% end %> as CSS? It would also help for autocomplete. Ditto, of course, for <% content_for :javascript do %> <% end %> blocks. ...

NetBeans Profiler

Does NetBeans profiler work with Eclipse? ...

Faster search for files in Netbeans

Is there an existing plugin or tweak that speeds up the "Go To File" search in Netbeans ? Compared to Eclipse, Netbeans search is way too slow specially if one has multiple large size projects. I know I can use Ctrl+O for "Go To Type" but often I need to search for other file types like XMLs, property files etc. across thousands of file...

How to generate a form file from existing code?

Hi! In netbeans you can choose to work on "design" or "source". If you don't have a form file, netbeans won't let you see the design and work on that with drag and drop. I have some existing code with much swing. How can I use the "design" mode in netbeans on that code? To me it seams I can only use the "design" mode if I create a new e...

How to obfuscate a java based project

I have created a java based project using Netbeans as an IDE. Now I want to obfuscate my project. How can this be done? ...

64-bit Java Apps: Is a 64-bit OS, 64-bit JRE and 64-bit Application required?

Hi: This question is about 64-bit Java apps in general, although I came upon it because of working with Netbeans/Eclipse. I'm using a 64-bit processor with a 64-bit OS (Windows 7). I wanted to run Netbeans/Eclipse with more than 4GB of heap memory (i.e., using the Xmx flag), but I'm running into some confusion. There doesn't appear t...

bitbucket mercurial cannot see source codes in source column

I commit all my files into bitbucket. i try check in,revert file i deleted using netbeans and everything ok. when i logined into bitbucket and select my repository (private). I unable to see my source codes inside "source" column ...

Netbeans IDE setting for advanced file dialog.

I've installed a new version of Netbeans (6.8) and can't remember how to change the File/Project open dialogs to the "advanced" view. (Argh!!) Anyone know where to look? Classic view (what I have): Advanced(?) view (what I want): ...

NetBeans IDE for PHP/Ruby.

I just came across NetBeans site and found its PHP and Ruby IDEs. I want to know how popular is NetBeans and are the plugins for SVN really as good as the plugins for Eclipse? ...

"Missing Body Element" with the Visual Web Pack on Netbeans

I am currently having an issue with the JSF pages that the Visual Web Package for Netbeans 6.7 generates. When I generate a new page it produces a page with the following JSP code: <?xml version="1.0" encoding="US-ASCII"?> <jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:js...

How do I get input from System.in (Java) in Netbeans?

I have a small Java test app in Netbeans where the main() class reads input from System.in. How can I open a window into which I can type input? (I am using NB 6.7.1 on Windows 7). ...

Is there a possible Control for this?

I'm currently using net beans with Java to work on a senior project. Essentially the program is going to create word search puzzles. While I'm still a few weeks from needing a solution, I'm having difficulty thinking of a possible control that could display a word search puzzle (not to be mistaken for a crossword puzzle). ...