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
Type: Posts; User: remigio
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
what's wrong with your code...write exception with you get on output
and what's the problem ?
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() :...
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...
You're use wrong layoutManager. he's too simple to do what you want to do :) Try witch BoxLayout CardLayout or GroupLayout
Look this site :
Unicode/UTF-8-character table
for example :
String string = "abc\u5639\u563b";
System.out.println(string);
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...
because from traverse you take back null. First, you initialize your array and later you are change her to null.
i agree with Sean4u check your index's arrays
like for me this code is correct...
First of all...you must add your content do "window". second, if you put into panel another panel you need to set LayoutManager :)
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...
no, no... You must store your elements from (for example) Book class in Arraylist. create ArrayList in your main class.
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>();
i understand :)
do not paste code...
btw. im new on this page..:)
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);
...