Lines 44-49
Link Here
|
44 |
|
44 |
|
45 |
import java.awt.Cursor; |
45 |
import java.awt.Cursor; |
46 |
import javax.swing.JPanel; |
46 |
import javax.swing.JPanel; |
|
|
47 |
import org.openide.util.NbBundle.Messages; |
48 |
import static org.netbeans.modules.hudson.ui.notification.Bundle.*; |
47 |
|
49 |
|
48 |
class ProblemPanel extends JPanel { |
50 |
class ProblemPanel extends JPanel { |
49 |
|
51 |
|
Lines 60-65
Link Here
|
60 |
ignore.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); |
62 |
ignore.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); |
61 |
} |
63 |
} |
62 |
|
64 |
|
|
|
65 |
@Messages( |
66 |
// XXX not yet really supported by form editor |
67 |
{"ProblemPanel.ignore.text=<html><u>Ignore"} |
68 |
) |
63 |
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents |
69 |
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents |
64 |
private void initComponents() { |
70 |
private void initComponents() { |
65 |
|
71 |
|
Lines 76-82
Link Here
|
76 |
showFailure.setFocusPainted(false); |
82 |
showFailure.setFocusPainted(false); |
77 |
showFailure.setFocusable(false); |
83 |
showFailure.setFocusable(false); |
78 |
showFailure.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); |
84 |
showFailure.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); |
79 |
showFailure.setOpaque(false); |
|
|
80 |
showFailure.addActionListener(new java.awt.event.ActionListener() { |
85 |
showFailure.addActionListener(new java.awt.event.ActionListener() { |
81 |
public void actionPerformed(java.awt.event.ActionEvent evt) { |
86 |
public void actionPerformed(java.awt.event.ActionEvent evt) { |
82 |
showFailureActionPerformed(evt); |
87 |
showFailureActionPerformed(evt); |
Lines 84-97
Link Here
|
84 |
}); |
89 |
}); |
85 |
|
90 |
|
86 |
ignore.setForeground(java.awt.Color.blue); |
91 |
ignore.setForeground(java.awt.Color.blue); |
87 |
ignore.setText(org.openide.util.NbBundle.getMessage(ProblemPanel.class, "ProblemPanel.ignore.text")); // NOI18N |
92 |
ignore.setText(ProblemPanel_ignore_text()); |
88 |
ignore.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1)); |
93 |
ignore.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1)); |
89 |
ignore.setBorderPainted(false); |
94 |
ignore.setBorderPainted(false); |
90 |
ignore.setContentAreaFilled(false); |
95 |
ignore.setContentAreaFilled(false); |
91 |
ignore.setFocusPainted(false); |
96 |
ignore.setFocusPainted(false); |
92 |
ignore.setFocusable(false); |
97 |
ignore.setFocusable(false); |
93 |
ignore.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); |
98 |
ignore.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); |
94 |
ignore.setOpaque(false); |
|
|
95 |
ignore.addActionListener(new java.awt.event.ActionListener() { |
99 |
ignore.addActionListener(new java.awt.event.ActionListener() { |
96 |
public void actionPerformed(java.awt.event.ActionEvent evt) { |
100 |
public void actionPerformed(java.awt.event.ActionEvent evt) { |
97 |
ignoreActionPerformed(evt); |
101 |
ignoreActionPerformed(evt); |
Lines 103-116
Link Here
|
103 |
layout.setHorizontalGroup( |
107 |
layout.setHorizontalGroup( |
104 |
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
108 |
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
105 |
.addComponent(showFailure, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) |
109 |
.addComponent(showFailure, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) |
106 |
.addComponent(ignore, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) |
110 |
.addComponent(ignore) |
107 |
); |
111 |
); |
108 |
layout.setVerticalGroup( |
112 |
layout.setVerticalGroup( |
109 |
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
113 |
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
110 |
.addGroup(layout.createSequentialGroup() |
114 |
.addGroup(layout.createSequentialGroup() |
111 |
.addComponent(showFailure, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) |
115 |
.addComponent(showFailure, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) |
112 |
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) |
116 |
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) |
113 |
.addComponent(ignore, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) |
117 |
.addComponent(ignore)) |
114 |
); |
118 |
); |
115 |
}// </editor-fold>//GEN-END:initComponents |
119 |
}// </editor-fold>//GEN-END:initComponents |
116 |
|
120 |
|