File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes Java dynamic gui  help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Java dynamic gui  help" Watch "Java dynamic gui  help" New topic
Author

Java dynamic gui help

Ali Bm
Greenhorn

Joined: Mar 06, 2011
Posts: 2

Hello,

I posted this question the other day in SomeOtherForum.com Java-forums.org, but wasn't able to get a good answer, so now I'm asking here...
I have a project and I'm working on the important part now.
I want to create this interface in the end and informations in DB.
This my goal, this is a prototypical interface created with MockupScreens


now I created this interface, I think I'm progressing slowly because I made it in one day
it needs more work on...
This is the ouput:


This interface is composed by :
- one columnPanel with a GridLayout
- a rowPanel which contains the 5 buttons : ( title of row + up + down + delete + add)

Now I created the add button but itsn't woks like I want.
It adds rowPanel in columnPanel. For example when I click add buttton on row N°0 60, the next rowPanel will be in the end of list not just after.
I want the new rowPanel appear between N°0 60 and N°0 13 .

I added a random number with number of row to differentiate between rowPanels.
Someone have an idea.
I tryed to print the index of rowpanel using getComponent() but it always gives 0.



Here's my full code:



Also I wouldn't start adding rowPanels by the start button,
I created it because it call the addRow method and the first rowPanel won't appear.

Waiting for your response.
Thanks in advance.
Best regrads,
Ali.

alibm
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4542
    
    5

1. Welcome to the Ranch!

2. Please BeForthrightWhenCrossPostingToOtherSites.
http://www.java-forums.org/awt-swing/40000-can-i-add-elements-java-gui-2.html

edit: and http://www.daniweb.com/forums/thread351492.html

3. Please read the JavaRanch Official policy on registered names.


luck, db
There are no new questions, but there may be new answers.
Ali Bm
Greenhorn

Joined: Mar 06, 2011
Posts: 2

Sorry brothers,
I posted this question the other day in Java-forums.org, but wasn't able to get a good answer, so now I'm asking here...
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19693
    
  20

And that's fine, but you should tell us that you've posted the same question on other boards, and tell the people on the other boards that you have posted the question here; Darryl's link to BeForthrightWhenCrossPostingToOtherSites says why.

And you should follow the advice from Darryl's point 3.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java dynamic gui help