Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2011
    Posts
    1
    Rep Power
    0

    Unhappy Why does google calendar have a BLUE background in jframe.

    Here is my code:


    Java Code:
    import java.io.IOException;
    import javax.swing.JEditorPane;
    import javax.swing.JFrame;
    import javax.swing.JScrollPane;
    public class ShowHTMLDocument {
      public static void main(String[] args) throws IOException {
          JFrame f = new JFrame("Google Calendar");
          final JEditorPane ep = new JEditorPane("https://www.google.com/calendar/htmlembed?src=groupboba@gmail.com&ctz=America/New_York&gsessionid=OK");
    
          ep.setContentType("text/html");
    
          ep.setEditable(false);
          f.getContentPane().add(new JScrollPane(ep));
          f.setSize(400, 300);
          f.setVisible(true);
      }
    }
    If you run this you will see the blue back ground, but if you go to the link in a browser, then it has a white background.

    "I posted this question the other day in StackOverflorw.com but wasn't able to get a good answer, so now I'm asking here..."
    Last edited by Mr.StevenFeldman; 03-09-2011 at 02:52 PM. Reason: Making note of cross-post

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

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

Similar Threads

  1. Change border color from blue to green of JFrame
    By altu57 in forum AWT / Swing
    Replies: 1
    Last Post: 07-10-2010, 04:19 AM
  2. JFrame image background
    By 851marc in forum NetBeans
    Replies: 5
    Last Post: 03-09-2010, 06:27 PM
  3. Need help with JFrame background image
    By ProGenius in forum New To Java
    Replies: 6
    Last Post: 12-27-2009, 04:17 PM
  4. Java application using google calendar
    By nikolas8 in forum Java Applets
    Replies: 3
    Last Post: 03-20-2009, 12:49 AM
  5. Background in JFrame ( GUI).
    By Twister03 in forum AWT / Swing
    Replies: 2
    Last Post: 03-12-2009, 03:24 AM

Tags for this Thread

Posting Permissions

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