Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 5 of 5

Thread: displaying icon and title in multiple java frames

  1. #1
    Junior Member
    Join Date
    Jan 2014
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default displaying icon and title in multiple java frames

    Hello,
    I developed a simple java gui . On running a frame opens with 5 buttons and each button opens another frame when selected. There are no errors and frames open and close as required however i see that only the main program frame has the icon and title that i assigned and the frames bieng called through the buttons have the default frame with java icon and no title although it's been specified in the code of these called frames. When these called frames are executed induvidually though the program the title and icon are displayed. Any one has any idea why this behavior is happening and a way to solve it? Frankly it's driving me nuts.


  2. #2
    Member andbin's Avatar
    Join Date
    Dec 2013
    Location
    Italy
    Posts
    443
    Thanks
    4
    Thanked 122 Times in 114 Posts

    Default Re: displaying icon and title in multiple java frames

    Quote Originally Posted by Prathiksha View Post
    the frames bieng called through the buttons have the default frame with java icon and no title although it's been specified in the code of these called frames.
    Post the code, it's not easy to spot a problem with just these indications.
    Andrea, www.andbin.net SCJP 5 (91%) SCWCD 5 (94%)

    Useful links for Java beginners My new project Java Examples on Google Code

  3. The Following User Says Thank You to andbin For This Useful Post:

    Prathiksha (January 13th, 2014)

  4. #3
    Junior Member
    Join Date
    Jan 2014
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: displaying icon and title in multiple java frames

    Quote Originally Posted by andbin View Post
    Post the code, it's not easy to spot a problem with just these indications.
    Thanks, I did it and it worked well

    --- Update ---

    I was also wondeing if there's a way to change the icon of the jar file?

    --- Update ---

    I was also wondeing if there's a way to change the icon of the jar file?

  5. #4
    Member andbin's Avatar
    Join Date
    Dec 2013
    Location
    Italy
    Posts
    443
    Thanks
    4
    Thanked 122 Times in 114 Posts

    Default Re: displaying icon and title in multiple java frames

    Quote Originally Posted by Prathiksha View Post
    I was also wondeing if there's a way to change the icon of the jar file?
    The icon of the jar you see in the system's file explorer/manager depends only on the settings in the system .... not on something that can be into the jar.
    Andrea, www.andbin.net SCJP 5 (91%) SCWCD 5 (94%)

    Useful links for Java beginners My new project Java Examples on Google Code

  6. #5
    Junior Member
    Join Date
    Jan 2014
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: displaying icon and title in multiple java frames

    Quote Originally Posted by andbin View Post
    The icon of the jar you see in the system's file explorer/manager depends only on the settings in the system .... not on something that can be into the jar.
    Thank you

Similar Threads

  1. Displaying Multiple jTables in JTestArea
    By anchal87mca@gmail.com in forum AWT / Java Swing
    Replies: 1
    Last Post: August 23rd, 2013, 01:58 AM
  2. Replies: 1
    Last Post: November 19th, 2012, 09:25 AM
  3. Displaying multiple images using servlet or JSP into html table
    By rajeshraj in forum File I/O & Other I/O Streams
    Replies: 5
    Last Post: November 1st, 2012, 12:21 PM
  4. Creating subsequent frames in java with Jframe
    By bondage in forum AWT / Java Swing
    Replies: 3
    Last Post: April 11th, 2011, 07:28 AM
  5. displaying multiple jpanels in a jframe
    By tooktook22 in forum AWT / Java Swing
    Replies: 1
    Last Post: January 19th, 2011, 12:46 PM

Tags for this Thread