本文整理了Java中javax.swing.JMenuBar.repaint()
方法的一些代码示例,展示了JMenuBar.repaint()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JMenuBar.repaint()
方法的具体详情如下:
包路径:javax.swing.JMenuBar
类名称:JMenuBar
方法名:repaint
暂无
代码示例来源:origin: PortSwigger/replicator
@Override
public void run()
{
burpMenuBar.remove(replicatorMenu);
burpMenuBar.repaint();
}
});
代码示例来源:origin: protegeproject/protege
public void added(IExtension[] extensions) {
OWLReasonerManagerImpl reasonerManager = (OWLReasonerManagerImpl) getOWLModelManager().getOWLReasonerManager();
Set<ProtegeOWLReasonerPlugin> plugins = new HashSet<>();
for (IExtension extension : extensions) {
plugins.add(new ProtegeOWLReasonerPluginJPFImpl(getOWLModelManager(), extension));
}
reasonerManager.addReasonerFactories(plugins);
rebuildReasonerMenu(menuBar);
menuBar.repaint();
}
代码示例来源:origin: PortSwigger/backslash-powered-scanner
public void extensionUnloaded() {
JMenuBar burpMenuBar = getBurpFrame().getJMenuBar();
burpMenuBar.remove(menuButton);
burpMenuBar.repaint();
}
}
代码示例来源:origin: PortSwigger/param-miner
public void extensionUnloaded() {
JMenuBar jMenuBar = Utilities.getBurpFrame().getJMenuBar();
jMenuBar.remove(menuButton);
jMenuBar.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: edu.stanford.protege/protege-editor-owl
public void added(IExtension[] extensions) {
OWLReasonerManagerImpl reasonerManager = (OWLReasonerManagerImpl) getOWLModelManager().getOWLReasonerManager();
Set<ProtegeOWLReasonerPlugin> plugins = new HashSet<>();
for (IExtension extension : extensions) {
plugins.add(new ProtegeOWLReasonerPluginJPFImpl(getOWLModelManager(), extension));
}
reasonerManager.addReasonerFactories(plugins);
rebuildReasonerMenu(menuBar);
menuBar.repaint();
}
代码示例来源:origin: edu.stanford.protege/org.protege.editor.owl
public void added(IExtension[] extensions) {
OWLReasonerManagerImpl reasonerManager = (OWLReasonerManagerImpl) getOWLModelManager().getOWLReasonerManager();
Set<ProtegeOWLReasonerPlugin> plugins = new HashSet<ProtegeOWLReasonerPlugin>();
for (IExtension extension : extensions) {
plugins.add(new ProtegeOWLReasonerPluginJPFImpl(getOWLModelManager(), extension));
}
reasonerManager.addReasonerFactories(plugins);
rebuildReasonerMenu(menuBar);
menuBar.repaint();
}
代码示例来源:origin: com.eas.platypus/platypus-js-forms
@ScriptFunction(jsDoc = CLEAR_JSDOC)
@Override
public void clear() {
super.removeAll();
super.revalidate();
super.repaint();
}
代码示例来源:origin: org.protege/protege-editor-owl
public void added(IExtension[] extensions) {
OWLReasonerManagerImpl reasonerManager = (OWLReasonerManagerImpl) getOWLModelManager().getOWLReasonerManager();
Set<ProtegeOWLReasonerPlugin> plugins = new HashSet<ProtegeOWLReasonerPlugin>();
for (IExtension extension : extensions) {
plugins.add(new ProtegeOWLReasonerPluginJPFImpl(getOWLModelManager(), extension));
}
reasonerManager.addReasonerFactories(plugins);
rebuildReasonerMenu(menuBar);
menuBar.repaint();
}
public void added(IExtensionPoint[] extensionPoints) {
代码示例来源:origin: jawi/ols
@Override
public void run()
{
final JMenuBar menuBar = getMainMenuBar();
if ( menuBar != null )
{
final JMenu menu = ( JMenu )aProvider.getComponent();
menuBar.add( menu );
aProvider.addedToContainer();
menuBar.revalidate();
menuBar.repaint();
}
}
} );
代码示例来源:origin: net.sf.sfac/sfac-core
menuBar.repaint();
代码示例来源:origin: nccgroup/AutoRepeater
@Override
public void extensionUnloaded() {
// unregister menu
JMenuBar burpMenuBar = rootPane.getJMenuBar();
BurpExtender.getCallbacks().printOutput("Unregistering menu");
burpMenuBar.remove(autoRepeaterJMenu);
burpMenuBar.repaint();
}
代码示例来源:origin: org.jfree/jcommon
this.getJMenuBar().repaint();
代码示例来源:origin: jawi/ols
@Override
public void run()
{
final JMenuBar menuBar = getMainMenuBar();
if ( menuBar != null )
{
aProvider.removedFromContainer();
menuBar.remove( aProvider.getComponent() );
menuBar.revalidate();
menuBar.repaint();
}
}
} );
代码示例来源:origin: jfree/jcommon
this.getJMenuBar().repaint();
代码示例来源:origin: org.jfree/com.springsource.org.jfree
this.getJMenuBar().repaint();
代码示例来源:origin: org.biojava.thirdparty/forester
private void doUpdateProcessMenu() {
if ( _process_pool.size() > 0 ) {
if ( _process_menu == null ) {
_process_menu = createMenu( "", getConfiguration() );
_process_menu.setForeground( Color.RED );
}
_process_menu.removeAll();
final String text = "processes running: " + _process_pool.size();
_process_menu.setText( text );
_jmenubar.add( _process_menu );
for( int i = 0; i < _process_pool.size(); ++i ) {
final ProcessRunning p = _process_pool.getProcessByIndex( i );
_process_menu.add( customizeJMenuItem( new JMenuItem( p.getName() + " [" + p.getStart() + "]" ) ) );
}
}
else {
if ( _process_menu != null ) {
_process_menu.removeAll();
_jmenubar.remove( _process_menu );
}
}
_jmenubar.validate();
_jmenubar.repaint();
repaint();
}
代码示例来源:origin: elki-project/elki
menubar.repaint();
代码示例来源:origin: de.lmu.ifi.dbs.elki/elki-batik-visualization
menubar.repaint();
代码示例来源:origin: igniterealtime/Spark
/**
* Rescaning our bookmarks and remaking menu items
*
* @param bookmarkMenu menu Jmenu
*/
public void rescan(JMenu bookmarkMenu) {
bookmarkMenu.removeAll(); // removing old menus
try {
setBookmarks(bookmarkMenu); // making new
int onPanel = SparkManager.getMainWindow().getMenu().getComponentIndex(bookmarkMenu);
if (onPanel < 0) {
if (bookmarkMenu.getMenuComponentCount() > 0) {
int menuCount = SparkManager.getMainWindow().getMenu().getMenuCount();
SparkManager.getMainWindow().getMenu().add(bookmarkMenu, menuCount - 2);
}
}
if (onPanel >= 0) {
if (bookmarkMenu.getMenuComponentCount() <= 0) {
SparkManager.getMainWindow().getMenu().remove(bookmarkMenu);
}
}
SparkManager.getMainWindow().getMenu().invalidate();
SparkManager.getMainWindow().getMenu().validate();
SparkManager.getMainWindow().getMenu().repaint();
} catch (XMPPException | SmackException | InterruptedException ex) {
Log.error(ex);
}
}
内容来源于网络,如有侵权,请联系作者删除!