Trying to build a Struts 2 app which directs the user to a page (Display.jsp) that shows the color of a user defined RGB color configuration. I get the example from the Struts 2 Tutorial by Budi Karniawan. When I manually cut and paste the source code and build the app manually as an NB Web application, it runs fine
Tag: netbeans
How to add radio buttons in button group?
After dragging and dropping button group in Netbeans 7.2, how to add radio button in that button group? Answer There’s a Button Group field in the radio button’s property. Set this value for each of the radio button that you want to add in the group to the button group’s name.
Memory size in profiling when i try to detect memory leak
I run java program with -Xms512m -Xmx1G -Xss1G. I make profiling to verify the memory, so i Track every 10 object allocations. i observe this figure : My question is, why it display me that 117mo represent 40% while i give 1G to memory ? Answer The graph is a percentage of all allocations, not the heap size. Add all
Draw an ERD from Hibernate Mapping Files
I know it’s possible to reverse engineer from the database into mapping files but does anyone know if it’s possible to get hibernate to draw an ERD based on its own mapping files so that I can compare Hibernate’s ERD with the Databases one? Answer I achieved this by using: in my hibernate.cfg.xml Then I used MySQL Workbench to reverse
Netbeans IDE – Automatic Suggestion while typing
hi i am using netbeans 7 IDE for java programming , and i am acutally a C# programmer and in visual studio whenever i type anything it displays a dropdown menu with suggestions , i want that to be enabled on netbeans IDE without having to press CTRL + Space to show the dropdown menu thanks in advance . Answer
How netbeans stops a run?
I’m programming with Java in Linux using Netbeans 7 and as my program (sometimes) could not exit (not in this eon, maybe) I create a thread to handle shutdown But when I launch the code with netbeans (F6) and stop it through the “STOP” button the thread is not created; but if I run the program through the terminal and
“Uncompilable source code” RuntimeException in netbeans
I’m trying to help another developer who is using Netbeans. When he runs or debugs some code of his in Netbeans (6.9.1) he gets an “Uncompilable source code” RuntimeException. I’m pretty experienced in Java but am more used to IntelliJ, and haven’t used Netbeans at all. I’ve done it a bit of googling and it seems Netbeans will compile code
How to calculate the number of lines in a “Java Project”
How can I calculate the number of lines in a “Java Project”? I’m using Netbeans 6.9. Answer Have a look at the NetBeans Metrics Module. NetBeans Metric Module is a module for NetBeans that can measure your java source code and display the results in NetBeans. Or the wordcount plugin. Counts characters, words, and lines of java files
Using the NetBeans GUI editor, how can I create a JTextField or JFormattedText field that must be validated against a regular expression?
I have a regular expression (d{4}w{3}(0[1-9]|[12][0-9]|3[01])([01][0-9]|2[0-3])([0-5][0-9]){2}) that I need to validate the input of a text field against when the user clicks the OK button or moves the cursor to another field. That I know how to do, writing the code. However, I’m interested in if it’s possible to have the NetBeans GUI editor do some of the work for