Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ public class VerticalLabelUI extends BasicLabelUI {
Rectangle verticalIconR = new Rectangle();
Rectangle verticalTextR = new Rectangle();
protected static VerticalLabelUI verticalLabelUI = new VerticalLabelUI();
private final static VerticalLabelUI SAFE_VERTICAL_LABEL_UI = new VerticalLabelUI();

/**
* Constructs a <code>VerticalLabelUI</code> with the default anticlockwise
Expand All @@ -58,12 +57,7 @@ public VerticalLabelUI(boolean clockwise) {
* @see ComponentUI#createUI(javax.swing.JComponent)
*/
public static ComponentUI createUI(JComponent c) {
if (System.getSecurityManager() != null) {
return SAFE_VERTICAL_LABEL_UI;
}
else {
return verticalLabelUI;
}
return verticalLabelUI;
}

/**
Expand Down
Loading