Re: Accessing the associated dataModel when a particular frame is selected
From: ak (spam_at_imagero.com)
Date: 12/31/03
- Previous message: Bob Wightman: "Accessing the associated dataModel when a particular frame is selected"
- In reply to: Bob Wightman: "Accessing the associated dataModel when a particular frame is selected"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 31 Dec 2003 17:41:48 +0100
> In line with the MVC architecture of Swing, it appears as if I am
> trying to get to the model through the view rather than keeping the
> model separate.
because your users interact with view, not with model.
create something like this:
public class JTableInternalFrame extends JInternalFrame {
JTable table;
public JTableInternalFrame (JTable table) {
this.table = table;
getContentPane().add(new JScrollPane(this.table));
addInternalFrameListener(new InternalFrameAdapter() {
public void internalFrameActivated(InternalFrameEvent e) {
//add row here
}
}
}
}
____________
http://reader.imagero.com the best java image reader.
- Previous message: Bob Wightman: "Accessing the associated dataModel when a particular frame is selected"
- In reply to: Bob Wightman: "Accessing the associated dataModel when a particular frame is selected"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|