Thanks
- Code: Select all
import com.jidesoft.swing.JideButton;
import com.jidesoft.swing.JideSplitButton;
import javax.swing.*;
import java.awt.*;
public class JideButtonTest extends JFrame {
public JideButtonTest() {
JToolBar toolbar = new JToolBar();
toolbar.add(new JideSplitButton("JideSplitButton"));
toolbar.add(new JideButton("JideButton"));
JPanel buttonPanel = new JPanel();
buttonPanel.add(new JideSplitButton("JideSplitButton"));
buttonPanel.add(new JideButton("JideSplitButton"));
getContentPane().add(toolbar, BorderLayout.NORTH);
getContentPane().add(buttonPanel, BorderLayout.SOUTH);
setDefaultCloseOperation(EXIT_ON_CLOSE);
pack();
setVisible(true);
}
public static void main(String[] args) {
new JideButtonTest();
}
}