The code should be a counter, so basically it needs to be 2 arrows, 1 up and 1 down, and a number, when you press the up arrow it's supposed to count 1 up, and vice versa, however my problem is as...
Type: Posts; User: Pusillus
The code should be a counter, so basically it needs to be 2 arrows, 1 up and 1 down, and a number, when you press the up arrow it's supposed to count 1 up, and vice versa, however my problem is as...
The problem is still not fixed, any ideas?
Tried moving it out of paint like so
public void init(){
add(up);
add (down);
up.setLocation(75,10);
up.setBorder(BorderFactory.createEmptyBorder());
...
So I'm making a really simple counter for use while playing Magic the Gathering, my goal is to have 2 buttons (looking like arrows) one to count up and one to count down, however when I try and...
Thanks a lot this posted helped me a lot and saved me a lot of my hair :-D
Thanks a lot Norm that cleared up my issue :-D
My problem is that the image doesn't show, when I run the program, all I get is an empty window.
edit:
I moved it so I read my image outside the paintComponent, but it still doesn't show.
I'm making a dice program that will displace a random image of a dice between 1 and 6, my problem is displaying and image in my program.
Here's my GUI source code:
package terninggui;
...