Would it be safe to assume that if I had a synchronized DAO for each model
that implements an interface too each with access to XML resources. So when my JDesktopPnane builds each JTabbedPane with the corresponding view GUI panel that I could have the code in the in each GUI panel to send the needed query name from XML to the interface for the each DAO and populate components on the GUI when they are built? and or any other actioncomand performed?

could this act as binding the view to the model?
thanks

Presently the app builds panels after login depending on the profile. the adminBean becomes an instance of the adminDAO that implements the AdminDAO interface. I have not actually ever used the interface part but it looks like I should be able to have methods that would return result sets back to the adminPanel.
could someone give me a way to test if the interface could be called from the adminPanel (table) to use this interface and have it add some kind of data to a component on the admin panel?
just an empty JTable. any other simple component would surfice

package view.content.panels.guide;

/**
 *
 * @author depot
 */
public class AdminPanel extends javax.swing.JPanel {

    /** Creates new form AdminPanel */
    public AdminPanel() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    
    // <editor-fold defaultstate="collapsed" desc="Generated Code">
    private void initComponents() {

        jScrollPane1 = new javax.swing.JScrollPane();
        jTable1 = new javax.swing.JTable();

        jTable1.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        jScrollPane1.setViewportView(jTable1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(62, 62, 62)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(217, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
    }// </editor-fold>


    // Variables declaration - do not modify
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JTable jTable1;
    // End of variables declaration

}
package model.dao;
/**
 *
 * @author depot
 */
public interface AdminDAO {
    /*
     public Admin select()
            throws LoginException,
            //UnknownstudentUserException,
            IncorrectPasswordException;
     

    public void insertAdmin(Admin adminUser)
            throws SubscribeException;

    public void update(Admin adminUser)
            throws ProfileException;

    public void delete(Admin adminUser)
            throws UnsubscribeException;
    public void fillOptionsCB(Admin adminUser)
        throws UnsubscribeException;
*/
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.