I have two labels where contents change during run-time. Caption changes on one depending on the actions and on the other one I have the timer. When both of them change their captions they flicker, how do I get rid of that? I tried to make them transparent or non-transparent, play with different...
How do you save a color in a binary file?
Do you assing special values to R, G and B, or you can actually save a hexadecimal color value as string and then use it, if so, then how do you convert it back?
I am getting a NullPointerException error and I cannot see where it is. It points to line 19 but I can't find what's wrong.
import java.awt.*;
import java.lang.Object;
public class Algorithm {
public static void main (String args[]) {
int deletedLines = 0;
Label...
I am getting a NullPointerException error and I cannot see where it is. It points to line 19 but I can't find what's wrong.
import java.awt.*;
import java.lang.Object;
public class Algorithm {
public static void main (String args[]) {
int deletedLines = 0;
Label place[][]...
I have a number of buttons which are stored in a two dimensional array. How do I make the program to know what button I clicked on? Something like mouseClicked event in Java.
I made a game of 15 which works just fine with mouse clicks. I want it to respond to keyboard clicks such as left, right, up and down keys. How do add that feature to this code? I tried KeyDown, KeyUp, KeyPress and they just won't reaspond. I tried it on both the actual form and the button...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.