No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
I'm trying to make my first real project: A calculator, but when I press the "clear" button (the only button i've done so far) the JLabel doesn't go from two to zero, any help would be really appreciated :) code: [CODE]import java.awt.Color; import java.awt.GridLayout; import java.awt.event.*; import javax.swing.*; public class … |
|
I tried to put an image on a JButton and it's messed up: [url]http://imgur.com/ecBOt[/url] code: [CODE]import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.awt.geom.*; public class Polluted extends JFrame implements ActionListener { ImageIcon bg = new ImageIcon("bg.png"); Image bgImage = bg.getImage(); public static void main(String[] args) { new Polluted(); } public … |