Shtilmark Pollo

Greenhorn
+ Follow
since Jun 14, 2012
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Shtilmark Pollo

A long time ago i did something like that. There, i a little bit adopting my code to your code.


11 years ago

Campbell Ritchie wrote:Welcome to the Ranch Shtilmark Pollo.


Gracias:)

Campbell Ritchie wrote:
If you are using the action command without setting it, won’t you suffer a null pointer exception?


I dont think so. If action command not set then getActionCommand return button text.
From javax.swing.AbstractButton
11 years ago
I think your code must be something like that:
11 years ago
I think you could do something like this. Create Square class with the following setBounds method:

Then create dynamic border. For example size of this border will be 10% of component size.

And then install this border to the square.
11 years ago