convex.gui.manager.mainpanels.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
package convex.gui.manager.mainpanels;
import java.awt.BorderLayout;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;
import convex.gui.manager.PeerGUI;
import convex.gui.manager.mainpanels.actors.DeployPanel;
import convex.gui.manager.mainpanels.actors.MarketsPanel;
import convex.gui.manager.mainpanels.actors.OraclePanel;
/**
* Top level panel that displays some standard Actors
*/
@SuppressWarnings("serial")
public class ActorsPanel extends JPanel {
private JTabbedPane typePane;
public ActorsPanel(PeerGUI manager) {
setLayout(new BorderLayout(0, 0));
typePane = new JTabbedPane();
typePane.add("Oracle", new OraclePanel());
// TODO: fix registry address
// typePane.add("Registry", new ActorInvokePanel(manager, ...));
typePane.add("Prediction Markets", new MarketsPanel(manager));
typePane.add("Deploy", new DeployPanel());
add(typePane, BorderLayout.CENTER);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy