yes that makes sense. And how do I use the debugger in eclipse? Because there is a debug button but all that allows me to do is to change the program while its running.
Type: Posts; User: nivangerow
yes that makes sense. And how do I use the debugger in eclipse? Because there is a debug button but all that allows me to do is to change the program while its running.
Actually I read through it, tried some stuff like requesting the focus and it didnt work.
Btw, about the key listener thing... You know I made a thread about that, thats what I meant. Is there any way I dont have to press tab?
I still dont quite get it.
wait... does the else make any difference?
[edit]
F*#K how did I miss that? I just put else after my main and pause gui and viola! It worked! Thx so much!
Come on! I dont get what you mean! Arent they just different ways to lay out stuff?
Why cant you just tell me and what debugger would you recommend?
Right I put this System.out.println(gui.visible+" "+guiop.visible);
in the paint method, because that constantly updates and its all going the way I want it, the variable changes and everything,...
Sorry I posted this like 2 secs after you.
[edit]
Can you tell me what happens the second time round?
Did it work? Why does my gui not work?
Sorry, to get the key listener to focus you need to press tab. Then it should work.
Right Here is my SSCCE:
Pong.java:
package net.nivangerow.pong;
import javax.swing.*;
import java.awt.*;
public class Pong {
public static void main(String[] args)
K im working on it.
It is runnable, you need to download my workspace (in the OP)
Can somebody help me? please?
I need help with my gui. I have made a main screen which gives the player options to go to a options screen. When I go on the options screen and select the back button and then ty to go back in the...