Package at.bestsolution.ext.swing

Examples of at.bestsolution.ext.swing.GradientJRadioButton.addActionListener()


  //  ----------------------------------------------------------------------------
  private JRadioButton createGradientRadioButton(String description, int drawing_mode, int buttonIndex)
  {
    GradientJRadioButton button = new GradientJRadioButton( IconProvider.getInstance(), "fill_gradient" );
    button.setBorder(BorderFactory.createEmptyBorder(8,8,8,8));
    button.addActionListener( new SetDrawing2GradientAction(MainWindow.getDrawingPanel(),drawing_mode,MainWindow.MAIN_WINDOW,buttonIndex,true) );
    button.addChangeListener( MainWindow.getDrawingPanel() );
   
//    SetDrawingModeAction draw_action = new SetDrawingModeAction(description, MainWindow.getDrawingPanel(), drawing_mode, MainWindow.MAIN_WINDOW, buttonIndex);
//    MultipleGradientPaint gradient = new LinearGradientPaint(JGradientChooser.START_,JGradientChooser.CENTER_,JGradientChooser.fractions_,JGradientChooser.colors,MultipleGradientPaint.NO_CYCLE,MultipleGradientPaint.SRGB);
//    button = new JRadioButton( new GradientIcon(gradient) );
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.