use of main.swing.generic.components.G_Panel in project Eidolons by IDemiurge.
the class ShopListsPanel method addTab.
protected void addTab(String title) {
if (!Launcher.getMainManager().isMacroMode()) {
super.addTab(title);
return;
}
G_Panel comp = new G_Panel();
tabMap.put(title, comp);
tabs.addTab(title, getShop(title).getImagePath(), comp);
}
use of main.swing.generic.components.G_Panel in project Eidolons by IDemiurge.
the class VendorListsPanel method addTab.
protected void addTab(String title) {
G_Panel comp = new G_Panel();
tabMap.put(title, comp);
tabs.addTab(title, comp);
}
use of main.swing.generic.components.G_Panel in project Eidolons by IDemiurge.
the class HeaderPanel method initValues.
private G_Panel initValues(VALUE[] values, boolean top) {
G_Panel panel = new G_Panel(// (top) ? "" :
"flowy");
for (VALUE v : values) {
String text = hero.getValue(v);
if (!top) {
text = v.getName() + ": " + text;
}
JLabel lbl = new JLabel(text);
// if (!top)
panel.add(lbl);
}
return panel;
}
use of main.swing.generic.components.G_Panel in project Eidolons by IDemiurge.
the class PortraitComp method initComp.
private void initComp() {
comp = new G_Panel(border);
Image img = ImageManager.getSizedVersion(hero.getIcon().getImage(), size);
label = new JLabel(new ImageIcon(img));
comp.add(label, "pos 5 17");
comp.addMouseListener(this);
}
use of main.swing.generic.components.G_Panel in project Eidolons by IDemiurge.
the class CellComp method initPanel.
private void initPanel() {
panel = new G_Panel() {
protected void paintComponent(Graphics g) {
if (bufferImage != null) {
g.drawImage(bufferImage, 0, 0, null);
}
String text = getToolTipText();
if (text != null) {
LogMaster.log(1, toString() + " has tooltip: " + text);
}
}
};
resetSize();
panel.setIgnoreRepaint(true);
}
Aggregations