Page 5 of 5 FirstFirst ... 345
Results 81 to 92 of 92
  1. #81
    Mir
    Mir is offline Senior Member
    Join Date
    Mar 2008
    Posts
    447
    Rep Power
    7

    Default

    Quote Originally Posted by Eranga View Post
    I don't get such an exception there.
    Sir i got where is error.When call the
    Java Code:
    MyPanel()
    .then probelm is going start.

    Java Code:
    	public class MyPanel extends JPanel {
    		private Image img ;
    		public MyPanel() {
    			setLayout( new BorderLayout() ) ;
    			img = new ImageIcon("logod.jpg").getImage() ;
    		
    			if( img == null ) {
    				System.out.println( "Image is null" );
    				System.exit( 1 ) ;
    			}
    			if( img.getHeight(this) <= 0 || img.getWidth( this ) <= 0 ) {
    				System.out.println( "Image width or height must be +ve" );
    				System.exit( 2 ) ;
    			}
    		}
    		public void drawBackground( Graphics g ) {
    			int w = getWidth() ;
    			int h = getHeight() ;
    			int iw = img.getWidth( this ) ;
    			int ih = img.getHeight( this ) ;
    			for( int i = 0 ; i < w ; i+=iw ) {
    				for( int j = 0 ; j < h ; j+= ih ) {
    					g.drawImage( img ,0,9 , this ) ;
    				}
    				
    			}
    		
    		}
    		protected void paintComponent(Graphics g) {
    			super.paintComponent(g);
    			Color underline = getForeground();
    			g.setColor(underline);
    			drawBackground( g ) ;
    		}
    	}
    Plz help me sir..

  2. #82
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

  3. #83
    Mir
    Mir is offline Senior Member
    Join Date
    Mar 2008
    Posts
    447
    Rep Power
    7

    Default

    Quote Originally Posted by Eranga View Post
    What's the error you comes with. Can you paste your error message here to see.
    Sir error not showing..

    When i cut these code from progrram then my .exe is working fine.So i tell you sir..

    And makeing .jar file there is not showing any type of error.

    Plz help me sir..

  4. #84
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    It's not displayed, true. But you can see something annoying thing happened. What happened there.

  5. #85
    Mir
    Mir is offline Senior Member
    Join Date
    Mar 2008
    Posts
    447
    Rep Power
    7

    Default

    Quote Originally Posted by Eranga View Post
    It's not displayed, true. But you can see something annoying thing happened. What happened there.
    Sir as you know i have not deep knowledge in java.But what is happening,i am describe you.

    Sir when i make .exe.I haven't found any type of error.It is runing well.All other dialog is working according to functional.But when i click on that menu item then software is close.

    Sir i have a big problem,so i hope you help me..

  6. #86
    Mir
    Mir is offline Senior Member
    Join Date
    Mar 2008
    Posts
    447
    Rep Power
    7

    Default

    Quote Originally Posted by Eranga View Post
    It's not displayed, true. But you can see something annoying thing happened. What happened there.
    sit you are right,it's my faoult...now it is working

    Thx's for help

  7. #87
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

  8. #88
    Mir
    Mir is offline Senior Member
    Join Date
    Mar 2008
    Posts
    447
    Rep Power
    7

    Default

    Quote Originally Posted by Eranga View Post
    Nice to hear that you find the error there. :)
    Thxs for complimment..

  9. #89
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    So if you have solved the issue in your application, don't forget to mark the thread resolved.

  10. #90
    Sarinam is offline Senior Member
    Join Date
    Jun 2008
    Posts
    121
    Rep Power
    0

    Default

    Quote Originally Posted by Eranga View Post
    So if you have solved the issue in your application, don't forget to mark the thread resolved.
    Sir you help Mir a loat..you are good Moderator..
    Last edited by Sarinam; 07-09-2008 at 08:44 AM.

  11. #91
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Quote Originally Posted by Sarinam View Post
    Sir you help Mir a loat..you are good Moderator..
    I like to help, but it should be valued. I mean people should get something from me, should learn something from me. :)

  12. #92
    Mir
    Mir is offline Senior Member
    Join Date
    Mar 2008
    Posts
    447
    Rep Power
    7

    Default

    Quote Originally Posted by Eranga View Post
    I like to help, but it should be valued. I mean people should get something from me, should learn something from me. :)
    Thxs for help sir

Page 5 of 5 FirstFirst ... 345

Similar Threads

  1. Replies: 0
    Last Post: 04-01-2008, 04:14 PM
  2. Hide hyperlink address on status bar
    By simon in forum JavaServer Pages (JSP) and JSTL
    Replies: 2
    Last Post: 07-24-2007, 10:34 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •