characters in the loop print too far from the values

I am very new to java and for loops. I would like my code to print out this Andy ** Kristy ********** Amy ***** ` But my I am getting this instead Andy ** Kristy ********** Amy ***** How do I change my for loop to stop the spacing from the names bein

What's wrong with my NamedQuery

What is wrong with this NamedQuery? @NamedQuery(name = "Queries.findQueryIdsByRoleOfSameSid", query = "SELECT q "+ "FROM Queries q "+ "WHERE ((q.issueRole = :issueRole) AND "+ "(SELECT COUNT(*) FROM Queries qb

Multiple FlowLayouts in a class?

so I have my Main, and this is done inside of it. JFrame CF = new JFrame(); CF.setLayout(new BorderLayout()); CF.add(new CarGUI(), BorderLayout.NORTH); // CF.add(new CarGUI(), BorderLayout.SOUTH); //' South FlowLayout ' here ^ CF.setSize(600,400); CF

Link a Java program with MySQL using JDBC on Netbeans

I would like to link a Java Program on Netbeans with MySQL using JDBC drivers. I know that there are Netbeans tools to facilitate the connections, but can I do so with Java programs written in Netbeans? I got the tutorial in here http://www.tutorials

Need help for my raffle program in java netbeans

I'm new to java programming and currently making this raffle program. Here is the sample output of the program. Welcome to raffle 2013! The Prize is <10 million - 100 million> //this is random. I already made. Ticket number: <Generating unique 10

Is there a shortcut for the color picker in NetBeans?

Is there a shortcut for color chooser in NetBeans? I found this same query on NetBeans website, it was said that this was possible but I can't find an actual answer how to do it. I mean this: when I am in a CSS file and I am editing a property that i

Just a quick tweak that I have to do for my java project

Is there any chance you could help me with the question I posted? it is not an incredibly difficult problem. I just need a minor adjustment. Please help me if you can. I need it to add up the number of students with A's,B's,C's,D's,and F',s, and disp

Apache Cordova problem in Netbeans 7.4

I just downloaded Netbeans 7.4 and I am trying to explore Apache Cordova. When I try to create a new project, I get always BUILD FAILED problem. Here is the log ant -f /Users/jason/NetBeansProjects/HTML5Application/nbproject "-Dupdate.task.jar=/Appli

Several Netbeans projects in a Git repository

We (5 devs) have been working for years on a project consisting of 2 Netbeans projects: The core, c++ (1 main dev, 3 supporting, I will be added later on). The core can run on it's own through command line. The gui, java (just me for now). Calls core

JTextArea text visibility

In JFrame Form I have added a jTextArea and added a text into it, while still in design mode. But when I run the form I want the text to be invisible, which is not happening. I checked the properties of the JTextArea but I am not really sure how to c

Netbeans 7.2.1 Visual Web Editor

Is there some sort of Visual Web Editor for Netbeans 7.2.1 and JSF development?I think no. Look at here to find what Netbeans recommends: Where can I find the Visual Web Pack with Visual Editor support for we

Debugging views in Netbeans 7.2

I recently updated netbeans from 7.1.2 to 7.2. Unfortunately, I can't find the way to activate the debugging views such as the list of breakpoints, the call stack and the threads list. In netbeans 7.1 I can go in Window->Debugging to activate those b

How to fix a StackOverflowError generated by a JTable event?

I get a StackOverflowError when I am trying to fill a cell with the multiplication of two other cells of the same row. Here is the code : tableModel.addTableModelListener(new TableModelListener(){ public void tableChanged(TableModelEvent e) { Default

How to load files using a relative path in NetBeans

import*; import java.util.Properties; public class NewClass { public static void main(String args[]) throws IOException { Properties p = new Properties(); p.load(new FileInputStream("")); String url=p.getProperty(

How to make the line editable (false) in JTable

Possible Duplicate: How to make a JTable non-editable I am developing an application using Netbeans. I have generated a Report in a JTable format. It works properly but the rows and colums are editable, and I would them to be non-editable.In your tab

The script behaves differently on different systems

I have the default generated ant script for my netbeans java project and it works great on my windows desktop, I got my dist folder with the lib folder inside. Now I have the same files and folders on a debian system and run ant, but the dist folder

Configure Scala for NetBeans - Error

I'm interested in the language Scala and would like to test it with NetBeans Can 6.8. I've downloaded Scala 2.8.0 final und unzipped it to my hard drive. Then I installed the Scala plugin for NetBeans and created a first project. Naturally compilatio

Finishing a vertical chain

So this is what I have so far for my vertical string. public static void main(String[] args) { (**What do I put in here?**) } public static void vertical(String str) { String vertical = "hey now"; for (int i = 0; i < str.length(); i++) { Syst

ipython showing gibberish when debugging Django with Netbeans

I'm using Netbeans for coding Django. When I insert: import ipdb; ipdb.set_trace() Flow execution gets stopped but it shows gibberish, such as: [1;32m/path/to/file/[0m(344)[0;36macceptBid[1;34m()[0m [1;32m 343 [1;33m [1;32mimport[0m [1;37mip

Netbeanw does not refresh JPanel after adding new components

this title may not best describe my problem. I'm using Netbean GUI builder to create a JFrame and several JPanels. I create each JPanel in a seperate class, then I drag the JPanel class to JFrame. The problem is after dragging the JPanel to JFrame, i

Reading a file from Java Servlet

I wrote some code to read a file in my Java Servlet class. (I'm using Netbeans on Windows along with Tomcat server). However, my servlet cannot find the file! After much digging, I found that I had to place the file I wanted to read in Tomcat/bin fol