Search:

Type: Posts; User: Masic1990

Search: Search took 0.10 seconds.

  1. Replies
    1
    Views
    1,158

    File reading/writing

    I've looked at multiple sources and everyone is saying different stuff. Which one should I be using? FileWriter/FileReader, other people was saying PrintWriter, and one even said : "Formatter" which...
  2. Replies
    4
    Views
    948

    Re: setBackground in MouseAdapter

    Thank you again.

    - Nicky
  3. Replies
    4
    Views
    948

    Re: setBackground in MouseAdapter

    I just keep getting this same error message:


    Exception in thread "AWT-EventQueue-0" java.lang.Error: Unresolved compilation problem:
    Cannot refer to the non-final local variable item defined...
  4. Replies
    4
    Views
    948

    setBackground in MouseAdapter

    import java.awt.FlowLayout;

    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JTextArea;

    import java.awt.BorderLayout;
    import java.awt.Color;
    import...
  5. Thread: JList help

    by Masic1990
    Replies
    2
    Views
    1,031

    Re: JList help

    Thank you, I have seem to found a solution to my problem, which is here:


    import java.awt.FlowLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import...
  6. Thread: JList help

    by Masic1990
    Replies
    2
    Views
    1,031

    JList help

    Main (groupingTest)

    import javax.swing.JFrame;

    public class groupingTest {
    public static void main (String[] args) {
    groupWindow test = new groupWindow();
    ...
  7. Thread: Help me pls

    by Masic1990
    Replies
    3
    Views
    903

    Re: Help me pls

    I'm guessing it's your homework as you're asking for specifics and theirs a built in function for square root. Show us what you've tried and we can help you from there.
  8. Re: Warning on class with JFrame inheritance (extends)

    I have now and it has gotten rid of the error message...But why, what's the point of that being there? If you're going to say do my own research fair enough, I will eventually learn why ;)

    - Nicky
  9. Warning on class with JFrame inheritance (extends)

    I'll start off by showing my full code:

    Main class

    import javax.swing.JFrame;

    public class groupingTest {
    public static void main (String[] args) {
    groupWindow test = new groupWindow();
  10. Replies
    6
    Views
    1,114

    Re: import question

    Better question then: why does Java bother with importing and not integrate it in already?

    - Nicky
  11. Replies
    6
    Views
    1,114

    import question

    I see you can import in 2 ways:

    import java.util.*;

    or

    import java.util.Scanner/Random/etc;

    if I used the first one it imports all the librarys within that (directory?). If so would that...
  12. Thread: Compiler

    by Masic1990
    Replies
    5
    Views
    1,005

    Re: Compiler

    Uh...Fair enough. How would I make it a .EXE

    - Nicky
  13. Thread: Compiler

    by Masic1990
    Replies
    5
    Views
    1,005

    Compiler

    Alright, I could search the internet but I want a more specific answer.

    I used a BASIC programming language before this called Basic4GL so my knowledge to be fair isn't very wide outside of that...
  14. Replies
    3
    Views
    1,078

    Re: Guessing game

    Thanks for the suggestions, I will keep them in mind.




    while (Number > RandomNumber || Number < RandomNumber)

    If the number isn't higher or lower then it must be equals that's when it...
  15. Replies
    3
    Views
    1,078

    Guessing game

    Is there actually a specific thread to post your games? This is my first guess, and I'm not here to show off or I'll be fooling myself here as it's not the best game. I'm actually just asking for any...
  16. [SOLVED] Re: Beginner trying to make distance in positive number

    Yes you're right, I did know that. I will be careful in the future on the forums to save confusion! Thank you.

    - Nicky
  17. Thread: ToString

    by Masic1990
    Replies
    4
    Views
    771

    [SOLVED] Re: ToString

    Ha, I guess I didn't see that. I'll refrain from making useless post before looking more next time, sorry. :o

    - Nicky
  18. [SOLVED] Re: Beginner trying to make distance in positive number

    Thank you very much for that.

    - Nicky

    EDIT:

    awkward moment when you find out you can do math.abs(n) :))
  19. Thread: ToString

    by Masic1990
    Replies
    4
    Views
    771

    [SOLVED] ToString

    Can anyone help solve my problem? Don't know where I've gone wrong.

    Main

    // Main
    public class Nicky {
    public static void main(String[] args)
    {
    func f = new func("Did it work? Hehehe",...
  20. [SOLVED] Beginner trying to make distance in positive number

    I've been programming for years in a basic programming language, so doing something a bit more advance like this is quite challenging but I love it. Could someone help me where I've gone wrong here?...
Results 1 to 20 of 20