bsorrentino / swixml2

Project that extends the original swixml project providing integration with Swing Application Framework (JSR 296) and Beans Binding (JSR 295) to further simplifying the GUI creation & management
0 stars 0 forks source link

Render new xml-file in existing frame #59

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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?

Original issue reported on code.google.com by t.horme...@gmx.de on 20 Nov 2010 at 4:14

GoogleCodeExporter commented 9 years ago
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

Original comment by bartolom...@gmail.com on 21 Nov 2010 at 5:33