本文整理了Java中javax.swing.Box.repaint()
方法的一些代码示例,展示了Box.repaint()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Box.repaint()
方法的具体详情如下:
包路径:javax.swing.Box
类名称:Box
方法名:repaint
暂无
代码示例来源:origin: net.sf.mmax2/mmax2
public final void rebuild()
{
Box tempbox = (Box) this.modifiablePanel.getComponent(0);
tempbox.repaint();
modifiablePanel.repaint();
repaint();
}
代码示例来源:origin: cmu-phil/tetrad
public void refreshLabels() {
formulasBox.removeAll();
java.util.List<String> parameters = new ArrayList<>(semPm().getParameters());
Collections.sort(parameters);
for (String parameter : parameters) {
Box c = Box.createHorizontalBox();
final JLabel label = new JLabel(parameter + " ~ " + semPm().getParameterExpressionString(parameter));
final String _parameter = parameter;
label.addMouseListener(new MouseAdapter() {
public void mouseClicked(MouseEvent mouseEvent) {
if (mouseEvent.getClickCount() == 2) {
beginParamEdit(_parameter, label, label);
}
}
});
c.add(label);
c.add(Box.createHorizontalGlue());
formulasBox.add(c);
formulasBox.add(Box.createVerticalStrut(5));
}
formulasBox.setBorder(new CompoundBorder(new TitledBorder("Double click expressions to edit."),
new EmptyBorder(5, 5, 5, 5)));
formulasBox.revalidate();
formulasBox.repaint();
}
代码示例来源:origin: cmu-phil/tetrad
this.main.repaint();
代码示例来源:origin: eseifert/vectorgraphics2d
public void setLeftComponent(JComponent leftComponent) {
if (this.leftComponent != null) {
leftPanel.remove(this.leftComponent);
}
this.leftComponent = leftComponent;
leftPanel.add(leftComponent);
leftPanel.revalidate();
leftPanel.repaint();
}
代码示例来源:origin: eseifert/vectorgraphics2d
public void setRightComponent(JComponent rightComponent) {
if (this.rightComponent != null) {
rightPanel.remove(this.rightComponent);
}
this.rightComponent = rightComponent;
rightPanel.add(rightComponent);
rightPanel.revalidate();
rightPanel.repaint();
}
代码示例来源:origin: cmu-phil/tetrad
public void refreshLabels() {
formulasBox.removeAll();
for (Node node : semPm().getNodes()) {
if (!semPm().getGraph().isParameterizable(node)) {
continue;
}
Box c = Box.createHorizontalBox();
String symbol = node.getNodeType() == NodeType.ERROR ? " ~ " : " = ";
final JLabel label = new JLabel(node + symbol + semPm().getNodeExpressionString(node));
c.add(label);
c.add(Box.createHorizontalGlue());
final Node _node = node;
label.addMouseListener(new MouseAdapter() {
public void mouseClicked(MouseEvent mouseEvent) {
if (mouseEvent.getClickCount() == 2) {
beginNodeEdit(_node, label, label);
}
}
});
formulasBox.add(c);
formulasBox.add(Box.createVerticalStrut(5));
}
formulasBox.revalidate();
formulasBox.repaint();
formulasBox.setBorder(new CompoundBorder(new TitledBorder("Double click expressions to edit."),
new EmptyBorder(5, 5, 5, 5)));
}
代码示例来源:origin: cmu-phil/tetrad
formulasBox.repaint();
代码示例来源:origin: cmu-phil/tetrad
equationsBox.repaint();
代码示例来源:origin: net.sf.mmax2/mmax2
markableLevelBox.repaint();
numMarkableLevels++;
updateCreateProjectButton();
markableLevelBox.repaint();
numMarkableLevels--;
updateCreateProjectButton();
container.add(comp,levelToMove-1);
markableLevelBox.repaint();
updateCreateProjectButton();
setVisible(true);
container.add(comp,levelToMove+1);
markableLevelBox.repaint();
updateCreateProjectButton();
setVisible(true);
内容来源于网络,如有侵权,请联系作者删除!