Reputation: 1
public class Proof extends JWizardPanel{
String generatedString = "";
public Proof(JWizardComponents wizardComponents) {
super(wizardComponents);
init();
}
private void init() {
JButton btnNodo = new JButton("Eliminar nodo");
btnNodo.setBounds(154, 757, 97, 25);
this.add(btnNodo);
JButton btnNewButton_1 = new JButton("Eliminar Arista");
btnNewButton_1.setBounds(392, 757, 97, 25);
this.add(btnNewButton_1);
setLayout(null);
}
public void update() {
DirectedSparseGraph<String, String> g = new DirectedSparseGraph<>();
VisualizationImageServer<String, String> vv = new VisualizationImageServer<>(new CircleLayout<>(g),
new Dimension(800, 800));
Transformer<String, String> transformer = new Transformer<String, String>() {
@Override
public String transform(String arg0) {
return arg0;
}
};
vv.getRenderContext().setVertexLabelTransformer(transformer);
this.add(vv);
}
}
First appears the graph and then when I pass the mouse appears my Jbuttons, why?
I really don´t know why, I tried to put my Jbuttons inside update() and occurs exactly the same could you help me?
I´m using Jung library to make the graph and JWizard to make a wizard
Upvotes: 0
Views: 41