本文整理了Java中javax.swing.JPopupMenu.repaint()
方法的一些代码示例,展示了JPopupMenu.repaint()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JPopupMenu.repaint()
方法的具体详情如下:
包路径:javax.swing.JPopupMenu
类名称:JPopupMenu
方法名:repaint
暂无
代码示例来源:origin: com.eas.platypus/platypus-js-forms
@ScriptFunction(jsDoc = CLEAR_JSDOC)
@Override
public void clear() {
super.removeAll();
super.revalidate();
super.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: girtel/Net2Plan
fixedTableMenu.repaint();
fixedTableMenu.add(showMenu);
fixedTableMenu.add(showAllItem);
代码示例来源:origin: girtel/Net2Plan
mainTableMenu.repaint();
mainTableMenu.add(hideMenu);
代码示例来源:origin: mucommander/mucommander
@Override
void showAutocompletionPopup() {
if (autocompletedtextComp.isShowing() && autocompletedtextComp.isEnabled() && updateListData(list)){
list.setVisibleRowCount(Math.min(list.getModel().getSize() ,VISIBLE_ROW_COUNT));
int x;
try{
x = autocompletedtextComp.modelToView().x;
} catch(BadLocationException e){
// this should never happen!!!
LOGGER.debug("Caught exception", e);
return;
}
if (autocompletedtextComp.hasFocus()) {
if (!isStopped) {
list.ensureIndexIsVisible(0);
synchronized(popup) {
popup.show(autocompletedtextComp.getTextComponent(), x, autocompletedtextComp.getHeight());
// probably because of swing's bug, sometimes the popup window looks
// as a gray rectangle - repainting solves it.
popup.repaint();
}
}
}
}
}
}
代码示例来源:origin: org.activecomponents.jadex/jadex-runtimetools-swing
menu.doLayout();
menu.pack();
menu.repaint();
代码示例来源:origin: net.sourceforge.jadex/jadex-runtimetools-swing
menu.doLayout();
menu.pack();
menu.repaint();
代码示例来源:origin: mucommander/mucommander
@Override
void showAutocompletionPopup() {
if (autocompletedtextComp.isShowing() && autocompletedtextComp.isEnabled() && updateListData(list)){
list.setVisibleRowCount(Math.min(list.getModel().getSize() ,VISIBLE_ROW_COUNT));
int x;
try{
x = autocompletedtextComp.modelToView().x;
} catch(BadLocationException e){
// this should never happen!!!
LOGGER.debug("Caught exception", e);
return;
}
if (autocompletedtextComp.hasFocus()) {
if (!isStopped) {
list.ensureIndexIsVisible(0);
synchronized(popup) {
popup.show(autocompletedtextComp.getTextComponent(), x, autocompletedtextComp.getHeight());
// probably because of swing's bug, sometimes the popup window looks
// as a gray rectangle - repainting solves it.
popup.repaint();
}
}
}
}
}
}
代码示例来源:origin: mucommander/mucommander
@Override
void showAutocompletionPopup() {
if (autocompletedtextComp.isShowing() && autocompletedtextComp.isEnabled() && updateListData(list)){
list.setVisibleRowCount(Math.min(list.getModel().getSize() ,VISIBLE_ROW_COUNT));
int x;
try{
x = autocompletedtextComp.modelToView().x;
} catch(BadLocationException e){
// this should never happen!!!
LOGGER.debug("Caught exception", e);
return;
}
if (autocompletedtextComp.hasFocus()) {
if (!isStopped) {
list.ensureIndexIsVisible(0);
synchronized(popup) {
popup.show(autocompletedtextComp.getTextComponent(), x, autocompletedtextComp.getHeight());
// probably because of swing's bug, sometimes the popup window looks
// as a gray rectangle - repainting solves it.
popup.repaint();
}
autocompletedtextComp.getDocument().addDocumentListener(documentListener);
}
}
}
}
}
代码示例来源:origin: org.opentcs.thirdparty.jhotdraw/jhotdraw
popupMenu.repaint();
代码示例来源:origin: com.metsci.glimpse/glimpse-layers
facetsPopup.repaint( );
} ) );
代码示例来源:origin: com.metsci.glimpse/glimpse-docking
repaint( );
overflowPopup.pack( );
overflowPopup.repaint( );
};
disposables.add( view.component.addListener( true, validateAndRepaint ) );
内容来源于网络,如有侵权,请联系作者删除!