codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  for java layour  gurmeet4u0226 at 06:46 on Tuesday, November 21, 2006
 

i want to set textfields and button on desire place in frmes how i can i do that

plz tell me i am new


  Re: for java layour  mmarab at 08:26 on Monday, December 04, 2006
 

Create a JPANEL and set it with a desired layout, such as GRIDLAYOUT, using this arrange your buttons and textfields(i.e. add them to the panel). Then add the JPanel to your container. You will need to create a frame also if you have not done this already, an easy way would be to make your class extend JFrame. i.e.

class myclass extends JFrame

Just make sure you import the appropriate packages also. java.sun.com has great demos of GUIS with code in them which allows you to find out how stuff is put together.

hope this helps.

  Re: for java layour  mmarab at 08:28 on Monday, December 04, 2006
 

Sorry forget to say, also when adding your panel to the container. If you are using Borderlayout on the container, set the location where you would like it to be displayed, i.e. NORTH, SOUTH, EAST, WEST OR CENTRE.








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums
//








Recent Forum Threads
•  Re: Problem with concatenation
•  how to genrates the crystal report by sending a id at runtime
•  help me
•  pls help me with this..
•  Re: Security - Code verify
•  Job @ EarlySail
•  Job @ EarlySail (perl)
•  IPC problem
•  Re: import contacts of msn/yahoo


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2007