Search:

Type: Posts; User: remigio

Search: Search took 0.10 seconds.

  1. Replies
    3
    Views
    1,243

    Re: 1.7 JRE library error?

    i think u must right click on your project --> properties --> in sources change source/binary format to jdk 1.7 --> in libaries java platform to 1.7
  2. Replies
    8
    Views
    409

    Re: pls.pls.pls.help with this

    what's wrong with your code...write exception with you get on output
  3. Replies
    5
    Views
    398

    Re: help for this java question

    and what's the problem ?
  4. Thread: Variable Error

    by remigio
    Replies
    2
    Views
    289

    Re: Variable Error

    I didnt read your task but if u want to use static method in class u must use class name to initialize her. for example :
    class MyClass {
    static void myMethood(){}
    }
    if u want use myMethood() :...
  5. Re: I'm either doing this entirely wrong or I'm missing something simple.

    lol
    your problem is because u didnt initialalized field total2. u must set a number in line where u have double total2;
    C:\Java\Birthday.java:53: error: variable total2 might not have been...
  6. Replies
    10
    Views
    443

    Re: Need help figuring out the problem (GUI)

    You're use wrong layoutManager. he's too simple to do what you want to do :) Try witch BoxLayout CardLayout or GroupLayout
  7. Replies
    4
    Views
    807

    [SOLVED] Re: inserting utf8 data into DB

    Look this site :
    Unicode/UTF-8-character table

    for example :

    String string = "abc\u5639\u563b";
    System.out.println(string);
  8. Re: HI, could someone please tell me why my code doesnt work?

    First of all if you want to use threads in main class you must run him in special class called Executorservice. or:
    class My thread implements Runnable {your code} (this class must be above yout...
  9. Re: exception in thread "main" java.lang.nullpointerexception (Knights Tour program)

    because from traverse you take back null. First, you initialize your array and later you are change her to null.
  10. Replies
    4
    Views
    420

    Re: Run Time Error.

    i agree with Sean4u check your index's arrays
  11. Re: hello, i need help with this code, i dont know why i am getting this error

    like for me this code is correct...
  12. Replies
    3
    Views
    490

    [SOLVED] Re: I don't know what's wrong

    First of all...you must add your content do "window". second, if you put into panel another panel you need to set LayoutManager :)
  13. Replies
    5
    Views
    989

    Re: problem with paintComponent

    try to add LayoutManager to your panel :) GridLayout will be good for this example.
    By the way...u dont have to use "this" into Painting class...Methods like setSize and others refer to your class...
  14. [SOLVED] Re: Need help with displaying items with my program

    no, no... You must store your elements from (for example) Book class in Arraylist. create ArrayList in your main class.
  15. [SOLVED] Re: Need help with displaying items with my program

    you need to save your Books and other class to some container. in your case ArrayList will be sufficient.
    For example : List<Book> myBooks = new ArrayList<Book>();
  16. Re: Code wont run. I know there is no main class, but this is from a book. Is it wro

    i understand :)
    do not paste code...
    btw. im new on this page..:)
  17. Re: Code wont run. I know there is no main class, but this is from a book. Is it wro

    u must add something like this:



    public class Main {
    public static void main(String[] args) {
    final JFrame fr = new JFrame();
    JPanel pan = new ColorPanel(Color.black);
    ...
Results 1 to 17 of 17