Package org.gbcpainter.view

Examples of org.gbcpainter.view.ErrorDialog


      GraphicsEnv.getInstance().getTextureLoader().loadTexture( HEADER_TEXTURE, false );

    } catch ( Exception e ) {

      final TextureNotFoundException textureException = new TextureNotFoundException( e );
      new ErrorDialog( this.gameView, LanguageDictionary.ERROR_STRING, LanguageDictionary.ERROR_LOAD_HEADER, textureException, true );
      throw textureException;
    }

    this.header = new Label() {

      @Override
      public void paint( Graphics g ) {
        super.paint( g );
        if ( this.getHeight() != 0 && this.getWidth() != 0 ) {

          try {
            Image img = GraphicsEnv.getInstance().getTextureLoader().loadTexture( HEADER_TEXTURE, false );
            g.drawImage( img.getScaledInstance( - 1, this.getHeight(), Image.SCALE_SMOOTH ),
                         0,
                         0,
                         this.getWidth(),
                         this.getHeight(),
                         null );
          } catch ( Exception e ) {
            final TextureNotFoundException textureException = new TextureNotFoundException( e );
            new ErrorDialog( MainPC.this.gameView, LanguageDictionary.ERROR_STRING,
                           LanguageDictionary.ERROR_LOAD_HEADER, textureException, true );
          }
        }
      }
    };
View Full Code Here


        resizeElements();

      }
    } );

    new ErrorDialog( ViewManager.getMainView().getFrame(), LanguageDictionary.ERROR_STRING,
                     LanguageDictionary.LEVEL_LOAD_FAIL, loader.getLoadingException() );
  }
View Full Code Here

            @Override
            public void run() {
              try {
                GameSettings.getInstance().storeSettings();
              } catch ( IOException e1 ) {
                new ErrorDialog( ViewManager.getMainView()
                                            .getFrame(),
                                 LanguageDictionary.ERROR_STRING,
                                 LanguageDictionary.ERROR_SAVE_SETTINGS,
                                 e1 );
              }
View Full Code Here

TOP

Related Classes of org.gbcpainter.view.ErrorDialog

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.