Relative Content

Tag Archive for staticthisjbutton

How to get a JButton to work properly in a static method

I am creating a GUI that asks the user to enter an account balance then click a confirm button. After the button is clicked, it is supposed to display the confirmed balance in the confirmed balance box. However, when I click the button, nothing happens. I tried using the “this” keyword in my addActionListener call, but I cant use it in a static method. How do I get the button to work?

How to get a JButton to work properly in a static method

I am creating a GUI that asks the user to enter an account balance then click a confirm button. After the button is clicked, it is supposed to display the confirmed balance in the confirmed balance box. However, when I click the button, nothing happens. I tried using the “this” keyword in my addActionListener call, but I cant use it in a static method. How do I get the button to work?

How to get a JButton to work properly in a static method

I am creating a GUI that asks the user to enter an account balance then click a confirm button. After the button is clicked, it is supposed to display the confirmed balance in the confirmed balance box. However, when I click the button, nothing happens. I tried using the “this” keyword in my addActionListener call, but I cant use it in a static method. How do I get the button to work?

How to get a JButton to work properly in a static method

I am creating a GUI that asks the user to enter an account balance then click a confirm button. After the button is clicked, it is supposed to display the confirmed balance in the confirmed balance box. However, when I click the button, nothing happens. I tried using the “this” keyword in my addActionListener call, but I cant use it in a static method. How do I get the button to work?