![JAR search and dependency download from the Maven repository](/logo.png)
org.ggp.base.apps.player.detail.EmptyDetailPanel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alloy-ggp-base Show documentation
Show all versions of alloy-ggp-base Show documentation
A modified version of the GGP-Base library for Alloy.
The newest version!
package org.ggp.base.apps.player.detail;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import javax.swing.JLabel;
import org.ggp.base.util.observer.Event;
/**
* This is a detail panel that contains no information at all.
*/
@SuppressWarnings("serial")
public class EmptyDetailPanel extends DetailPanel {
public EmptyDetailPanel() {
super(new GridBagLayout());
this.add(new JLabel("No details available."), new GridBagConstraints(0, 0, 1, 1, 1.0, 1.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 5, 5));
}
@Override
public void observe(Event event) {
// Do nothing when notified about events
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy