problem solved.
Printable View
problem solved.
Hello SyntheticD.
Welcome to the Java Programming Forums.
What is the issue with the code you posted? Does it produce errors? Please be as descriptive as possible.
Quote:
Drawable drawable = new Drawable(Color.GREEN);
You are creating two instances of Drawable , one with default color and other with no colorQuote:
btnOne.addActionListener(new Drawable());
thats why its not showing effect , you are looking.
make this
use object of drawable you had created earlier.Quote:
btnOne.addActionListener(drawable);
Wrong post.