Warning: session_start(): open(/var/lib/php/sessions/sess_5e6cjq4tsbi6v86ilsfhle3org, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
sclass JPopDownButton > JButton {
S menuPosition = "left"; // or "center" or "right"
*() {
super(unicode_downPointingTriangle());
main addActionListener(this, r openMenu);
}
swappable void fillMenu(JPopupMenu menu) {}
void openMenu {
new JPopupMenu menu;
int emptyCount = menu.getComponentCount();
fillMenu(menu);
if (menu.getComponentCount() == emptyCount) ret;
int x = 0;
if (eq(position, "center")) x = (getWidth()-getPreferredWidth(menu))/2;
else if (eq(position, "right")) x = getWidth()-getPreferredWidth(menu);
menu.show(this, x, getHeight());
}
}