Update fonts license & bug dialog
This commit is contained in:
parent
0e7c088c94
commit
5b2a7f5595
@ -19,6 +19,7 @@ import javax.swing.JLabel;
|
||||
import javax.swing.JPanel;
|
||||
import javax.swing.JScrollPane;
|
||||
import javax.swing.JTextPane;
|
||||
import javax.swing.UIManager;
|
||||
|
||||
import com.jogamp.opengl.JoglVersion;
|
||||
|
||||
@ -72,6 +73,7 @@ public class BugReportDialog extends JDialog {
|
||||
|
||||
final JEditorPane editorPane = new JEditorPane("text/html", formatNewlineHTML(message));
|
||||
editorPane.putClientProperty(JTextPane.HONOR_DISPLAY_PROPERTIES, true);
|
||||
editorPane.setFont(UIManager.getFont("Label.font"));
|
||||
editorPane.setPreferredSize(new Dimension(600, 400));
|
||||
editorPane.setEditable(true);
|
||||
editorPane.setCaretPosition(0); // Scroll to the top by default
|
||||
|
@ -8,6 +8,7 @@ import javax.swing.JDialog;
|
||||
import javax.swing.JFrame;
|
||||
import javax.swing.JLabel;
|
||||
import javax.swing.JPanel;
|
||||
import javax.swing.UIManager;
|
||||
|
||||
import net.miginfocom.swing.MigLayout;
|
||||
import net.sf.openrocket.gui.components.DescriptionArea;
|
||||
@ -138,7 +139,7 @@ public class LicenseDialog extends JDialog {
|
||||
/*****************************************************************************************************************************/
|
||||
|
||||
DescriptionArea info = new DescriptionArea(20);
|
||||
info.setTextFont(null);
|
||||
info.setTextFont(UIManager.getFont("Label.font"));
|
||||
info.setText(orLicense + componentsLicense + fontLicense + commonmarkLicense);
|
||||
panel.add(info, "newline, width 700lp, height 250lp, pushy, grow, spanx, wrap para");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user