2011-03-09 8 views
0

jframe jeditorpanelでカレンダーを表示すると、背景は青色で白くなりません。ここでGoogleのカレンダーにjframeの青色の背景があるのはなぜですか?

は私のコードです:

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/[email protected]&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); 
    } 
} 

あなたがこれを実行する場合は、ブルーバックグラウンドが表示されますが、あなたは、ブラウザでリンクに行けば、それは白い背景を持っています。

答えて

0

Java jeditorはCSSが好きではないようですので、私はあきらめました:(

関連する問題