My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 59: Render new xml-file in existing frame
1 person starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  ----
Closed:  Nov 2010


 
Reported by t.horme...@gmx.de, Nov 20, 2010
Hi,

sorry for posting this here but I did not find another contact option.
I am currently working on my diploma thesis and i want to include swixml in my project. I already read a lot about swixml but I still have this problem:

when I render a frame the first time like in your login example it works fine. however i would like to do the following: after the user hits "submit" (or any other button) in the screen i want to proceed to a new screen. i wrote the following code in the submit action:

public void submit(){
// sa is a reference to the SwingApplication
// frame is mapped to the currently displayed frame
sa.render(frame,"screen2.xml"); 
}

this does not throw any exception but the user interface does not change at all.

how can i manage to show a new frame or a new panel in an existing frame?

thanks a lot in advance!
Thorsten







 how can i manage this?
Nov 21, 2010
Project Member #1 bartolom...@gmail.com
Hi, thx for your interest

the sa.render(...)  creates the swing components but doesn't show it ... so you have to change your code in the follow way.

public void submit(){
// sa is a reference to the SwingApplication
// frame is mapped to the currently displayed frame
    sa.render(frame,"screen2.xml"); 
    
    sa.show( frame ); 
}

i hope this helps 

good luck for your diploma


Status: Done
Labels: -Type-Defect Type-Other

Powered by Google Project Hosting