- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 4
- Posts with Upvotes
- 4
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
- PC Specs
- Intel Core i5 2300, 4GB RAM,
9 Posted Topics
Re: why do you have brackets around the arraylist decleration? | |
Re: I kinda for the most part get what your code does but, which loops is prompting twice? You have 3 loops. And what is being prompted twice? | |
I need to make a program that runs two threads. One that outputs ping and sleeps for ten second and one that outputs pong and sleeps for ten seconds. Everything works except instead of sleeping for ten seconds everytime the thread is ran its just jumps to the second thread … | |
![]() | Re: Your code is right. It actually isn't good practice to name parameters the same names as the variables. "This" is used for self-referencing things that are in the class. Here's an example. public class classname { private int x; private int y; classname() { this(0, 0); //Calls classname's cunstructor with … |
Re: Strings are objects so you cannot compare objects with == unless you want to compare memory locations. Use .equals if (e.getSource().equals(jb)) | |
I have everything added to the JFrame using absolute positioning. It works fine but when it repaints the pie chart it also repaints the last JNumericField and button at the the very top left of the screen. At postion 0, 0 I presume PieChartFrame.java import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; … | |
I made a custom JTextField that only accepts numbers into the textfield. I used insertString to do this. Tt works pretty well except it allows oddly only the letter e. It accept e only after a number is inputted first. And once e has been entered the textfield does not … |
The End.