Trivial code cleanup
This commit is contained in:
parent
80c6bd812b
commit
558366e3da
1 changed files with 9 additions and 8 deletions
|
@ -3,6 +3,7 @@ package net.vhati.modmanager.ui;
|
|||
import java.awt.Color;
|
||||
import java.awt.Cursor;
|
||||
import java.awt.Desktop;
|
||||
import java.awt.Font;
|
||||
import java.awt.event.MouseEvent;
|
||||
import java.net.URI;
|
||||
import javax.swing.JScrollPane;
|
||||
|
@ -156,7 +157,7 @@ public class ModInfoArea extends JScrollPane {
|
|||
}
|
||||
}
|
||||
catch ( BadLocationException e ) {
|
||||
log.error( "Error filling info text area.", e );
|
||||
log.error( "Error filling info text area", e );
|
||||
}
|
||||
|
||||
textPane.setCaretPosition( 0 );
|
||||
|
@ -172,7 +173,7 @@ public class ModInfoArea extends JScrollPane {
|
|||
doc.remove( 0, doc.getLength() );
|
||||
}
|
||||
catch ( BadLocationException e ) {
|
||||
log.error( "Error clearing info text area.", e );
|
||||
log.error( "Error clearing info text area", e );
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -209,7 +210,7 @@ public class ModInfoArea extends JScrollPane {
|
|||
Style baseStyle = result.addStyle( "base", defaultStyle );
|
||||
|
||||
Style regularStyle = result.addStyle( STYLE_REGULAR, baseStyle );
|
||||
StyleConstants.setFontFamily( regularStyle, "Monospaced" );
|
||||
StyleConstants.setFontFamily( regularStyle, Font.MONOSPACED );
|
||||
StyleConstants.setFontSize( regularStyle, 12 );
|
||||
|
||||
Style hyperStyle = result.addStyle( STYLE_HYPERLINK, regularStyle );
|
||||
|
@ -217,7 +218,7 @@ public class ModInfoArea extends JScrollPane {
|
|||
StyleConstants.setUnderline( hyperStyle, true );
|
||||
|
||||
Style titleStyle = result.addStyle( STYLE_TITLE, baseStyle );
|
||||
StyleConstants.setFontFamily( titleStyle, "SansSerif" );
|
||||
StyleConstants.setFontFamily( titleStyle, Font.SANS_SERIF );
|
||||
StyleConstants.setFontSize( titleStyle, 24 );
|
||||
StyleConstants.setBold( titleStyle, true );
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue