private void jbInit() throws Exception
{
- lineart.setFont(new java.awt.Font("Verdana", Font.PLAIN, 11));
+ lineart.setFont(JvSwingUtils.getLabelFont());
lineart.setText("Lineart");
- text.setFont(new java.awt.Font("Verdana", Font.PLAIN, 11));
+ text.setFont(JvSwingUtils.getLabelFont());
text.setText("Text");
text.setSelected(true);
- askAgain.setFont(new java.awt.Font("Verdana", Font.PLAIN, 11));
+ askAgain.setFont(JvSwingUtils.getLabelFont());
askAgain.setText("Don\'t ask me again");
ok.setText("OK");
ok.addActionListener(new ActionListener()
cancel_actionPerformed(e);
}
});
- jLabel1.setFont(new java.awt.Font("Verdana", Font.PLAIN, 11));
+ jLabel1.setFont(JvSwingUtils.getLabelFont());
jLabel1.setText("Select EPS character rendering style");
this.setLayout(borderLayout1);
jPanel3.setBorder(BorderFactory.createEtchedBorder());
private void jbInit() throws Exception
{
- minColour.setFont(new java.awt.Font("Verdana", Font.PLAIN, 11));
+ minColour.setFont(JvSwingUtils.getLabelFont());
minColour.setBorder(BorderFactory.createLineBorder(Color.black));
minColour.setPreferredSize(new Dimension(40, 20));
minColour.setToolTipText("Minimum Colour");
}
}
});
- maxColour.setFont(new java.awt.Font("Verdana", Font.PLAIN, 11));
+ maxColour.setFont(JvSwingUtils.getLabelFont());
maxColour.setBorder(BorderFactory.createLineBorder(Color.black));
maxColour.setPreferredSize(new Dimension(40, 20));
maxColour.setToolTipText("Maximum Colour");
});
maxColour.setBorder(new LineBorder(Color.black));
minText.setText("Min:");
- minText.setFont(new java.awt.Font("Verdana", Font.PLAIN, 11));
+ minText.setFont(JvSwingUtils.getLabelFont());
maxText.setText("Max:");
- maxText.setFont(new java.awt.Font("Verdana", Font.PLAIN, 11));
+ maxText.setFont(JvSwingUtils.getLabelFont());
this.setLayout(borderLayout1);
jPanel2.setLayout(flowLayout1);
jPanel1.setBackground(Color.white);
panel = new JPanel();
panel.add(new JLabel("Description: ", JLabel.RIGHT));
- description.setFont(new java.awt.Font("Verdana", Font.PLAIN, 11));
+ description.setFont(JvSwingUtils.getTextAreaFont());
description.setLineWrap(true);
panel.add(new JScrollPane(description));
settingsPane.setLayout(borderLayout2);
dasSettingsPane.setLayout(borderLayout3);
bigPanel.setLayout(borderLayout4);
- invert.setFont(new java.awt.Font("Verdana", Font.PLAIN, 11));
+ invert.setFont(JvSwingUtils.getLabelFont());
invert.setText("Invert Selection");
invert.addActionListener(new ActionListener()
{
invertSelection();
}
});
- optimizeOrder.setFont(new java.awt.Font("Verdana", Font.PLAIN, 11));
+ optimizeOrder.setFont(JvSwingUtils.getLabelFont());
optimizeOrder.setText("Optimise Order");
optimizeOrder.addActionListener(new ActionListener()
{
orderByAvWidth();
}
});
- sortByScore.setFont(new java.awt.Font("Verdana", Font.PLAIN, 11));
+ sortByScore.setFont(JvSwingUtils.getLabelFont());
sortByScore.setText("Seq sort by Score");
sortByScore.addActionListener(new ActionListener()
{
sortByScore(null);
}
});
- sortByDens.setFont(new java.awt.Font("Verdana", Font.PLAIN, 11));
+ sortByDens.setFont(JvSwingUtils.getLabelFont());
sortByDens.setText("Seq Sort by density");
sortByDens.addActionListener(new ActionListener()
{
sortByDens(null);
}
});
- cancel.setFont(new java.awt.Font("Verdana", Font.PLAIN, 11));
+ cancel.setFont(JvSwingUtils.getLabelFont());
cancel.setText("Cancel");
cancel.addActionListener(new ActionListener()
{
close();
}
});
- ok.setFont(new java.awt.Font("Verdana", Font.PLAIN, 11));
+ ok.setFont(JvSwingUtils.getLabelFont());
ok.setText("OK");
ok.addActionListener(new ActionListener()
{
close();
}
});
- loadColours.setFont(new java.awt.Font("Verdana", Font.PLAIN, 11));
+ loadColours.setFont(JvSwingUtils.getLabelFont());
loadColours.setText("Load Colours");
loadColours.addActionListener(new ActionListener()
{
load();
}
});
- saveColours.setFont(new java.awt.Font("Verdana", Font.PLAIN, 11));
+ saveColours.setFont(JvSwingUtils.getLabelFont());
saveColours.setText("Save Colours");
saveColours.addActionListener(new ActionListener()
{
{
this.setLayout(borderLayout2);
- database.setFont(new java.awt.Font("Verdana", Font.PLAIN, 11));
+ database.setFont(JvSwingUtils.getLabelFont());
dbeg.setFont(new java.awt.Font("Verdana", Font.BOLD, 11));
jLabel1.setFont(new java.awt.Font("Verdana", Font.ITALIC, 11));
jLabel1.setHorizontalAlignment(SwingConstants.CENTER);
close_actionPerformed(e);
}
});
- textArea.setFont(new java.awt.Font("Verdana", Font.PLAIN, 11));
+ textArea.setFont(JvSwingUtils.getLabelFont());
textArea.setLineWrap(true);
textArea.addKeyListener(new KeyAdapter()
{
*/
package jalview.jbgui;
+import jalview.gui.JvSwingUtils;
+
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
private void jbInit() throws Exception
{
scrollPane.setBorder(null);
- ok.setFont(new java.awt.Font("Verdana", Font.PLAIN, 11));
+ ok.setFont(JvSwingUtils.getLabelFont());
ok.setText("New Window");
ok.addActionListener(new ActionListener()
{
*/
package jalview.jbgui;
+import jalview.gui.JvSwingUtils;
+
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
jPanel3.setOpaque(false);
jPanel3.setBounds(new Rectangle(174, 38, 134, 21));
jPanel3.setLayout(borderLayout2);
- defaultButton.setFont(new java.awt.Font("Verdana", Font.PLAIN, 11));
+ defaultButton.setFont(JvSwingUtils.getLabelFont());
defaultButton.setText("Set as Default");
defaultButton.addActionListener(new ActionListener()
{
defaultButton_actionPerformed(e);
}
});
- smoothFont.setFont(new java.awt.Font("Verdana", Font.PLAIN, 11));
+ smoothFont.setFont(JvSwingUtils.getLabelFont());
smoothFont.setOpaque(false);
smoothFont.setText("Anti-alias Fonts (Slower to render)");
smoothFont.setBounds(new Rectangle(41, 65, 223, 23));
}
});
monospaced.setEnabled(false);
- monospaced.setFont(new java.awt.Font("Verdana", Font.PLAIN, 11));
+ monospaced.setFont(JvSwingUtils.getLabelFont());
monospaced.setOpaque(false);
monospaced.setToolTipText("Monospaced fonts are faster to render");
monospaced.setText("Monospaced");
JPanel jPanel11 = new JPanel();
- Font verdana11 = new java.awt.Font("Verdana", Font.PLAIN, 11);
+ Font verdana11 = JvSwingUtils.getLabelFont();
protected JCheckBox seqLimit = new JCheckBox();
smoothFont.setHorizontalTextPosition(SwingConstants.LEADING);
smoothFont.setText("Smooth Font");
calcTab.setLayout(null);
- autoCalculateConsCheck.setFont(new java.awt.Font("Verdana", Font.PLAIN,
- 11));
+ autoCalculateConsCheck.setFont(JvSwingUtils.getLabelFont());
autoCalculateConsCheck.setText("AutoCalculate Consensus");
autoCalculateConsCheck.setBounds(new Rectangle(21, 52, 209, 23));
- padGaps.setFont(new java.awt.Font("Verdana", Font.PLAIN, 11));
+ padGaps.setFont(JvSwingUtils.getLabelFont());
padGaps.setText("Pad gaps when editing");
padGaps.setBounds(new Rectangle(22, 94, 168, 23));
- modellerOutput.setFont(new java.awt.Font("Verdana", Font.PLAIN, 11));
+ modellerOutput.setFont(JvSwingUtils.getLabelFont());
modellerOutput.setText("Use Modeller Output");
modellerOutput.setBounds(new Rectangle(228, 226, 168, 23));
dasPanel.setLayout(borderLayout4);
wsPanel.setLayout(borderLayout5);
- wrap.setFont(new java.awt.Font("Verdana", Font.PLAIN, 11));
+ wrap.setFont(JvSwingUtils.getLabelFont());
wrap.setHorizontalAlignment(SwingConstants.TRAILING);
wrap.setHorizontalTextPosition(SwingConstants.LEADING);
wrap.setText("Wrap Alignment");
- rightAlign.setFont(new java.awt.Font("Verdana", Font.PLAIN, 11));
+ rightAlign.setFont(JvSwingUtils.getLabelFont());
rightAlign.setForeground(Color.black);
rightAlign.setHorizontalAlignment(SwingConstants.RIGHT);
rightAlign.setHorizontalTextPosition(SwingConstants.LEFT);
rightAlign.setText("Right Align Ids");
- idItalics.setFont(new java.awt.Font("Verdana", Font.PLAIN, 11));
+ idItalics.setFont(JvSwingUtils.getLabelFont());
idItalics.setHorizontalAlignment(SwingConstants.RIGHT);
idItalics.setHorizontalTextPosition(SwingConstants.LEADING);
idItalics.setText("Sequence Name Italics");
- openoverv.setFont(new java.awt.Font("Verdana", Font.PLAIN, 11));
+ openoverv.setFont(JvSwingUtils.getLabelFont());
openoverv.setActionCommand("Open Overview");
openoverv.setHorizontalAlignment(SwingConstants.RIGHT);
openoverv.setHorizontalTextPosition(SwingConstants.LEFT);
*/
package jalview.jbgui;
+import jalview.gui.JvSwingUtils;
import jalview.util.UrlLink;
import java.awt.*;
private void jbInit() throws Exception
{
this.setLayout(gridBagLayout1);
- nameTB.setFont(new java.awt.Font("Verdana", Font.PLAIN, 11));
+ nameTB.setFont(JvSwingUtils.getLabelFont());
nameTB.setBounds(new Rectangle(77, 10, 310, 23));
nameTB.addKeyListener(new KeyAdapter()
{
nameTB_keyTyped(e);
}
});
- urlTB.setFont(new java.awt.Font("Verdana", Font.PLAIN, 11));
+ urlTB.setFont(JvSwingUtils.getLabelFont());
urlTB.setText("http://www.");
urlTB.setBounds(new Rectangle(78, 40, 309, 23));
urlTB.addKeyListener(new KeyAdapter()
urlTB_keyTyped(e);
}
});
- jLabel1.setFont(new java.awt.Font("Verdana", Font.PLAIN, 11));
+ jLabel1.setFont(JvSwingUtils.getLabelFont());
jLabel1.setHorizontalAlignment(SwingConstants.TRAILING);
jLabel1.setText("Link Name");
jLabel1.setBounds(new Rectangle(4, 10, 71, 24));
- jLabel2.setFont(new java.awt.Font("Verdana", Font.PLAIN, 11));
+ jLabel2.setFont(JvSwingUtils.getLabelFont());
jLabel2.setHorizontalAlignment(SwingConstants.TRAILING);
jLabel2.setText("URL");
jLabel2.setBounds(new Rectangle(17, 37, 54, 27));
*/
package jalview.jbgui;
+import jalview.gui.JvSwingUtils;
+
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
savebutton_actionPerformed(e);
}
});
- cancelButton.setFont(new java.awt.Font("Verdana", 0, 11));
+ cancelButton.setFont(JvSwingUtils.getLabelFont());
cancelButton.setText("Cancel");
cancelButton.addActionListener(new java.awt.event.ActionListener()
{
lowerPanel.setOpaque(false);
lowerPanel.setLayout(borderLayout3);
colorChooser.setOpaque(false);
- jLabel1.setFont(new java.awt.Font("Verdana", Font.PLAIN, 11));
+ jLabel1.setFont(JvSwingUtils.getLabelFont());
jLabel1.setText("Name");
namePanel.setMinimumSize(new Dimension(300, 31));
namePanel.setOpaque(false);
namePanel.setPreferredSize(new Dimension(240, 25));
namePanel.setLayout(borderLayout1);
- schemeName.setFont(new java.awt.Font("Verdana", Font.PLAIN, 11));
+ schemeName.setFont(JvSwingUtils.getLabelFont());
schemeName.setPreferredSize(new Dimension(105, 21));
schemeName.setText("");
schemeName.setHorizontalAlignment(SwingConstants.CENTER);
wsMenuRefreshButs.add(resetWs, null);
wsMenuRefreshButs.add(progressBar, null);
myBorderlayout.setHgap(3);
- if (false) {
+ if (true) {
JTabbedPane listPanels=new JTabbedPane();
listPanels.addTab("JABAWS Servers",wsListPanel);
listPanels.addTab("RSB Services", srbsListPanel);