Results 1 to 2 of 2
  1. #1
    altu57 is offline Member
    Join Date
    Jul 2010
    Location
    Aurangabad
    Posts
    4
    Rep Power
    0

    Post Change border color from blue to green of JFrame

    How to change border color of JFRame

  2. #2
    Webuser is offline Senior Member
    Join Date
    Dec 2008
    Posts
    526
    Rep Power
    0

    Default

    Move in this field :)

    Java Code:
    import javax.swing.*;   
    import java.awt.*;   
    class Testing   
    {   
      public void buildGUI()   
      {   
        JFrame f = new JFrame("JFrame");   
        f.setUndecorated(true);   
        f.getRootPane().setWindowDecorationStyle(JRootPane.WARNING_DIALOG);   
        f.setSize(400,300);   
        f.setLocationRelativeTo(null);   
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);   
        f.setVisible(true);   
      }   
      public static void main(String[] args)   
      {   
        SwingUtilities.invokeLater(new Runnable(){   
          public void run(){   
            new Testing().buildGUI();   
          }   
        });   
      }   
    }
    If my answer helped you. Please click my "REP" button and add a comment
    Have a Good Java Coding :)

Similar Threads

  1. changing border colorn of JFrame
    By altu57 in forum AWT / Swing
    Replies: 0
    Last Post: 07-08-2010, 11:36 AM
  2. Change JFrame taskbar color?
    By dunafrothint in forum AWT / Swing
    Replies: 3
    Last Post: 03-05-2010, 06:14 AM
  3. JFrame window doesnt change background color
    By Addez in forum New To Java
    Replies: 7
    Last Post: 11-07-2009, 10:38 PM
  4. [SOLVED] Expected Range: Red Green Blue
    By AndrewM16921 in forum New To Java
    Replies: 1
    Last Post: 04-03-2009, 08:59 PM
  5. Color Change of data
    By Java.child in forum AWT / Swing
    Replies: 20
    Last Post: 02-12-2009, 07:51 AM

Posting Permissions

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