i receive float data from the network every 400 ms that i put in 4 arrays of float.I store those arrays in another array, so i have :
This is my code: JFrame frame = new JFrame(); frame.setSize(400, 400); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
For a homework assignment, I am trying to paint a box with paintComponent using user inputed variables. I have been able to build what I am need to do using fixed numbers. I have been working on this
I have a problem with Swing that I just don\'t find the reason for. I have a JTextPane that has been extended to show a background image. This can be either a raster image (shown via the Standard Java
I\'m trying to make a paint in java, with classes and hierarchy. But my paint area isn\'t getting the background color (defined as white) and when i click it makes a print screen in the jpanel area of
Hey guys. I have got a JPanel which changes color when it is clicked (this is handled correctly in another class).
What purpose does super.paintComponent(g) serve in this sample code? protected void paintComponent(Graphics g) {
Im working on a paint application written in java and running into a few (more) problems. I have a gui and a working program(kinda), my only problem is that the lines and graphics that the user draws
I have a problem with drawing. I have a frame with one button. Using the mouse, I draw a transculent rectangle. But I have a small problem, because when drawing this rectangle, it is drawing behind th
I am writing a Tetris-based game, and I am using a GridLayout to display the actual shaft which the Tetris pieces fall down. The GridLayout is filled with little JLabel objects. The shaft is itself a