Package org.pushingpixels.lafwidget.preview

Examples of org.pushingpixels.lafwidget.preview.DefaultPreviewPainter


    final JCheckBox hasPreview = new JCheckBox("Has preview");
    hasPreview.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        sp.putClientProperty(LafWidget.COMPONENT_PREVIEW_PAINTER,
            hasPreview.isSelected() ? new DefaultPreviewPainter()
                : null);
      }
    });
    builder.append("Preview", hasPreview);
View Full Code Here


        SwingUtilities.invokeLater(new Runnable() {
          public void run() {
            scrollPane
                .putClientProperty(
                    LafWidget.COMPONENT_PREVIEW_PAINTER,
                    hasPreview.isSelected() ? new DefaultPreviewPainter()
                        : null);
            repaint();
          }
        });
      }
View Full Code Here

            JScrollPane jsp = new JScrollPane(tree,
                JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
                JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
            jsp.putClientProperty(
                LafWidget.COMPONENT_PREVIEW_PAINTER,
                new DefaultPreviewPainter());

            disposableDialog.setLayout(new BorderLayout());
            disposableDialog.add(jsp, BorderLayout.CENTER);

            disposableDialog.setSize(200, 100);
View Full Code Here

        SwingUtilities.invokeLater(new Runnable() {
          public void run() {
            scrollPane
                .putClientProperty(
                    LafWidget.COMPONENT_PREVIEW_PAINTER,
                    hasPreview.isSelected() ? new DefaultPreviewPainter()
                        : null);
            repaint();
          }
        });
      }
View Full Code Here

            JScrollPane jsp = new JScrollPane(tree,
                JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
                JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
            jsp.putClientProperty(
                LafWidget.COMPONENT_PREVIEW_PAINTER,
                new DefaultPreviewPainter());

            disposableDialog.setLayout(new BorderLayout());
            disposableDialog.add(jsp, BorderLayout.CENTER);

            disposableDialog.setSize(200, 100);
View Full Code Here

TOP

Related Classes of org.pushingpixels.lafwidget.preview.DefaultPreviewPainter

Copyright © 2018 www.massapicom. 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.