Search:

Type: Posts; User: pottsiex5

Search: Search took 0.21 seconds.

  1. Replies
    9
    Views
    2,597

    Re: JButton events

    I cant find any syntax other than
    "public class ClassName extends JPanel
    implements ActionListener {"
    which doesnt help me...
  2. Replies
    9
    Views
    2,597

    Re: JButton events

    Hey,
    So i put implement ActionListener into the class line like this:


    public static void main implements ActionListener (String[] args) {

    but i get a red line under "main" and "implements...
  3. Replies
    9
    Views
    2,597

    Re: JButton events

    Do i have to write the code the way they did, writing the class as an extension of JPanel? I added in the imports they had, and i get "non-static variable this cannot be referenced from a static...
  4. Replies
    9
    Views
    2,597

    Re: JButton events

    Ive looked at it, but i havent been able to do what theyve done. I try this:


    import javax.swing.*;
    import java.awt.*;

    public class LessonOne {

    public static void main(String[] args) {...
  5. Replies
    9
    Views
    2,597

    JButton events

    Hi,
    Im still relatively new to GUI. Ive seen a lot of tutorials out there, but none of them really explain what im doing, and just show examples. Im trying to learn how to make a JButton do...
Results 1 to 5 of 5