Skip to content

Commit 3c7f365

Browse files
committed
use Font.MONOSPACED constatnt
1 parent d7b5da3 commit 3c7f365

File tree

10 files changed

+11
-11
lines changed

10 files changed

+11
-11
lines changed

visualvm/appui/src/org/graalvm/visualvm/modules/appui/about/TextViewerComponent.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public TextViewerComponent() {
7878
setEditable(false);
7979
setOpaque(true);
8080
setAutoscrolls(true);
81-
setFont(new Font("Monospaced", Font.PLAIN, UIManager.getFont("Label.font").getSize())); // NOI18N
81+
setFont(new Font(Font.MONOSPACED, Font.PLAIN, UIManager.getFont("Label.font").getSize())); // NOI18N
8282
setBackground(UISupport.getDefaultBackground());
8383
addMouseListener(this);
8484
}

visualvm/jmx/src/org/graalvm/visualvm/jmx/impl/CredentialsConfigurator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ private void initComponents(String url) {
120120

121121
// urlLabel
122122
urlLabel = new JLabel(url);
123-
// urlLabel.setFont(new Font("Monospaced", Font.PLAIN, urlLabel.getFont().getSize())); // NOI18N
123+
// urlLabel.setFont(new Font(Font.MONOSPACED, Font.PLAIN, urlLabel.getFont().getSize()));
124124
constraints = new GridBagConstraints();
125125
constraints.gridx = 0;
126126
constraints.gridy = 1;

visualvm/libs.profiler/profiler/src/org/graalvm/visualvm/lib/profiler/v2/features/MethodsFeatureModes.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,7 +1107,7 @@ public Point getToolTipLocation(MouseEvent event) {
11071107
return SwingUtilities.convertPoint(scroll, 0, scroll.getHeight(), this);
11081108
}
11091109
};
1110-
classesArea.setFont(new Font("Monospaced", Font.PLAIN, classesArea.getFont().getSize())); // NOI18N
1110+
classesArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, classesArea.getFont().getSize()));
11111111
classesArea.setRows(readRows());
11121112
classesArea.setColumns(readColumns1());
11131113
JScrollPane classesScroll = new JScrollPane(classesArea);
@@ -1209,7 +1209,7 @@ public Point getToolTipLocation(MouseEvent event) {
12091209
return SwingUtilities.convertPoint(scroll, 0, scroll.getHeight(), this);
12101210
}
12111211
};
1212-
filterArea.setFont(new Font("Monospaced", Font.PLAIN, classesArea.getFont().getSize())); // NOI18N
1212+
filterArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, classesArea.getFont().getSize()));
12131213
filterArea.setRows(readRows());
12141214
filterArea.setColumns(readColumns2());
12151215
JScrollPane filterScroll = new JScrollPane(filterArea);

visualvm/libs.profiler/profiler/src/org/graalvm/visualvm/lib/profiler/v2/features/ObjectsFeatureModes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ public Point getToolTipLocation(MouseEvent event) {
867867
return SwingUtilities.convertPoint(scroll, 0, scroll.getHeight(), this);
868868
}
869869
};
870-
classesArea.setFont(new Font("Monospaced", Font.PLAIN, classesArea.getFont().getSize())); // NOI18N
870+
classesArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, classesArea.getFont().getSize()));
871871
classesArea.setRows(readRows());
872872
classesArea.setColumns(readColumns());
873873
container[0] = new JScrollPane(classesArea);

visualvm/libs.profiler/profiler/src/org/graalvm/visualvm/lib/profiler/v2/features/SQLFeatureModes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ public Point getToolTipLocation(MouseEvent event) {
245245
return SwingUtilities.convertPoint(scroll, 0, scroll.getHeight(), this);
246246
}
247247
};
248-
filterArea.setFont(new Font("Monospaced", Font.PLAIN, filterArea.getFont().getSize())); // NOI18N
248+
filterArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, filterArea.getFont().getSize()));
249249
filterArea.setRows(readRows());
250250
filterArea.setColumns(readColumns());
251251
container[0] = new JScrollPane(filterArea);

visualvm/libs.profiler/profiler/src/org/graalvm/visualvm/lib/profiler/v2/impl/FilterSelector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ public void setEnabled(boolean enabled) {
246246
if (insertFilter != null) insertFilter.setEnabled(enabled);
247247
}
248248
};
249-
customClasses.setFont(new Font("Monospaced", Font.PLAIN, customClasses.getFont().getSize())); // NOI18N
249+
customClasses.setFont(new Font(Font.MONOSPACED, Font.PLAIN, customClasses.getFont().getSize()));
250250
customClasses.setRows(0);
251251
customClasses.setColumns(0);
252252
JScrollPane customClassesScroll = new JScrollPane(customClasses);

visualvm/profiling/src/org/graalvm/visualvm/profiling/presets/ProfilerCPUPanel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ private static void setText(AbstractButton b, String text, boolean mnemonics) {
319319

320320
private static TextAreaComponent createTextArea(int rows) {
321321
final JTextArea rootsArea = new JTextArea();
322-
rootsArea.setFont(new Font("Monospaced", Font.PLAIN, UIManager.getFont("Label.font").getSize())); // NOI18N
322+
rootsArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, UIManager.getFont("Label.font").getSize())); // NOI18N
323323
TextAreaComponent rootsAreaScrollPane = new TextAreaComponent(rootsArea,
324324
JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
325325
JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED) {

visualvm/profiling/src/org/graalvm/visualvm/profiling/presets/ProfilerJDBCPanel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ private static void setText(JLabel l, String text, boolean mnemonics) {
219219

220220
private static TextAreaComponent createTextArea(int rows) {
221221
final JTextArea rootsArea = new JTextArea();
222-
rootsArea.setFont(new Font("Monospaced", Font.PLAIN, UIManager.getFont("Label.font").getSize())); // NOI18N
222+
rootsArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, UIManager.getFont("Label.font").getSize())); // NOI18N
223223
TextAreaComponent rootsAreaScrollPane = new TextAreaComponent(rootsArea,
224224
JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
225225
JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED) {

visualvm/profiling/src/org/graalvm/visualvm/profiling/presets/ProfilerMemoryPanel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ private static void setText(JLabel l, String text, boolean mnemonics) {
325325

326326
private static TextAreaComponent createTextArea(int rows) {
327327
final JTextArea rootsArea = new JTextArea();
328-
rootsArea.setFont(new Font("Monospaced", Font.PLAIN, UIManager.getFont("Label.font").getSize())); // NOI18N
328+
rootsArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, UIManager.getFont("Label.font").getSize())); // NOI18N
329329
TextAreaComponent rootsAreaScrollPane = new TextAreaComponent(rootsArea,
330330
JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
331331
JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED) {

visualvm/profiling/src/org/graalvm/visualvm/profiling/presets/SamplerCPUPanel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ private static void setText(AbstractButton b, String text, boolean mnemonics) {
402402

403403
private static TextAreaComponent createTextArea(int rows) {
404404
final JTextArea rootsArea = new JTextArea();
405-
rootsArea.setFont(new Font("Monospaced", Font.PLAIN, // NOI18N
405+
rootsArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN,
406406
UIManager.getFont("Label.font").getSize())); // NOI18N
407407
TextAreaComponent rootsAreaScrollPane = new TextAreaComponent(rootsArea,
408408
JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,

0 commit comments

Comments
 (0)