本文整理了Java中javax.swing.JTabbedPane.repaint()
方法的一些代码示例,展示了JTabbedPane.repaint()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTabbedPane.repaint()
方法的具体详情如下:
包路径:javax.swing.JTabbedPane
类名称:JTabbedPane
方法名:repaint
暂无
代码示例来源:origin: knowm/XChart
@Override
public void run() {
realtimeChart.updateData();
tabbedPane.revalidate();
tabbedPane.repaint();
}
};
代码示例来源:origin: UNIVALI-LITE/Portugol-Studio
@Override
public void focusGained ( final FocusEvent e )
{
tabPane.repaint ();
}
代码示例来源:origin: UNIVALI-LITE/Portugol-Studio
@Override
public void focusLost ( final FocusEvent e )
{
tabPane.repaint ();
}
};
代码示例来源:origin: com.jtattoo/JTattoo
public void propertyChange(PropertyChangeEvent evt) {
if ("font".equals(evt.getPropertyName()) || "text".equals(evt.getPropertyName())) {
tabPane.revalidate();
tabPane.repaint();
}
}
}
代码示例来源:origin: com.eas.platypus/platypus-js-forms
public void add(JComponent aComp, String aText) {
super.addTab(aText, aComp);
super.revalidate();
super.repaint();
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/toniclf
public void stateChanged(ChangeEvent e)
{
JTabbedPane tabPane= (JTabbedPane) e.getSource();
tabPane.revalidate();
tabPane.repaint();
}
}
代码示例来源:origin: edu.toronto.cs.medsavant/medsavant-client
private void checkRollOver() {
int currentRollOver = getRolloverTab();
if (currentRollOver != lastRollOverTab) {
lastRollOverTab = currentRollOver;
Rectangle tabsRect = new Rectangle(0, 0, tabPane.getWidth(), 20);
tabPane.repaint(tabsRect);
}
}
}
代码示例来源:origin: edu.toronto.cs.medsavant/medsavant-client
private void checkRollOver() {
int currentRollOver = getRolloverTab();
if (currentRollOver != lastRollOverTab) {
lastRollOverTab = currentRollOver;
Rectangle tabsRect = new Rectangle(0, 0, tabPane.getWidth(), 20);
tabPane.repaint(tabsRect);
}
}
}
代码示例来源:origin: net.sf.nimrod/nimrod-laf
public void mouseMoved( MouseEvent e) {
rollover = tabForCoordinate( tabPane, e.getX(), e.getY());
// Esto es para limitar el numero de veces que se redibuja el panel
// Un boton se puede pintar muchas veces porque es peque�o y gasta poco, pero esto es un panel que puede tener cienes y cienes de controles,
// asi que cada vez que se repinta gasta lo suyo
if ( (rollover == -1) && (antRollover == rollover) ) {
return;
}
tabPane.repaint();
antRollover = rollover;
}
}
代码示例来源:origin: khuxtable/seaglass
/**
* Scroll the tab buttons backwards.
*/
protected void scrollBackward() {
int selectedIndex = tabPane.getSelectedIndex();
if (--selectedIndex < 0) {
tabPane.setSelectedIndex(tabPane.getTabCount() == 0 ? -1 : 0);
} else {
tabPane.setSelectedIndex(selectedIndex);
}
tabPane.repaint();
}
代码示例来源:origin: khuxtable/seaglass
/**
* Scroll the tab buttons forwards.
*/
protected void scrollForward() {
int selectedIndex = tabPane.getSelectedIndex();
if (++selectedIndex >= tabPane.getTabCount()) {
tabPane.setSelectedIndex(tabPane.getTabCount() - 1);
} else {
tabPane.setSelectedIndex(selectedIndex);
}
tabPane.repaint();
}
代码示例来源:origin: com.eas.platypus/platypus-js-forms
@ScriptFunction(jsDoc = ADD_JSDOC, params = {"component", "text", "icon"})
public void add(JComponent aComp, String aText, Icon aIcon) {
if (aComp != null) {
super.addTab(aText, aIcon, aComp);
super.revalidate();
super.repaint();
}
}
代码示例来源:origin: edu.toronto.cs.medsavant/medsavant-client
private void checkRollOver() {
int currentRollOver = getRolloverTab();
if (currentRollOver != lastRollOverTab) {
lastRollOverTab = currentRollOver;
Rectangle tabsRect = new Rectangle(0, 0, tabPane.getWidth(), tabPane.getHeight());
tabPane.repaint(tabsRect);
}
}
}
代码示例来源:origin: com.synaptix/SynaptixSwing
public void stateChanged(ChangeEvent e) {
resetTabItems();
JTabbedPane tabPane = (JTabbedPane) e.getSource();
tabPane.revalidate();
tabPane.repaint(0, 0, tabPane.getWidth(), TAB_AREA_HEIGHT);
}
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/toniclf
public void focusLost(FocusEvent e)
{
JTabbedPane tabPane= (JTabbedPane) e.getSource();
// To get around bug in JDK1.1.5 where FocusEvents are
// not properly posted asynchronously to the queue
int tabCount= tabPane.getTabCount();
if (tabCount > 0 && tabCount == rects.length)
{
tabPane.repaint(rects[tabPane.getSelectedIndex()]);
}
}
}
代码示例来源:origin: com.jtattoo/JTattoo
public void focusLost(FocusEvent e) {
JTabbedPane tabPane = (JTabbedPane) e.getSource();
int tabCount = tabPane.getTabCount();
int selectedIndex = tabPane.getSelectedIndex();
if (selectedIndex != -1 && tabCount > 0 && tabCount == rects.length) {
tabPane.repaint(getTabBounds(tabPane, selectedIndex));
}
}
}
代码示例来源:origin: com.jtattoo/JTattoo
public void focusGained(FocusEvent e) {
JTabbedPane tabPane = (JTabbedPane) e.getSource();
int tabCount = tabPane.getTabCount();
int selectedIndex = tabPane.getSelectedIndex();
if (selectedIndex != -1 && tabCount > 0 && tabCount == rects.length) {
tabPane.repaint(getTabBounds(tabPane, selectedIndex));
}
}
代码示例来源:origin: org.qi4j.tool/org.qi4j.tool.envisage
@Override
public void componentResized( ComponentEvent evt )
{
Dimension size = GraphPane.this.getSize();
treeDisplay.setSize( size.width, size.height );
tabPane.revalidate();
tabPane.repaint();
}
} );
代码示例来源:origin: com.eas.platypus/platypus-js-forms
@ScriptFunction(jsDoc = REMOVE_JSDOC, params = {"component"})
@Override
public void remove(JComponent aComp) {
super.remove(aComp);
super.revalidate();
super.repaint();
}
代码示例来源:origin: com.eas.platypus/platypus-js-forms
@ScriptFunction(jsDoc = CLEAR_JSDOC)
@Override
public void clear() {
super.removeAll();
super.revalidate();
super.repaint();
}
内容来源于网络,如有侵权,请联系作者删除!