Results 1 to 3 of 3
  1. #1
    DiTeN is offline Member
    Join Date
    Jun 2010
    Posts
    1
    Rep Power
    0

    Default order swings controls in JPanel

    hello people, i am from Uruguay, and i speak spanish, first of all i apologize if my english is not good....
    well my problem, is that i have a jframe, with a jinternalframe, and i add yo ther internal a panel, which inherits from another jPanel, and i have controls which i inherit, and others that i add to the new panel sun, the thing is that i do not know how to order the controls, they appeaar anywhere, i used flowlayout, but ther appear not the way i want, and a JTextField loose his size, and appears so little that nobody can write in there... any idea to order controls in JPanel, with inheritance?

    thanks... i hope you understand my problem....

  2. #2
    j2me64's Avatar
    j2me64 is offline Senior Member
    Join Date
    Sep 2009
    Location
    Zurich, Switzerland
    Posts
    962
    Rep Power
    6

    Default

    Quote Originally Posted by DiTeN View Post
    any idea to order controls in JPanel, with inheritance?

    create a jpanel and define a gridlayout for this jpanel corresponding with the number of rows and columns you have. i could be more precise, if you post the code that don't works like you want.

  3. #3
    PhHein's Avatar
    PhHein is offline Senior Member
    Join Date
    Apr 2009
    Location
    Germany
    Posts
    1,430
    Rep Power
    7

Similar Threads

  1. Activex Controls
    By vivek123 in forum SWT / JFace
    Replies: 2
    Last Post: 11-04-2009, 12:22 PM
  2. Controls
    By zzpprk in forum AWT / Swing
    Replies: 2
    Last Post: 11-04-2009, 02:32 AM
  3. the depth of SWT controls
    By Alarmmy in forum SWT / JFace
    Replies: 0
    Last Post: 07-13-2009, 09:51 AM
  4. how to place the controls >
    By makpandian in forum AWT / Swing
    Replies: 1
    Last Post: 12-18-2008, 06:17 AM
  5. Controls in Eclipse
    By hisouka in forum Eclipse
    Replies: 6
    Last Post: 08-04-2008, 11:27 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
  •