Hello everyone,
a program I am writing needs to recognize keystrokes like CTRL pressed + Shift pressed + A typed.
For this purpose i implemented a java.awt.event.KeyListener, but have problems to define the above-mentioned key situation, because the methods keyPressed() and KeyTyped() don't...
Thanks very much.
It worked!
The program was compiled successfully, but the thing now is that the FileDialog does not appear. I have declared it with these lines of code:
FileDialog saveDialog = new FileDialog(this,"",FileDialog.SAVE);
saveDialog.setVisible(true);
Then follow the...
Hi Stijn147,
my problem still persists. This is the contructor:
public GUI()
{
super("Byte-/Zeichenorientierter Text Input/Output");
setVisible(true);
setSize(700,500);
setLayout(new BorderLayout());
TextArea input = new TextArea("",10,40...
Hello everyone,
i implemented an ActionListener in a GUI and want to access an attribute of the main class object instance from within method public void actionPerformed(ActionEvent e).
The trouble is that the method does not recognize the object instance which was created in the main()...
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.