Package lev.gui

Examples of lev.gui.LImagePane


     *
     * @param logo URL of the logo image to display.
     */
    public void addLogo(URL logo) {
  try {
      LImagePane logoPane = new LImagePane(logo);
      logoPane.setMaxSize(getWidth() + 50, getHeight() + 50);
      logoPane.setAlpha((float) 0.3);
      logoPane.setLocation(getWidth() / 2 - logoPane.getWidth() / 2, getHeight() / 2 - logoPane.getHeight() / 2 - 10);
      add(logoPane);
  } catch (IOException ex) {
      SPGlobal.logException(ex);
  }
    }
View Full Code Here


      setLocation(dim.width / 2 - getWidth() / 2, dim.height / 2 - getHeight() / 2);
      setResizable(false);
      setLayout(null);

      // Background Panel
      backgroundPanel = new LImagePane(LImages.multipurpose());
      super.add(backgroundPanel);
      skyprocLogo = new LImagePane(SPDefaultGUI.class.getResource("SkyProc Logo Small.png"));
      skyprocLogo.setLocation(getWidth() - skyprocLogo.getWidth() - 15, this.getHeight() - skyprocLogo.getHeight() - 30);
      backgroundPanel.add(skyprocLogo);


      // Label
View Full Code Here

     * align where it should begin in relation to your image.
     * @throws IOException If the image given by the URL cannot be loaded
     * properly.
     */
    public void replaceHeader(final URL logo, final int descriptionOffset) throws IOException {
  patcherLogo = new LImagePane(logo);
  SwingUtilities.invokeLater(new Runnable() {

      @Override
      public void run() {
    description.setVisible(false);
View Full Code Here

TOP

Related Classes of lev.gui.LImagePane

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.