I am having trouble displaying a google calendar, it shows up but has a blue
background, which makes it difficult to view.
Heres my code
private JPanel getGoogleCalendar(){
JPanel googlepane=new JPanel(new BorderLayout());
String s=
"https://www.google.com/calendar/b/0/htmlembed?src=0ap0d38a4vobr8i81805dla...@group.calendar.google.com&ctz=America/New_York&gsessionid=OK"
;
JTextPane tp=new JTextPane();
try {
tp.setContentType("text/html");
tp.addHyperlinkListener(this);
tp.setEditable(false);
tp.setPage(s);
tp.setBackground(Color.white);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
googlepane.add(tp, BorderLayout.CENTER);
return googlepane;
}
--
You received this message because you are subscribed to the Google
Groups "Google Calendar Data API" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://code.google.com/apis/calendar/community/forum.html