1
vote
1answer
27 views

JLabel saying “please wait” not running

I'm trying to make a java app and after using Swing to get some input data from the user I begin to run the main computational chunk of my program (not the main method just to be clear). While this ...
1
vote
1answer
20 views

Java - paintComponent won't show drawings on JPanel

I've gotten stuck trying to draw on a JPanel. I've learned how to create a JFrame, a JPanel, add event handlers, do the same in applets, and some other basic GUI development. But everytime I try to ...
0
votes
1answer
37 views

Changing the value of a outer class member via a inner class

I am trying to manipulate a an outer class member via an inner class event handling method. A class MyColorChooser has a private member sliderColor. The default value of sliderColor is set to black ...
0
votes
1answer
14 views

Sliding hidden sections of a JPanel into view

I want to display a JFrame ( made with the Netbeans GUI Editor ) that has an enclosed panel ( the panel encovers the entire JFrame ). The panel is twice as wide as the frame, so I want it so that when ...
0
votes
0answers
14 views

Work with network in swing application

I am developing swing application that will communicate with server via web sockets. I plan to create separate threads for sending/receiving packets, connecting and disconnecting operations. Also ...
0
votes
1answer
16 views

getBufferStrategy(); or createBufferStrategy(2/3); Which comes first? And does it matter?

I have been looking up some examples in books and in on line video's. I find that when people are creating a bufferStrategy they do it in so many different ways. For example, as I understand it, I'm ...
-1
votes
3answers
34 views

jlabels don't show when button clicked

I want to see jlabels when my show Button clicked, But don't work! public class d4 extends JFrame implements ActionListener { Connection con; String dbName = "mydb"; String bdUser = "root"; String ...
0
votes
0answers
11 views

Resizing JTable column widths contains JCheckBoxes

I have a JTable with two colums. First column is boolean. table= new JTable() { @Override public Class getColumnClass(int c) { return getValueAt(0, c).getClass(); } ...
0
votes
1answer
26 views

JFrame duplication on main screen

My code is duplicating the creation of the main screen when I hit the button of the search..the search event should only open one new frame with a textbox to type query. The creation of another frame ...
1
vote
1answer
37 views

Swing displaying some JLabels but not others

I am working on designing a simple GUI for a simple battlships clone. I had previously done something similar using painted squares but decided to try it with JPanels. Everything here works as I ...
0
votes
4answers
20 views

Swing: Start second JPanel, when the first JPanel is clicked

I'm writing a simple java game and I'm facing this problem: My different layouts are in different JPanels (1 JPanel for the welcoming page, where I have to press 'start game' and another one with the ...
1
vote
3answers
43 views

RGB creating with not a statement error

I have 39 errors but the are all the same error on the same thing (kindve) and I don't know what's wrong! The errors are all similar to this one: Setup.java:31: error: ')' expected ...
0
votes
1answer
19 views

Find pixel of subimage [duplicate]

I have the following image I'd like to use it to implement a music juke box. How can I find out the pixel of subimage and set it as a button? Millions of thanks!
0
votes
0answers
23 views

Refresh Jtable Content

The purpose of this code is, fill the table with random numbers when something is write in the cell[0,1]; the problem is that the table do not automatically refresh itself. The table refresh the ...
-2
votes
0answers
11 views

How can my JApplet know if its browser tab is active without JS? [on hold]

I've red some similar questions, and almost all the answers made use of JavaScript. I'm in a rush and I've never seen a line of JS, so: can anyone help me without using JS? Is there a way to know if ...

1 2 3 4 5 1881
15 30 50 per page