summaryrefslogtreecommitdiff
path: root/src/cuchaz/enigma/gui/GuiTricks.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/cuchaz/enigma/gui/GuiTricks.java')
-rw-r--r--src/cuchaz/enigma/gui/GuiTricks.java25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/cuchaz/enigma/gui/GuiTricks.java b/src/cuchaz/enigma/gui/GuiTricks.java
new file mode 100644
index 0000000..c79f432
--- /dev/null
+++ b/src/cuchaz/enigma/gui/GuiTricks.java
@@ -0,0 +1,25 @@
1/*******************************************************************************
2 * Copyright (c) 2014 Jeff Martin.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the GNU Public License v3.0
5 * which accompanies this distribution, and is available at
6 * http://www.gnu.org/licenses/gpl.html
7 *
8 * Contributors:
9 * Jeff Martin - initial API and implementation
10 ******************************************************************************/
11package cuchaz.enigma.gui;
12
13import java.awt.Font;
14
15import javax.swing.JLabel;
16
17public class GuiTricks
18{
19 public static JLabel unboldLabel( JLabel label )
20 {
21 Font font = label.getFont();
22 label.setFont( font.deriveFont( font.getStyle() & ~Font.BOLD ) );
23 return label;
24 }
25}