Hi Matt.
Yesterday, I did my presentation.
It was about RIA in general.
My demo was written using JSeamless and the JPA API (Hibernate+HibernateAnnotations+EntityManager).
Your DataTable implementation was used to display the list of items in the DB.
Can you show me some code reproducing this? Realize that the location and size of the Window is bound to the container to which it is added.
I have troubles with both setLocation() and setVisible().
Bellow is a simplified code reproducing the problem:
public class BugWindow extends Application {
private static final long serialVersionUID = -2991083575499294265L;
private static final String bug = "Bug?";
private static final Point bugBoxLocation = new Point(5, 5);
public BugWindow() {
super(bug);
/** note the location point bugBoxLocation*/
MessageBox bugBox = new MessageBox(bug, new Dimension(200, 150),
bugBoxLocation);
/** set the box to invisible */
bugBox.setVisible(false);
add(bugBox);
/** as it's still visible, once more, try to set it to invisible!!!! */
bugBox.setVisible(false);
/** as it's still centered, try once more to set its location */
bugBox.setLocation(bugBoxLocation);
/** even update() does not help */
// update();
}
class MessageBox extends Window {
private static final long serialVersionUID = 2639194331024540019L;
public MessageBox(String title, Dimension size, Point location) {
super(title);
if (location != null)
this.setLocation(location);
getStyle().setShowEffect(EffectFactory.createFadeIn(1000));
setSize(size);
setShowClose(true);
setResizable(true);
Box box = new Box();
box.setSize(Dimension.createPercentage(100, 100));
add(box);
}
}
}