javax.swing.JTree.repaint()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(6.8k)|赞(0)|评价(0)|浏览(145)

本文整理了Java中javax.swing.JTree.repaint()方法的一些代码示例,展示了JTree.repaint()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTree.repaint()方法的具体详情如下:
包路径:javax.swing.JTree
类名称:JTree
方法名:repaint

JTree.repaint介绍

暂无

代码示例

代码示例来源:origin: ron190/jsql-injection

@Override
public boolean imageUpdate(Image img, int flags, int x, int y, int w, int h) {
  if ((flags & (FRAMEBITS | ALLBITS)) != 0) {
    Rectangle rect = this.tree.getPathBounds(this.path);
    if (rect != null) {
      this.tree.repaint(rect);
    }
  }
  return (flags & (ALLBITS | ABORT)) == 0;
}

代码示例来源:origin: ron190/jsql-injection

@Override
public void focusLost(FocusEvent e) {
  AbstractNodeModel nodeModel = (AbstractNodeModel) currentNode.getUserObject();
  nodeModel.setIsEdited(false);
  tree.revalidate();
  tree.repaint();
}

代码示例来源:origin: ron190/jsql-injection

@Override
public void keyPressed(KeyEvent e) {
  AbstractNodeModel nodeModel = (AbstractNodeModel) currentNode.getUserObject();
  if (e.getKeyCode() == KeyEvent.VK_F2 && !nodeModel.isRunning()) {
    nodeModel.setIsEdited(true);
    
    PanelNode.this.label.setVisible(false);
    PanelNode.this.textFieldEditable.setVisible(true);
    PanelNode.this.textFieldEditable.requestFocusInWindow();
    
    tree.revalidate();
    tree.repaint();
  }
}

代码示例来源:origin: ron190/jsql-injection

tree.repaint();
});

代码示例来源:origin: net.sf.squirrel-sql/squirrel-sql

public void cutSelected()
{
 _pathsToPaste = _tree.getSelectionPaths();
 _pasteMode = PasteMode.CUT;
 _tree.repaint();
}

代码示例来源:origin: net.sf.ingenias/editor

public DeploymentPackageWithContext createDeploymentPackageWithContext(String id){
 DeploymentPackageWithContext object=new     DeploymentPackageWithContext(id);
 DefaultMutableTreeNode nn=new DefaultMutableTreeNode(object);
 DeploymentPackageWithContextNode.insert(nn, DeploymentPackageWithContextNode.getChildCount());
 nn.setParent(DeploymentPackageWithContextNode);
 this.reload();
 arbolObjetos.repaint();
 return object;
}

代码示例来源:origin: net.sf.ingenias/editor

public JoinNode createJoinNode(String id){
 JoinNode object=new     JoinNode(id);
 DefaultMutableTreeNode nn=new DefaultMutableTreeNode(object);
 JoinNodeNode.insert(nn, JoinNodeNode.getChildCount());
 nn.setParent(JoinNodeNode);
 this.reload();
 arbolObjetos.repaint();
 return object;
}

代码示例来源:origin: net.sf.ingenias/editor

public OrganizationGroup createOrganizationGroup(String id){
 OrganizationGroup object=new     OrganizationGroup(id);
 DefaultMutableTreeNode nn=new DefaultMutableTreeNode(object);
 OrganizationGroupNode.insert(nn, OrganizationGroupNode.getChildCount());
 nn.setParent(OrganizationGroupNode);
 this.reload();
 arbolObjetos.repaint();
 return object;
}

代码示例来源:origin: net.sf.ingenias/editor

public IUIterate createIUIterate(String id){
 IUIterate object=new     IUIterate(id);
 DefaultMutableTreeNode nn=new DefaultMutableTreeNode(object);
 IUIterateNode.insert(nn, IUIterateNode.getChildCount());
 nn.setParent(IUIterateNode);
 this.reload();
 arbolObjetos.repaint();
 return object;
}

代码示例来源:origin: net.sf.ingenias/editor

public AUMLAlternativeRow createAUMLAlternativeRow(String id){
 AUMLAlternativeRow object=new     AUMLAlternativeRow(id);
 DefaultMutableTreeNode nn=new DefaultMutableTreeNode(object);
 AUMLAlternativeRowNode.insert(nn, AUMLAlternativeRowNode.getChildCount());
 nn.setParent(AUMLAlternativeRowNode);
 this.reload();
 arbolObjetos.repaint();
 return object;
}

代码示例来源:origin: net.sf.ingenias/editor

public ConcreteAgent createConcreteAgent(String id){
 ConcreteAgent object=new     ConcreteAgent(id);
 DefaultMutableTreeNode nn=new DefaultMutableTreeNode(object);
 ConcreteAgentNode.insert(nn, ConcreteAgentNode.getChildCount());
 nn.setParent(ConcreteAgentNode);
 this.reload();
 arbolObjetos.repaint();
 return object;
}

代码示例来源:origin: net.sf.ingenias/editor

public AgentDescription createAgentDescription(String id){
 AgentDescription object=new     AgentDescription(id);
 DefaultMutableTreeNode nn=new DefaultMutableTreeNode(object);
 AgentDescriptionNode.insert(nn, AgentDescriptionNode.getChildCount());
 nn.setParent(AgentDescriptionNode);
 this.reload();
 arbolObjetos.repaint();
 return object;
}

代码示例来源:origin: net.sf.ingenias/editor

public InteractionUnit createInteractionUnit(String id){
 InteractionUnit object=new     InteractionUnit(id);
 DefaultMutableTreeNode nn=new DefaultMutableTreeNode(object);
 InteractionUnitNode.insert(nn, InteractionUnitNode.getChildCount());
 nn.setParent(InteractionUnitNode);
 this.reload();
 arbolObjetos.repaint();
 return object;
}

代码示例来源:origin: net.sf.ingenias/editor

public GRASIASpecification createGRASIASpecification(String id){
 GRASIASpecification object=new     GRASIASpecification(id);
 DefaultMutableTreeNode nn=new DefaultMutableTreeNode(object);
 GRASIASpecificationNode.insert(nn, GRASIASpecificationNode.getChildCount());
 nn.setParent(GRASIASpecificationNode);
 this.reload();
 arbolObjetos.repaint();
 return object;
}

代码示例来源:origin: net.sf.ingenias/editor

public PROLOGAgentDescription createPROLOGAgentDescription(String id){
 PROLOGAgentDescription object=new     PROLOGAgentDescription(id);
 DefaultMutableTreeNode nn=new DefaultMutableTreeNode(object);
 PROLOGAgentDescriptionNode.insert(nn, PROLOGAgentDescriptionNode.getChildCount());
 nn.setParent(PROLOGAgentDescriptionNode);
 this.reload();
 arbolObjetos.repaint();
 return object;
}

代码示例来源:origin: net.sf.ingenias/editor

public Specification createSpecification(String id){
 Specification object=new     Specification(id);
 DefaultMutableTreeNode nn=new DefaultMutableTreeNode(object);
 SpecificationNode.insert(nn, SpecificationNode.getChildCount());
 nn.setParent(SpecificationNode);
 this.reload();
 arbolObjetos.repaint();
 return object;
}

代码示例来源:origin: net.sf.ingenias/editor

public MentalStateManager createMentalStateManager(String id){
 MentalStateManager object=new     MentalStateManager(id);
 DefaultMutableTreeNode nn=new DefaultMutableTreeNode(object);
 MentalStateManagerNode.insert(nn, MentalStateManagerNode.getChildCount());
 nn.setParent(MentalStateManagerNode);
 this.reload();
 arbolObjetos.repaint();
 return object;
}

代码示例来源:origin: net.sf.ingenias/editor

public SimulationPackage createSimulationPackage(String id){
 SimulationPackage object=new     SimulationPackage(id);
 DefaultMutableTreeNode nn=new DefaultMutableTreeNode(object);
 SimulationPackageNode.insert(nn, SimulationPackageNode.getChildCount());
 nn.setParent(SimulationPackageNode);
 this.reload();
 arbolObjetos.repaint();
 return object;
}

代码示例来源:origin: net.sf.ingenias/editor

public MentalEntityInstanceAccess createMentalEntityInstanceAccess(String id){
 MentalEntityInstanceAccess object=new     MentalEntityInstanceAccess(id);
 DefaultMutableTreeNode nn=new DefaultMutableTreeNode(object);
 MentalEntityInstanceAccessNode.insert(nn, MentalEntityInstanceAccessNode.getChildCount());
 nn.setParent(MentalEntityInstanceAccessNode);
 this.reload();
 arbolObjetos.repaint();
 return object;
}

代码示例来源:origin: net.sf.ingenias/editor

public TaskInputDefinition createTaskInputDefinition(String id){
 TaskInputDefinition object=new     TaskInputDefinition(id);
 DefaultMutableTreeNode nn=new DefaultMutableTreeNode(object);
 TaskInputDefinitionNode.insert(nn, TaskInputDefinitionNode.getChildCount());
 nn.setParent(TaskInputDefinitionNode);
 this.reload();
 arbolObjetos.repaint();
 return object;
}

相关文章

JTree类方法