40 MessageViewer messagesViewer =
new MessageViewer();
41 ContactsViewer contactsViewer =
new ContactsViewer();
43 MediaViewer mediaViewer =
new MediaViewer();
44 CallLogViewer callLogViewer =
new CallLogViewer();
49 tabPane.add(messagesViewer.getDisplayName(), messagesViewer);
50 tabPane.add(callLogViewer.getDisplayName(), callLogViewer);
51 tabPane.add(contactsViewer.getDisplayName(), contactsViewer);
52 tabPane.add(mediaViewer.getDisplayName(), mediaViewer);
75 java.awt.GridBagConstraints gridBagConstraints;
77 tabPane =
new javax.swing.JTabbedPane();
79 setLayout(
new java.awt.GridBagLayout());
81 tabPane.addChangeListener(
new javax.swing.event.ChangeListener() {
82 public void stateChanged(javax.swing.event.ChangeEvent evt) {
83 tabPaneStateChanged(evt);
86 gridBagConstraints =
new java.awt.GridBagConstraints();
87 gridBagConstraints.gridx = 0;
88 gridBagConstraints.gridy = 0;
89 gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
90 gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
91 gridBagConstraints.weightx = 1.0;
92 gridBagConstraints.weighty = 1.0;
93 add(
tabPane, gridBagConstraints);