1 19 20 package org.netbeans.modules.welcome.ui; 21 22 import java.awt.GridBagConstraints ; 23 import java.awt.GridBagLayout ; 24 import java.awt.Insets ; 25 import javax.swing.JComponent ; 26 import javax.swing.JLabel ; 27 import javax.swing.JPanel ; 28 import org.netbeans.modules.welcome.content.BundleSupport; 29 import org.netbeans.modules.welcome.content.RSSFeedReaderPanel; 30 import org.netbeans.modules.welcome.content.WebLink; 31 32 36 public class Blogs extends RSSFeedReaderPanel { 37 38 39 public Blogs() { 40 super( "Blogs", false ); 42 setBottomContent( buildBottomContent() ); 43 } 44 45 protected JComponent buildBottomContent() { 46 WebLink allBlogs = new WebLink( "AllBlogs", false ); allBlogs.setFont( HEADER_FONT ); 48 BundleSupport.setAccessibilityProperties( allBlogs, "AllBlogs" ); 50 JPanel panel = new JPanel ( new GridBagLayout () ); 51 panel.setOpaque( false ); 52 panel.add( allBlogs, new GridBagConstraints (0,1,1,1,0.0,0.0,GridBagConstraints.SOUTHWEST,GridBagConstraints.HORIZONTAL,new Insets (5,5,0,5),0,0) ); 53 panel.add( new JLabel (), new GridBagConstraints (1,1,1,1,1.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.HORIZONTAL,new Insets (0,0,0,0),0,0) ); 54 55 return panel; 56 } 57 } 58 | Popular Tags |