Package org.jdesktop.swingx

Examples of org.jdesktop.swingx.JXImagePanel


     * {@inheritDoc}
     */
    protected void createDemo() {
        setLayout(new GridLayout(2, 2));
       
        centeredPanel = new JXImagePanel();
        centeredPanel.setName("centered");
        centeredPanel.setBorder(BorderFactory.createTitledBorder("Centered"));
        add(centeredPanel);
       
        tiledPanel = new JXImagePanel();
        tiledPanel.setName("tiled");
        tiledPanel.setBorder(BorderFactory.createTitledBorder("Tiled"));
        add(tiledPanel);
       
        scaledPanel = new JXImagePanel();
        scaledPanel.setName("scaled");
        scaledPanel.setBorder(BorderFactory.createTitledBorder("Scaled"));
        add(scaledPanel);

        scaledAspectPanel = new JXImagePanel();
        scaledAspectPanel.setName("scaledAspect");
        scaledAspectPanel.setBorder(BorderFactory.createTitledBorder("Scaled (Keep Aspect Ratio)"));
        add(scaledAspectPanel);
    }
View Full Code Here


    }

    protected Component createContentPane()
    {
        JXPanel panel = new JXPanel(new FormLayout("center:200px:nogrow, left:3dlu:nogrow, fill:200px:nogrow", "center:200px:nogrow, center:20px:nogrow"));
        JXImagePanel ip = new JXImagePanel();
        try
        {
            ip.setImage(ImageIO.read(image.getInputStream()));
        }
        catch (IOException e)
        {
            e.printStackTrace();
        }
        ip.setStyle(JXImagePanel.Style.SCALED);
        //panel.setBackground(new Color(0x425DA9));
        panel.add(busyLabel, new CellConstraints(1,1));
        JXPanel panel2 = new JXPanel(new FormLayout("center:195px:nogrow", "center:98px:nogrow, center:4dlu:nogrow, center:98px:nogrow"));
        //panel2.setBackground(new Color(0x425DA9));
        panel2.add(titleLabel, new CellConstraints(1, 1));
View Full Code Here

    super();
    setLayout(new BorderLayout());
    m_version = ApplicationVersion.getVersion(ViewSampleBean.class.getName());
        System.out.println(m_version + " version is used");
        //at beginning set a default panel.
        m_sampleImage = new JXImagePanel();
        m_sampleImage.setStyle(Style.SCALED_KEEP_ASPECT_RATIO);
        ImageIcon tmpImageIcon = new ImageIcon(SampleManagerGlobalBean.class.getResource("DefaultBean.png"));
        m_sampleImage.setImage(tmpImageIcon.getImage());
        add(m_sampleImage,BorderLayout.CENTER);
        m_sampleImage.setToolTipText(m_version);
View Full Code Here

    super();
    m_version = ApplicationVersion.getVersion(LPSContAcqApplication.class.getName());
        System.out.println(m_version + " version is used");
    setLayout(new BorderLayout());
        //at beginning set a default panel.
    m_capoeiraImage = new JXImagePanel();
    m_capoeiraImage.setStyle(Style.SCALED_KEEP_ASPECT_RATIO);
        ImageIcon tmpImageIcon = new ImageIcon(CapoeiraGlobalBean.class.getResource("CapoeiraBean.jpg"));
        m_capoeiraImage.setImage(tmpImageIcon.getImage());
        add(m_capoeiraImage,BorderLayout.CENTER);
        m_capoeiraImage.setToolTipText(ApplicationVersion.getVersion(LPSContAcqApplication.class.getName()));
View Full Code Here

    setLayout(new BorderLayout());
    m_version = ApplicationVersion.getVersion(GenericHMIBean.class.getName());
    System.out.println(m_version + " version is used");

    //at beginning set a default panel.
    m_genericIHMImage = new JXImagePanel();
    m_genericIHMImage.setStyle(JXImagePanel.Style.SCALED_KEEP_ASPECT_RATIO);
    ImageIcon tmpImageIcon = new ImageIcon(SalsaGlobalBean.class.getResource("GenericIHM.jpg"));
    m_genericIHMImage.setImage(tmpImageIcon.getImage());
    add(m_genericIHMImage,BorderLayout.CENTER);
    m_genericIHMImage.setToolTipText(m_version);
View Full Code Here

  {
      m_version = ApplicationVersion.getVersion(PnlBaladi.class.getName());
      System.out.println(m_version + " version is used");
      setLayout(new BorderLayout());
      //at begining set a default panel.
      m_baladiImage = new JXImagePanel();
      m_baladiImage.setStyle(Style.SCALED_KEEP_ASPECT_RATIO);
      ImageIcon tmpImageIcon = new ImageIcon(BaladiBean.class.getResource("BaladiBean.jpg"));
      m_baladiImage.setImage(tmpImageIcon.getImage());
        add(m_baladiImage,BorderLayout.CENTER);
        m_baladiImage.setToolTipText(m_version);
View Full Code Here

    super();
    setLayout(new BorderLayout());
    m_version = ApplicationVersion.getVersion(MCABean.class.getName());
        System.out.println(m_version + " version is used");
        //at beginning set a default panel.
    m_TumbaImage = new JXImagePanel();
    m_TumbaImage.setStyle(Style.SCALED_KEEP_ASPECT_RATIO);
        ImageIcon tmpImageIcon = new ImageIcon(TumbaGlobalBean.class.getResource("TumbaBean.png"));
        m_TumbaImage.setImage(tmpImageIcon.getImage());
        add(m_TumbaImage,BorderLayout.CENTER);
        m_TumbaImage.setToolTipText(m_version);
View Full Code Here

          m_version = ApplicationVersion.getVersion(ImgBeamAnalyzer.class.getName());
          System.out.println(m_version + " version is used");
          imgAnalyzerMode = new SoleilCharlestonModeProperty();
          setLayout(new BorderLayout());
          //at beginning set a default panel.
          m_charlestonImage = new JXImagePanel();
          m_charlestonImage.setStyle(Style.SCALED_KEEP_ASPECT_RATIO);
          ImageIcon tmpImageIcon = new ImageIcon(CharlestonGlobalBean.class.getResource("CharlestonBean.jpg"));
          m_charlestonImage.setImage(tmpImageIcon.getImage());
          add(m_charlestonImage,BorderLayout.CENTER);
          m_charlestonImage.setToolTipText(m_version);
View Full Code Here

    m_version = ApplicationVersion.getVersion(SalsaBean.class.getName());
    System.out.println(m_version + " version is used");

    salsaPerspective = new SalsaPerspectiveProperty();
    //at beginning set a default panel.
    m_salsaImage = new JXImagePanel();
    m_salsaImage.setStyle(Style.SCALED_KEEP_ASPECT_RATIO);
    ImageIcon tmpImageIcon = new ImageIcon(SalsaGlobalBean.class.getResource("SalsaBean.jpg"));
    m_salsaImage.setImage(tmpImageIcon.getImage());
    add(m_salsaImage,BorderLayout.CENTER);
    m_salsaImage.setToolTipText(m_version);
View Full Code Here

    super();
    setLayout(new BorderLayout());
    m_version = ApplicationVersion.getVersion(PnlExpFrame.class.getName());
        System.out.println(m_version + " version is used");
        //at beginning set a default panel.
    m_experimentalFrameImage = new JXImagePanel();
    m_experimentalFrameImage.setStyle(Style.SCALED_KEEP_ASPECT_RATIO);
        ImageIcon tmpImageIcon = new ImageIcon(ExperimentalFrameGlobalBean.class.getResource("ExperimentalFrameBean.jpg"));
        m_experimentalFrameImage.setImage(tmpImageIcon.getImage());
        add(m_experimentalFrameImage,BorderLayout.CENTER);
        m_experimentalFrameImage.setToolTipText(m_version);
View Full Code Here

TOP

Related Classes of org.jdesktop.swingx.JXImagePanel

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.