Background image in Java application

Status
This thread has been locked.

Brazy

CEO of Occasionally Returning
Supreme
Feedback score
14
Posts
2,698
Reactions
1,373
Resources
0
So, I'm making this joke of a Java GUI because i'm just amazing like that.. and tried everything and nothing is working..

Here's code.
Code:
package net.swiftex;

import java.awt.FlowLayout;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JTextField;

public class Hacks extends JFrame{
  
   private JLabel label;
   private JButton button;
   private JTextField text;
  
   public Hacks() {
     setLayout(new FlowLayout());
    
     label = new JLabel("Enter the details");
     add(label);
    
     text = new JTextField(15);
     add(text);
    
     button = new JButton("HACK MINECRAFT ACCOUNT!?!");
     add(button);
    
   }
  
  
   public static void main(String[] args){
     Hacks hacking  = new Hacks();
     hacking.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
     hacking.setSize(3000,2000);
     hacking.setVisible(true);
     hacking.setTitle("Minecraft Account H4CK0R");
   }

}
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Deep

Full Time Bebosny's Slave/Fan/Son
Supreme
Feedback score
0
Posts
3,531
Reactions
2,040
Resources
0
Looks like a troll thingy...
 

Deep

Full Time Bebosny's Slave/Fan/Son
Supreme
Feedback score
0
Posts
3,531
Reactions
2,040
Resources
0
How did you know?
public Hacks() {
setLayout(new FlowLayout());

label = new JLabel("Enter the details");
add(label);

text = new JTextField(15);
add(text);

button = new JButton("HACK MINECRAFT ACCOUNT!?!");
add(button);

}

public static void main(String[] args){
Hacks hacking = new Hacks();
hacking.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
hacking.setSize(3000,2000);
hacking.setVisible(true);
hacking.setTitle("Minecraft Account H4CK0R");
}


Don't be bothered by my amazing reading skillz...
 
Status
This thread has been locked.
Top