All Downloads are FREE. Search and download functionalities are using the official Maven repository.

convex.gui.manager.mainpanels.ActorsPanel Maven / Gradle / Ivy

There is a newer version: 0.7.15
Show newest version
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