convex.gui.panels.ActorsPanel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of convex-gui Show documentation
Show all versions of convex-gui Show documentation
Convex desktop GUI and test applications
The newest version!
package convex.gui.panels;
import java.awt.BorderLayout;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;
import convex.api.ConvexLocal;
import convex.gui.actor.DeployPanel;
import convex.gui.actor.MarketsPanel;
import convex.gui.actor.OraclePanel;
/**
* Top level panel that displays some standard Actors
*/
@SuppressWarnings("serial")
public class ActorsPanel extends JPanel {
private JTabbedPane typePane;
public ActorsPanel(ConvexLocal convex) {
setLayout(new BorderLayout(0, 0));
typePane = new JTabbedPane();
typePane.add("Oracle", new OraclePanel(convex));
// TODO: fix registry address
// typePane.add("Registry", new ActorInvokePanel(manager, ...));
typePane.add("Prediction Markets", new MarketsPanel(convex));
typePane.add("Deploy", new DeployPanel());
add(typePane, BorderLayout.CENTER);
}
}