Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2010
    Posts
    5
    Rep Power
    0

    Default Java Backgroundcolor

    Hello, I have made a Java window app, but there is one problem,
    the background doesnt work.

    Java Code:
    /*
    
    Name: Window
    Filename: Window.java
    
    */
    
    import javax.swing.*;
    import java.awt.*;
    
    public class Window extends JFrame {
    
    	public Window() {
    	
    		setTitle("Window");
    		setSize(600, 400);
    		setBackground(Color.WHITE);
    		setVisible(true);
    		
    		
    	
    	}
    
    	
    	public static void main(String[] args) {
    	
    		Window w = new Window();
    	
    	}
    
    }

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •