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 4 of 4

Thread: component and container class

  1. #1
    Junior Member
    Join Date
    May 2014
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default component and container class

    why methods like getAlignmentY() ,getAlignmentX() or getComponentAt(int x, int y) etc are repeated in container and component ?


  2. #2
    Junior Member
    Join Date
    May 2014
    Posts
    29
    Thanks
    4
    Thanked 2 Times in 2 Posts

    Default Re: component and container class

    If you have a container, you may wish to specify things like size, location etc...
    if you add a component to that container, you also may want to specify where that component will be inside of the container, or the size, etc...

  3. #3
    Junior Member
    Join Date
    May 2014
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: component and container class

    thanks ... i got it. i am so silly to ask such questions..

  4. #4
    Junior Member
    Join Date
    May 2014
    Posts
    29
    Thanks
    4
    Thanked 2 Times in 2 Posts

    Default Re: component and container class

    Quote Originally Posted by noobjava View Post
    thanks ... i got it. i am so silly to ask such questions..
    Not at all... I've asked some silly questions too, and learned something from all of them
    There is no such thing as a stupid question, perhaps a misinformed one, or one that doesn't show any effort, but nop, no stupid questions!

Similar Threads

  1. Fill in Container Class using another Class ?
    By gberisha in forum Collections and Generics
    Replies: 3
    Last Post: January 8th, 2013, 09:38 AM
  2. Does MessagePanel class/ component exist in Java awt/ swing?
    By bryanOnInternet in forum AWT / Java Swing
    Replies: 6
    Last Post: December 21st, 2012, 01:31 AM
  3. Adding my own object to a Container...not working.
    By Tombomb in forum Object Oriented Programming
    Replies: 1
    Last Post: January 9th, 2012, 03:18 PM
  4. [Jade-Java]Distributed Container
    By ermasto in forum Algorithms & Recursion
    Replies: 0
    Last Post: January 25th, 2011, 05:08 AM
  5. Design Java Generic Container-please help!!!
    By zhoujackji in forum Collections and Generics
    Replies: 1
    Last Post: November 13th, 2010, 04:55 AM

Tags for this Thread