Search:

Type: Posts; User: zlloyd1

Page 1 of 2 1 2

Search: Search took 0.16 seconds.

  1. Replies
    5
    Views
    300

    Re: Only getting last word

    I replaced txt2.setText(scan.next());, with txt2.append(scan.next());, and it seemed to work, but it is mashing both words together.... :eek:
    I guess I need to figure out how to keep a space...
  2. Replies
    5
    Views
    300

    Re: Only getting last word

    So you are saying that the line, txt2.setText(scan.next());, should be txt2.append(scan.next());?? :confused:
    Or should I add another line of code after txt2.setText(scan.next());?? #-o
  3. Replies
    5
    Views
    300

    Only getting last word

    The following code is supposed to take data entered into a text field, and send it to an external file. Then it is supposed to retrieve that data from the file and read it into a text area on the...
  4. Re: Suggestion to declare variable that is declared

    I am actually not truly adept at using exception handling in my code, so you could be exactly correct that I have misused the try catch block. Also, I write relatively small, simple programs...
  5. Re: class, interface, or enum expected errors??

    I am not using an IDE at this time, because I am still trying to learn, and have been told that an IDE can be confusing if you do not have the language down completely. I am doing my coding in...
  6. Re: class, interface, or enum expected errors??

    --- Update ---

    --- Update ---



    Thanks for the advice, but I do not usually concern myself with indentation until after I have the program working, and I have not gotten there as yet!! :">
    ...
  7. class, interface, or enum expected errors??

    The following code is supposed to create a small gui that will allow for text to be read from, and written to an external file.@};- I believe that the code is correct, at least as best as I know, but...
  8. Re: Suggestion to declare variable that is declared

    I apologize for the lazy formatting of my code, but I am writing this in notepad, and it is tiresome to keep indenting everything properly sometimes. :(|)
    So, if I am reading what you are saying...
  9. Suggestion to declare variable that is declared

    The following simple clock of code won't work, and the reason I am getting is that it has reached the end of file while parsing, but if I add another }, it comes back saying it is unnecessary??:mad:...
  10. Re: How do I get numeric values from JTextField??

    Thanks, I will go through the API and see if I can find what I need!! :-bd
  11. How do I get numeric values from JTextField??

    I am trying to figure out what to use to get user input from a text field on an interface, if the values entered were doubles, and not text. I mean I know how to get text, because there is the...
  12. Replies
    6
    Views
    524

    Re: Can't find Main Class??

    Thanks all, but I found my mistake.... :P I was trying to put this all in a java file named SwingApp.java, when it should have been Application.java. After I named the file correctly, it ran fine,...
  13. Replies
    6
    Views
    524

    Can't find Main Class??

    I am trying to run the following code on my computer, and it is giving me static, even though I have personally seen this exact code run on my friends computer correctly....:mad:
    On my computer it...
  14. Replies
    3
    Views
    285

    Re: Why am I getting an empty window here

    Out of curiosity, although I can hear what you are saying here, could you answer a different question for me, that just came to me after reading your response here.
    How could I add the JPanel to a...
  15. Replies
    3
    Views
    285

    Why am I getting an empty window here

    I am creating a program in Java to calculate various retail figures having to do with sale prices in different departments, and for some reason when I run my program I am getting an empty window that...
  16. Replies
    1
    Views
    218

    Where is my class??

    I have created a simple program to create a graphical user interface GUI window that contains the text Hello World in it, and in NetBeans it compiles and runs fine. Unfortunately, it does not run in...
  17. Replies
    8
    Views
    291

    Re: Can't call method from external class

    "One thing that confuses me is that in my mind something this basic, getting a single input from the user, can be done by a simple method of Pay rather than creating a whole other class, EmpChoice,...
  18. Replies
    8
    Views
    291

    Re: Can't call method from external class

    You did not understand what I wrote in my previous reply to you, as to what the classes were set up to accomplish?? Okay, well the first, and main class, called Pay, is supposed to call the class...
  19. Replies
    8
    Views
    291

    Re: Can't call method from external class

    To answer your questions, EmpChoice is one of three files, each with its own purpose in an employee payroll script I am working on. The only true functions of EmpChoice should be getting the number...
  20. Replies
    8
    Views
    291

    Re: Can't call method from external class

    Alright, I get what you are saying here, sort of, but when I try to call it from inside the main method it won't recognize it, and I think I am using correct coding.... :|
    Anyway, here are the...
  21. Replies
    8
    Views
    291

    Can't call method from external class

    I am trying to call an external calls from a separate file within the same Java program, but it keeps telling me to create the method in the current class for some reason?? :confused: This floors me...
  22. Replies
    6
    Views
    931

    Re: How can I do this in Java Please??

    Alright, I divided it into two separate classes within my program, but now it doesn't run correctly?? :o
    Here is what I have now:

    package zackfinal;
    import java.util.*;
    public class ZackFinal...
  23. Replies
    6
    Views
    931

    Re: How can I do this in Java Please??

    Thanks, I will do that and re-post if I run into problems!! <):)
  24. Replies
    6
    Views
    931

    Re: How can I do this in Java Please??

    I need the files to be in two separate instances , so that I can change the list when changes in policy dictate, but the initial user interface part of the program will be secured, and inaccessible...
  25. Replies
    6
    Views
    931

    How can I do this in Java Please??

    I have made a program in Java that is designed to take user input in the form of a yearly sales total, and use it to calculate their yearly commission bonus, and then return this value to the user. I...
Results 1 to 25 of 26
Page 1 of 2 1 2