Back to project page ProjectSierra.
The source code is released under:
GNU General Public License
If you think the Android project ProjectSierra listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package ca.viaware.mapmaker.gui.components; // ww w . ja v a 2 s . c o m import javax.swing.*; import java.awt.*; import java.awt.event.ActionListener; public class SidebarButton extends JButton { public SidebarButton(String text) { super(text); setPreferredSize(new Dimension(180, 30)); } public SidebarButton(ActionListener e, String actionCommand, String text) { this(text); addActionListener(e); setActionCommand(actionCommand); } }