This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 258328
Collapse All | Expand All

(-)a/welcome/src/org/netbeans/modules/welcome/WelcomeComponent.java (+1 lines)
Lines 70-75 Link Here
70
    private WelcomeComponent(){
70
    private WelcomeComponent(){
71
        setLayout(new BorderLayout());
71
        setLayout(new BorderLayout());
72
        setName(NbBundle.getMessage(WelcomeComponent.class, "LBL_Tab_Title"));   //NOI18N
72
        setName(NbBundle.getMessage(WelcomeComponent.class, "LBL_Tab_Title"));   //NOI18N
73
        setToolTipText(NbBundle.getMessage(WelcomeComponent.class, "ACS_Welcome_DESC")); // NOI18N
73
        content = null;
74
        content = null;
74
        initialized = false;
75
        initialized = false;
75
        putClientProperty( "activateAtStartup", Boolean.TRUE ); //NOI18N
76
        putClientProperty( "activateAtStartup", Boolean.TRUE ); //NOI18N
(-)a/welcome/src/org/netbeans/modules/welcome/content/BundleSupport.java (+1 lines)
Lines 98-103 Link Here
98
      
98
      
99
        component.getAccessibleContext().setAccessibleName(aName);
99
        component.getAccessibleContext().setAccessibleName(aName);
100
        component.getAccessibleContext().setAccessibleDescription(aDescr);
100
        component.getAccessibleContext().setAccessibleDescription(aDescr);
101
        component.setToolTipText(aDescr);
101
    }
102
    }
102
    
103
    
103
    public static String getMessage( String key, Object param ) {
104
    public static String getMessage( String key, Object param ) {
(-)a/welcome/src/org/netbeans/modules/welcome/content/Constants.java (-1 / +8 lines)
Lines 64-70 Link Here
64
    static final String COLOR_TAB_BACKGROUND = "TabBackgroundColor"; //NOI18N
64
    static final String COLOR_TAB_BACKGROUND = "TabBackgroundColor"; //NOI18N
65
    static final String COLOR_TAB_BORDER1 = "TabBorder1Color"; //NOI18N
65
    static final String COLOR_TAB_BORDER1 = "TabBorder1Color"; //NOI18N
66
    static final String COLOR_TAB_BORDER2 = "TabBorder2Color"; //NOI18N
66
    static final String COLOR_TAB_BORDER2 = "TabBorder2Color"; //NOI18N
67
67
    public static final String COLOR_TOP_START = "StartPageTopStartColor"; //NOI18N
68
    public static final String COLOR_BOTTOM_END = "StartPageBottomEndColor"; //NOI18N
69
    //ContentHeader
70
    public static final String COL_BANNER_LEFT = "BannerLeftColor"; //NOI18N
71
    public static final String COL_BANNER_RIGHT = "BannerRightColor"; //NOI18N
72
    public static final String COL_GRADIENT_START = "ContentHeaderGradientStartColor"; //NOI18N 
73
    public static final String COL_GRADIENT_END = "ContentHeaderGradientEndColor"; //NOI18N
74
    
68
    static final String COLOR_RSS_DATE = "RssDateTimeColor"; //NOI18N
75
    static final String COLOR_RSS_DATE = "RssDateTimeColor"; //NOI18N
69
    static final String COLOR_RSS_DETAILS = "RssDetailsColor"; //NOI18N
76
    static final String COLOR_RSS_DETAILS = "RssDetailsColor"; //NOI18N
70
    static final String COLOR_HEADER = "HeaderForegroundColor"; //NOI18N
77
    static final String COLOR_HEADER = "HeaderForegroundColor"; //NOI18N
(-)a/welcome/src/org/netbeans/modules/welcome/content/ContentSection.java (+3 lines)
Lines 66-71 Link Here
66
    public ContentSection( String title, JComponent content, boolean maxSize ) {
66
    public ContentSection( String title, JComponent content, boolean maxSize ) {
67
        this( content, maxSize, 0 );
67
        this( content, maxSize, 0 );
68
        JLabel lblTitle = new JLabel( title );
68
        JLabel lblTitle = new JLabel( title );
69
        lblTitle.getAccessibleContext().setAccessibleName( title );
70
        lblTitle.getAccessibleContext().setAccessibleDescription( title );
71
        lblTitle.setToolTipText( title );
69
        lblTitle.setFont( SECTION_HEADER_FONT );
72
        lblTitle.setFont( SECTION_HEADER_FONT );
70
73
71
        lblTitle.setBorder( BorderFactory.createEmptyBorder(0, 0, 20, 0) );
74
        lblTitle.setBorder( BorderFactory.createEmptyBorder(0, 0, 20, 0) );
(-)a/welcome/src/org/netbeans/modules/welcome/content/RSSFeed.java (+1 lines)
Lines 419-424 Link Here
419
                BundleSupport.getAccessibilityName( "WebLink", item.title ) ); //NOI18N
419
                BundleSupport.getAccessibilityName( "WebLink", item.title ) ); //NOI18N
420
        linkButton.getAccessibleContext().setAccessibleDescription( 
420
        linkButton.getAccessibleContext().setAccessibleDescription( 
421
                BundleSupport.getAccessibilityDescription( "WebLink", item.link ) ); //NOI18N
421
                BundleSupport.getAccessibilityDescription( "WebLink", item.link ) ); //NOI18N
422
        linkButton.setToolTipText( BundleSupport.getAccessibilityDescription( "WebLink", item.link ) ); //NOI18N
422
        linkButton.setFont( BUTTON_FONT );
423
        linkButton.setFont( BUTTON_FONT );
423
        panel.add( linkButton, new GridBagConstraints(0,row++,1,1,1.0,0.0,
424
        panel.add( linkButton, new GridBagConstraints(0,row++,1,1,1.0,0.0,
424
                GridBagConstraints.WEST,GridBagConstraints.NONE,
425
                GridBagConstraints.WEST,GridBagConstraints.NONE,
(-)a/welcome/src/org/netbeans/modules/welcome/content/RecentProjectsPanel.java (+1 lines)
Lines 206-211 Link Here
206
        b.getAccessibleContext().setAccessibleName( b.getText() );
206
        b.getAccessibleContext().setAccessibleName( b.getText() );
207
        b.getAccessibleContext().setAccessibleDescription( 
207
        b.getAccessibleContext().setAccessibleDescription( 
208
                BundleSupport.getAccessibilityDescription( "RecentProject", b.getText() ) ); //NOI18N
208
                BundleSupport.getAccessibilityDescription( "RecentProject", b.getText() ) ); //NOI18N
209
        b.setToolTipText( BundleSupport.getAccessibilityDescription( "RecentProject", b.getText() ) ); //NOI18N
209
        b.setIcon(project.getIcon());
210
        b.setIcon(project.getIcon());
210
        panel.add( b, new GridBagConstraints( 0,row,1,1,1.0,0.0,
211
        panel.add( b, new GridBagConstraints( 0,row,1,1,1.0,0.0,
211
            GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(2,2,2,2), 0, 0 ) );
212
            GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(2,2,2,2), 0, 0 ) );
(-)a/welcome/src/org/netbeans/modules/welcome/content/WebLink.java (+7 lines)
Lines 70-75 Link Here
70
                BundleSupport.getAccessibilityName( "WebLink", label ) ); //NOI18N
70
                BundleSupport.getAccessibilityName( "WebLink", label ) ); //NOI18N
71
        getAccessibleContext().setAccessibleDescription(
71
        getAccessibleContext().setAccessibleDescription(
72
                BundleSupport.getAccessibilityDescription( "WebLink", url ) ); //NOI18N
72
                BundleSupport.getAccessibilityDescription( "WebLink", url ) ); //NOI18N
73
        setToolTipText(BundleSupport.getAccessibilityDescription( "WebLink", url ) ); //NOI18N
73
74
74
        setUsageTrackingId(url);
75
        setUsageTrackingId(url);
75
    }
76
    }
Lines 78-83 Link Here
78
        super( label, foreground, showBorder, url );
79
        super( label, foreground, showBorder, url );
79
        this.url = url;
80
        this.url = url;
80
81
82
        getAccessibleContext().setAccessibleName(
83
                BundleSupport.getAccessibilityName( "WebLink", label ) ); //NOI18N
84
        getAccessibleContext().setAccessibleDescription(
85
                BundleSupport.getAccessibilityDescription( "WebLink", url ) ); //NOI18N
86
        setToolTipText(BundleSupport.getAccessibilityDescription( "WebLink", url ) ); //NOI18N
87
81
        setUsageTrackingId(url);
88
        setUsageTrackingId(url);
82
    }
89
    }
83
90
(-)a/welcome/src/org/netbeans/modules/welcome/resources/Bundle.properties (+12 lines)
Lines 149-154 Link Here
149
SectionHeaderColor=0x666A6E
149
SectionHeaderColor=0x666A6E
150
#NOI18N
150
#NOI18N
151
BigButtonColor=0x23569D
151
BigButtonColor=0x23569D
152
#NOI18N
153
StartPageTopStartColor=0x2E6EAC
154
#NOI18N
155
StartPageBottomEndColor=0xF1F6FC
156
#NOI18N
157
BannerLeftColor=0x1C529d
158
#NOI18N
159
BannerRightColor=0x293E6D
160
#NOI18N
161
ContentHeaderGradientStartColor=0xF9FFF9
162
#NOI18N
163
ContentHeaderGradientEndColor=0xEDF1F4
152
164
153
# links & buttons
165
# links & buttons
154
#NOI18N
166
#NOI18N
(-)a/welcome/src/org/netbeans/modules/welcome/ui/ContentHeader.java (-4 / +4 lines)
Lines 72-90 Link Here
72
        IMG_BANNER = ImageUtilities.loadImage(imgName, true);
72
        IMG_BANNER = ImageUtilities.loadImage(imgName, true);
73
        Color c = UIManager.getColor( "nb.startpage.contentheader.color1" ); //NOI18N
73
        Color c = UIManager.getColor( "nb.startpage.contentheader.color1" ); //NOI18N
74
        if( null == c )
74
        if( null == c )
75
            c = new Color( 28, 82, 157 );
75
            c = Utils.getColor( Constants.COL_BANNER_LEFT );
76
        COL_BANNER_LEFT = c;
76
        COL_BANNER_LEFT = c;
77
77
78
        c = UIManager.getColor( "nb.startpage.contentheader.color2" ); //NOI18N
78
        c = UIManager.getColor( "nb.startpage.contentheader.color2" ); //NOI18N
79
        if( null == c )
79
        if( null == c )
80
            c = new Color( 41, 62, 109 );
80
            c = c = Utils.getColor( Constants.COL_BANNER_RIGHT );
81
        COL_BANNER_RIGHT = c;
81
        COL_BANNER_RIGHT = c;
82
    };
82
    };
83
83
84
    private final JLabel lblTitle = new JLabel();
84
    private final JLabel lblTitle = new JLabel();
85
85
86
    private final Color COL_GRADIENT_START = new Color( 249, 255, 249 );
86
    private final Color COL_GRADIENT_START = Utils.getColor( Constants.COL_GRADIENT_START );
87
    private final Color COL_GRADIENT_END = new Color( 237, 241, 244 );
87
    private final Color COL_GRADIENT_END = Utils.getColor( Constants.COL_GRADIENT_END );
88
88
89
    public ContentHeader( String title ) {
89
    public ContentHeader( String title ) {
90
        setLayout( new BorderLayout() );
90
        setLayout( new BorderLayout() );
(-)a/welcome/src/org/netbeans/modules/welcome/ui/DemoPanel.java (+1 lines)
Lines 142-147 Link Here
142
                        BundleSupport.getAccessibilityName( "WebLink", item.title ) ); //NOI18N
142
                        BundleSupport.getAccessibilityName( "WebLink", item.title ) ); //NOI18N
143
                linkButton.getAccessibleContext().setAccessibleDescription(
143
                linkButton.getAccessibleContext().setAccessibleDescription(
144
                        BundleSupport.getAccessibilityDescription( "WebLink", item.link ) ); //NOI18N
144
                        BundleSupport.getAccessibilityDescription( "WebLink", item.link ) ); //NOI18N
145
                linkButton.setToolTipText(BundleSupport.getAccessibilityDescription( "WebLink", item.link ) ); //NOI18N
145
                linkButton.setFont( BUTTON_FONT );
146
                linkButton.setFont( BUTTON_FONT );
146
                panel.add( linkButton, new GridBagConstraints(0,row++,1,1,0.0,0.0,
147
                panel.add( linkButton, new GridBagConstraints(0,row++,1,1,0.0,0.0,
147
                        GridBagConstraints.WEST,GridBagConstraints.NONE,
148
                        GridBagConstraints.WEST,GridBagConstraints.NONE,
(-)a/welcome/src/org/netbeans/modules/welcome/ui/GetStarted.java (+1 lines)
Lines 142-147 Link Here
142
            lb.getAccessibleContext().setAccessibleName( lb.getText() );
142
            lb.getAccessibleContext().setAccessibleName( lb.getText() );
143
            lb.getAccessibleContext().setAccessibleDescription( 
143
            lb.getAccessibleContext().setAccessibleDescription( 
144
                    BundleSupport.getAccessibilityDescription( "GettingStarted", lb.getText() ) ); //NOI18N
144
                    BundleSupport.getAccessibilityDescription( "GettingStarted", lb.getText() ) ); //NOI18N
145
            lb.setToolTipText( BundleSupport.getAccessibilityDescription( "GettingStarted", lb.getText() ) ); //NOI18N
145
            add( panel, new GridBagConstraints( 0,row++,1,1,1.0,0.0,
146
            add( panel, new GridBagConstraints( 0,row++,1,1,1.0,0.0,
146
                GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL,
147
                GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL,
147
                new Insets(0,0,3,0), 0, 0 ) );
148
                new Insets(0,0,3,0), 0, 0 ) );
(-)a/welcome/src/org/netbeans/modules/welcome/ui/PluginsPanel.java (+6 lines)
Lines 90-95 Link Here
90
                new ShowPluginManagerAction("installed").actionPerformed(e); //NOI18N
90
                new ShowPluginManagerAction("installed").actionPerformed(e); //NOI18N
91
            }
91
            }
92
        };
92
        };
93
        b.getAccessibleContext().setAccessibleName( label );
94
        b.getAccessibleContext().setAccessibleDescription( description );
95
        b.setToolTipText(description);
93
        b.setFont(GET_STARTED_FONT);
96
        b.setFont(GET_STARTED_FONT);
94
        add( b, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(0,0,5,5), 0, 0));
97
        add( b, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(0,0,5,5), 0, 0));
95
        add( new JLabel(description), new GridBagConstraints(0, 1, 1, 1, 1.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(20,9,5,5), 0, 0));
98
        add( new JLabel(description), new GridBagConstraints(0, 1, 1, 1, 1.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(20,9,5,5), 0, 0));
Lines 105-110 Link Here
105
                new ShowPluginManagerAction("available").actionPerformed(e); //NOI18N
108
                new ShowPluginManagerAction("available").actionPerformed(e); //NOI18N
106
            }
109
            }
107
        };
110
        };
111
        b.getAccessibleContext().setAccessibleName( label );
112
        b.getAccessibleContext().setAccessibleDescription( description );
113
        b.setToolTipText(description);
108
        b.setFont(GET_STARTED_FONT);
114
        b.setFont(GET_STARTED_FONT);
109
        add( b, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(0,0,5,5), 0, 0));
115
        add( b, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(0,0,5,5), 0, 0));
110
        add( new JLabel(description), new GridBagConstraints(0, 1, 1, 1, 1.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(20,9,5,5), 0, 0));
116
        add( new JLabel(description), new GridBagConstraints(0, 1, 1, 1, 1.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(20,9,5,5), 0, 0));
(-)a/welcome/src/org/netbeans/modules/welcome/ui/StartPageContent.java (-3 / +4 lines)
Lines 57-62 Link Here
57
import javax.swing.JPanel;
57
import javax.swing.JPanel;
58
import javax.swing.UIManager;
58
import javax.swing.UIManager;
59
import org.netbeans.modules.welcome.content.Constants;
59
import org.netbeans.modules.welcome.content.Constants;
60
import org.netbeans.modules.welcome.content.Utils;
60
61
61
/**
62
/**
62
 *
63
 *
Lines 64-74 Link Here
64
 */
65
 */
65
public class StartPageContent extends JPanel implements Constants {
66
public class StartPageContent extends JPanel implements Constants {
66
67
67
    private final static Color COLOR_TOP_START = new Color(46, 110, 172);
68
    private final static Color COLOR_TOP_START = Utils.getColor( Constants.COLOR_TOP_START );
68
    private final static Color COLOR_TOP_END = new Color(255, 255, 255);
69
    private final static Color COLOR_TOP_END = new Color(255, 255, 255);
69
    private final static Color COLOR_BOTTOM_START = new Color(255, 255, 255);
70
    private final static Color COLOR_BOTTOM_START = new Color(255, 255, 255);
70
    private final static Color COLOR_BOTTOM_END = new Color(241, 246, 252);
71
    private final static Color COLOR_BOTTOM_END = Utils.getColor( Constants.COLOR_TOP_START );
71
72
    
72
    public StartPageContent() {
73
    public StartPageContent() {
73
        super( new GridBagLayout() );
74
        super( new GridBagLayout() );
74
75
(-)a/welcome/src/org/netbeans/modules/welcome/ui/TabbedPane.java (+2 lines)
Lines 207-212 Link Here
207
        public TabButton( String title, int tabIndex ) {
207
        public TabButton( String title, int tabIndex ) {
208
            super( new BorderLayout() );
208
            super( new BorderLayout() );
209
            lblTitle.setText( title );
209
            lblTitle.setText( title );
210
            lblTitle.getAccessibleContext().setAccessibleName( title );
211
            lblTitle.getAccessibleContext().setAccessibleDescription( title );
210
            add( lblTitle, BorderLayout.CENTER );
212
            add( lblTitle, BorderLayout.CENTER );
211
            this.tabIndex = tabIndex;
213
            this.tabIndex = tabIndex;
212
            setOpaque( true );
214
            setOpaque( true );
(-)a/welcome/src/org/netbeans/modules/welcome/ui/Tutorials.java (+1 lines)
Lines 133-138 Link Here
133
            //TODO fix acn
133
            //TODO fix acn
134
            lb.getAccessibleContext().setAccessibleDescription( 
134
            lb.getAccessibleContext().setAccessibleDescription( 
135
                    BundleSupport.getAccessibilityDescription( "GettingStarted", lb.getText() ) ); //NOI18N
135
                    BundleSupport.getAccessibilityDescription( "GettingStarted", lb.getText() ) ); //NOI18N
136
            lb.setToolTipText(BundleSupport.getAccessibilityDescription( "GettingStarted", lb.getText() ) ); //NOI18N
136
            add( panel, new GridBagConstraints( 0,row++,1,1,1.0,0.0,
137
            add( panel, new GridBagConstraints( 0,row++,1,1,1.0,0.0,
137
                GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL,
138
                GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL,
138
                new Insets(0,0,7,0), 0, 0 ) );
139
                new Insets(0,0,7,0), 0, 0 ) );

Return to bug 258328