Search:

Type: Posts; User: Goldfinch

Search: Search took 0.32 seconds.

  1. Re: Attempting something complicated with netbeans (involving GUI), looking for advice

    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....
  2. Re: Attempting something complicated with netbeans (involving GUI), looking for advice

    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...
  3. Re: Attempting something complicated with netbeans (involving GUI), looking for advice

    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...
  4. Attempting something complicated with netbeans (involving GUI), looking for advice

    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...
  5. [SOLVED] nullPointerException, but doesn't look wrong to me

    Hi, little code problem



    public void display() {
    for (int i = 0; i < 25; i++) {
    StringBuilder line = null;
    for (int j = 0; j < 25; j++) {
    ...
  6. Replies
    1
    Views
    671

    [SOLVED] recurring counter inside a method

    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.
  7. Replies
    14
    Views
    497

    [SOLVED] As it happened I tried putting the revised code...

    As it happened I tried putting the revised code in a method and it worked.
  8. Replies
    14
    Views
    497

    [SOLVED] Re: stack overflow error

    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...
  9. Replies
    14
    Views
    497

    [SOLVED] Re: stack overflow error

    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,...
  10. Replies
    14
    Views
    497

    [SOLVED] Re: stack overflow error

    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);
    ...
  11. Replies
    14
    Views
    497

    [SOLVED] Re: stack overflow error

    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...
  12. Replies
    14
    Views
    497

    [SOLVED] Re: stack overflow error

    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...
  13. Replies
    4
    Views
    233

    [SOLVED] Re: problem with instantiating object

    I found the error on this one. You were right, it was the brackets.
  14. Replies
    14
    Views
    497

    [SOLVED] stack overflow error

    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];
    ...
  15. Replies
    4
    Views
    233

    [SOLVED] Re: problem with instantiating object

    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...
  16. Replies
    4
    Views
    233

    [SOLVED] problem with instantiating object

    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...
  17. Thank You. It worked out.

    Thank You. It worked out.
  18. Re: new use of bufferedreader, uncharted territory

    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.


    ...
  19. Re: new use of bufferedreader, uncharted territory

    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...
  20. Re: new use of bufferedreader, uncharted territory

    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...
  21. Re: new use of bufferedreader, uncharted territory

    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...
  22. Re: new use of bufferedreader, uncharted territory

    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{
    ...
  23. Re: new use of bufferedreader, uncharted territory

    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:...
  24. Re: new use of bufferedreader, uncharted territory

    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...
  25. new use of bufferedreader, uncharted territory

    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...
Results 1 to 25 of 25