Update, so at the moment, I'm trying to get a simple interaction working. When someone clicks the add button, when someone clicks the add new profile tab button, a tab should appear in the tab pane....
Type: Posts; User: Goldfinch
Update, so at the moment, I'm trying to get a simple interaction working. When someone clicks the add button, when someone clicks the add new profile tab button, a tab should appear in the tab pane....
Edit: Ok, sounds good, when I have a specific question, I'll posit here.
My code at this point is pretty basic, my next goal is to be able to launch it and add fields, then save the fields, and...
I've figured out what I want to do, and I have the basic idea of how to implement it. I've used netbeans GUI editor before. I guess the main problem I'm encountering is also the main obstacle to...
I'm not experienced with building normal software, just programming assignments in an academic setting, but a few days ago I decided to attempt an independent project separate from school: a gift...
Hi, little code problem
public void display() {
for (int i = 0; i < 25; i++) {
StringBuilder line = null;
for (int j = 0; j < 25; j++) {
...
I'm looking for a way to get a method to keep track of how many times it's been called. Hopefully this is the right forum.
As it happened I tried putting the revised code in a method and it worked.
I'm using Netbeans 7.1, it allows me to run the program until it breaks. It looks like Netbeans doesn't think there are any compile errors, just runtime errors. The program seems to execute the first...
I didn't want to dump the whole thing on anyone because I thought It would be better if I posted more manageable pieces, but I'm including the entire file here just in case it helps. Unfortunately,...
I tried that out, and changed the code to something simpler:
Rank[] rankArray = new Rank[13];
for(int i=0; i<rankArray.length; i++){
rankArray[i]= new Rank(i);
...
Well here's the whole class:
class Rank{
public Rank(){//initializes new instance
}
// Item 1: a private static array of Strings and initialize it to...
that reminds me, I did forget to explain my objective, this is just the relevant code from a larger program and I guess I didn't include the comment line. Here is an update of the code to reflect the...
I found the error on this one. You were right, it was the brackets.
Hi,
I keep getting a static overflow error, but I'm puzzled about how to fix it.
public static Rank[] createRankArray(){
Rank[] rankArray= new Rank[13];
...
I'm trying to avoid that, the idea is to pass values from QUEEN in the rank class and SPADES in the Suit class into the the new Card(int, int) statement instead of something like new Card(3,4)
If...
Hi, I'm getting an error that an object cannot be instantiated in the following code
public class Prog2 {
/**
* @param args the command line arguments
*/
public static...
Thank You. It worked out.
At this point it compiled fine, but no values seem to be passed to the println statement at the bottom of the class since the console isn't printing the values in the text file to the console.
...
Thanks, that worked and I've also learned a lot about how to read the compiler errors too.
import java.io.*;
import java.util.logging.Logger;
import java.util.logging.*;
public class...
That worked, and the program compiled. I found a way to modify the program further, supposedly so it can print its inputs from the file it reads. That created some additional challenges. Earlier I...
Okay, you were right. It was a bracket problem and then these errors cropped up again (for the part Level that I guess was never resolved). I'm new to this forum, is it appropriate for me to ask this...
so I tried some changes and commented out my print statements near the end (since that's a separate mess there):
import java.io.*;
import java.util.logging.Logger;
public class Prog1{
...
Here were the compiler errors:
File: /Volumes/A-H/ajs211/Prog1/Prog1.java [line: 9]
Error: /Volumes/A-H/ajs211/Prog1/Prog1.java:9: cannot find symbol
symbol : variable Logger
location:...
Sorry, don't know how this works, there were some compile errors with the symbols Level and Logger both times they appeared. At one point, I tried defining those variables but that did not work...
I was trying to write part of a program to read in lines from a text file (in the same directory as the .java and compiled class) and print out those lines. I know a little java, but not much, and I...