JTabbedPane keeps track of last selected tab

Hi everybody,
experiencing some problems with swing...
I've got a javax.swing.JTabbedPane whose behaviour is kind of strange: I need my application to have always the same tab selected at initialisation, which is very simple in theory. In my initialisation method I just do:
MainTab.setSelectedIndex(0);
But instead of selecting the first tab (index 0), it keeps selected the one I last chose in the previous run.
Any idea?
Thanks in advance.
JON HAITZ

Hi calvino_ind,
I am unfortunately not allowed to disclose my entire code, but I'm posting the code part where the problem may lie so that you can try to guess where the problem comes from:
public class VitalSignMonitorView extends FrameView {
public VitalSignMonitorView(SingleFrameApplication app) {
super(app);
initComponents();
init();
// status bar initialization - message timeout, idle icon and busy animation, etc
ResourceMap resourceMap = getResourceMap();
int messageTimeout = resourceMap.getInteger("StatusBar.messageTimeout");
messageTimer = new Timer(messageTimeout, new ActionListener() {
public void actionPerformed(ActionEvent e) {
statusMessageLabel.setText("");
messageTimer.setRepeats(false);
int busyAnimationRate = resourceMap.getInteger("StatusBar.busyAnimationRate");
for (int i = 0; i < busyIcons.length; i++) {
busyIcons[i] = resourceMap.getIcon("StatusBar.busyIcons[" + i + "]");
busyIconTimer = new Timer(busyAnimationRate, new ActionListener() {
public void actionPerformed(ActionEvent e) {
busyIconIndex = (busyIconIndex + 1) % busyIcons.length;
statusAnimationLabel.setIcon(busyIcons[busyIconIndex]);
idleIcon = resourceMap.getIcon("StatusBar.idleIcon");
statusAnimationLabel.setIcon(idleIcon);
progressBar.setVisible(false);
// connecting action tasks to status bar via TaskMonitor
TaskMonitor taskMonitor = new TaskMonitor(getApplication().getContext());
taskMonitor.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
public void propertyChange(java.beans.PropertyChangeEvent evt) {
String propertyName = evt.getPropertyName();
if ("started".equals(propertyName)) {
if (!busyIconTimer.isRunning()) {
statusAnimationLabel.setIcon(busyIcons[0]);
busyIconIndex = 0;
busyIconTimer.start();
progressBar.setVisible(true);
progressBar.setIndeterminate(true);
} else if ("done".equals(propertyName)) {
busyIconTimer.stop();
statusAnimationLabel.setIcon(idleIcon);
progressBar.setVisible(false);
progressBar.setValue(0);
} else if ("message".equals(propertyName)) {
String text = (String)(evt.getNewValue());
statusMessageLabel.setText((text == null) ? "" : text);
messageTimer.restart();
} else if ("progress".equals(propertyName)) {
int value = (Integer)(evt.getNewValue());
progressBar.setVisible(true);
progressBar.setIndeterminate(false);
progressBar.setValue(value);
/** 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() {
mainPanel = new javax.swing.JPanel();
MainTab = new javax.swing.JTabbedPane();
panelWelcome = new javax.swing.JPanel();
labelPatientChoice = new javax.swing.JLabel();
jScrollPane1 = new javax.swing.JScrollPane();
tablePatientList = new javax.swing.JTable();
buttonSelectPatient = new javax.swing.JButton();
buttonCreatePatient = new javax.swing.JButton();
jSeparator5 = new javax.swing.JSeparator();
panelPatient = new javax.swing.JPanel();
jSeparator1 = new javax.swing.JSeparator();
jSeparator2 = new javax.swing.JSeparator();
jSeparator3 = new javax.swing.JSeparator();
jSeparator4 = new javax.swing.JSeparator();
m_PanelPI = new javax.swing.JPanel();
mPI_LabelSex = new javax.swing.JLabel();
mPI_LabelName = new javax.swing.JLabel();
mPI_Name = new javax.swing.JTextField();
mPI_LabelSurname = new javax.swing.JLabel();
mPI_Surname = new javax.swing.JTextField();
mPI_LabelBirthDate = new javax.swing.JLabel();
mPI_BirthDateChooser = new com.toedter.calendar.JDateChooser();
mPI_SexComboBox = new javax.swing.JComboBox();
m_PanelAI = new javax.swing.JPanel();
mAI_LabelWeight = new javax.swing.JLabel();
mAI_Height = new javax.swing.JTextField();
mAI_LabelHeight = new javax.swing.JLabel();
mAI_Weight = new javax.swing.JTextField();
m_PanelSI = new javax.swing.JPanel();
mSI_CentreRegDate = new javax.swing.JLabel();
mSI_LabelSystemRegDate = new javax.swing.JLabel();
mSI_CentreRegDateChooser = new com.toedter.calendar.JDateChooser();
mSI_SystemRegDateFormattedTextField = new javax.swing.JFormattedTextField();
jButton1 = new javax.swing.JButton();
mG_PatientId = new javax.swing.JTextField();
mG_LabelPatientId = new javax.swing.JLabel();
jButton2 = new javax.swing.JButton();
panelContactPerson = new javax.swing.JPanel();
panelIllness = new javax.swing.JPanel();
panelDrugs = new javax.swing.JPanel();
panelDevice = new javax.swing.JPanel();
panelMeasurement = new javax.swing.JPanel();
jScrollPane2 = new javax.swing.JScrollPane();
listMeasurementType = new javax.swing.JList();
labelSelectMeasurementType = new javax.swing.JLabel();
jSeparator6 = new javax.swing.JSeparator();
jScrollPane3 = new javax.swing.JScrollPane();
tableMeasurements = new javax.swing.JTable();
labelTableMeasurements = new javax.swing.JLabel();
jSeparator7 = new javax.swing.JSeparator();
labelSelectedMeasurementType = new javax.swing.JLabel();
textFieldSelectedMeasurementType = new javax.swing.JTextField();
panelMeasurementDisplay = new javax.swing.JPanel();
jTextFieldSelectedPatient = new javax.swing.JTextField();
jLabel14 = new javax.swing.JLabel();
menuBar = new javax.swing.JMenuBar();
javax.swing.JMenu fileMenu = new javax.swing.JMenu();
javax.swing.JMenuItem exitMenuItem = new javax.swing.JMenuItem();
javax.swing.JMenu helpMenu = new javax.swing.JMenu();
javax.swing.JMenuItem aboutMenuItem = new javax.swing.JMenuItem();
statusPanel = new javax.swing.JPanel();
javax.swing.JSeparator statusPanelSeparator = new javax.swing.JSeparator();
statusMessageLabel = new javax.swing.JLabel();
statusAnimationLabel = new javax.swing.JLabel();
progressBar = new javax.swing.JProgressBar();
mainPanel.setAutoscrolls(true);
mainPanel.setName("mainPanel"); // NOI18N
MainTab.setTabLayoutPolicy(javax.swing.JTabbedPane.SCROLL_TAB_LAYOUT);
org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(vitalsignmonitor.VitalSignMonitorApp.class).getContext().getResourceMap(VitalSignMonitorView.class);
MainTab.setToolTipText(resourceMap.getString("MainTab.toolTipText")); // NOI18N
MainTab.setName("MainTab"); // NOI18N
panelWelcome.setToolTipText(resourceMap.getString("panelWelcome.toolTipText")); // NOI18N
panelWelcome.setEnabled(false);
panelWelcome.setName("panelWelcome"); // NOI18N
labelPatientChoice.setFont(resourceMap.getFont("labelPatientChoice.font")); // NOI18N
labelPatientChoice.setText(resourceMap.getString("labelPatientChoice.text")); // NOI18N
labelPatientChoice.setEnabled(false);
labelPatientChoice.setName("labelPatientChoice"); // NOI18N
jScrollPane1.setName("jScrollPane1"); // NOI18N
tablePatientList.setAutoCreateRowSorter(true);
tablePatientList.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
new String [] {
"Patient_ID", "Surname", "Name"
boolean[] canEdit = new boolean [] {
false, false, false
public boolean isCellEditable(int rowIndex, int columnIndex) {
return canEdit [columnIndex];
tablePatientList.setName("tablePatientList"); // NOI18N
tablePatientList.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
tablePatientListMouseClicked(evt);
jScrollPane1.setViewportView(tablePatientList);
buttonSelectPatient.setText(resourceMap.getString("buttonSelectPatient.text")); // NOI18N
buttonSelectPatient.setName("buttonSelectPatient"); // NOI18N
buttonSelectPatient.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
buttonSelectPatientMouseClicked(evt);
buttonCreatePatient.setText(resourceMap.getString("buttonCreatePatient.text")); // NOI18N
buttonCreatePatient.setName("buttonCreatePatient"); // NOI18N
buttonCreatePatient.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
buttonCreatePatientMouseClicked(evt);
jSeparator5.setName("jSeparator5"); // NOI18N
javax.swing.GroupLayout panelWelcomeLayout = new javax.swing.GroupLayout(panelWelcome);
panelWelcome.setLayout(panelWelcomeLayout);
panelWelcomeLayout.setHorizontalGroup(
panelWelcomeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panelWelcomeLayout.createSequentialGroup()
.addGap(20, 20, 20)
.addGroup(panelWelcomeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 341, Short.MAX_VALUE)
.addComponent(jSeparator5, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 341, Short.MAX_VALUE)
.addGroup(javax.swing.GroupLayout.Alignment.LEADING, panelWelcomeLayout.createSequentialGroup()
.addComponent(labelPatientChoice, javax.swing.GroupLayout.PREFERRED_SIZE, 179, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))
.addGroup(javax.swing.GroupLayout.Alignment.LEADING, panelWelcomeLayout.createSequentialGroup()
.addComponent(buttonSelectPatient)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 53, Short.MAX_VALUE)
.addComponent(buttonCreatePatient)))
.addGap(514, 514, 514))
panelWelcomeLayout.setVerticalGroup(
panelWelcomeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panelWelcomeLayout.createSequentialGroup()
.addGap(19, 19, 19)
.addGroup(panelWelcomeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(buttonSelectPatient)
.addComponent(buttonCreatePatient))
.addGap(11, 11, 11)
.addComponent(labelPatientChoice)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jSeparator5, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(13, 13, 13)
.addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 539, Short.MAX_VALUE)
.addGap(29, 29, 29))
MainTab.addTab(resourceMap.getString("panelWelcome.TabConstraints.tabTitle"), panelWelcome); // NOI18N
panelPatient.setFocusable(false);
panelPatient.setName("panelPatient"); // NOI18N
panelPatient.addComponentListener(new java.awt.event.ComponentAdapter() {
public void componentShown(java.awt.event.ComponentEvent evt) {
panelPatientComponentShown(evt);
jSeparator1.setName("jSeparator1"); // NOI18N
jSeparator2.setName("jSeparator2"); // NOI18N
jSeparator3.setName("jSeparator3"); // NOI18N
jSeparator4.setName("jSeparator4"); // NOI18N
m_PanelPI.setBorder(javax.swing.BorderFactory.createTitledBorder(null, resourceMap.getString("m_PanelPI.border.title"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, resourceMap.getFont("m_PanelPI.border.titleFont"))); // NOI18N
m_PanelPI.setName("m_PanelPI"); // NOI18N
mPI_LabelSex.setText(resourceMap.getString("mPI_LabelSex.text")); // NOI18N
mPI_LabelSex.setName("mPI_LabelSex"); // NOI18N
mPI_LabelName.setText(resourceMap.getString("mPI_LabelName.text")); // NOI18N
mPI_LabelName.setName("mPI_LabelName"); // NOI18N
mPI_Name.setBackground(resourceMap.getColor("mPI_Name.background")); // NOI18N
mPI_Name.setText(resourceMap.getString("mPI_Name.text")); // NOI18N
mPI_Name.setDisabledTextColor(resourceMap.getColor("mPI_Name.disabledTextColor")); // NOI18N
mPI_Name.setName("mPI_Name"); // NOI18N
mPI_LabelSurname.setText(resourceMap.getString("mPI_LabelSurname.text")); // NOI18N
mPI_LabelSurname.setName("mPI_LabelSurname"); // NOI18N
mPI_Surname.setText(resourceMap.getString("mPI_Surname.text")); // NOI18N
mPI_Surname.setDisabledTextColor(resourceMap.getColor("mPI_Surname.disabledTextColor")); // NOI18N
mPI_Surname.setName("mPI_Surname"); // NOI18N
mPI_LabelBirthDate.setText(resourceMap.getString("mPI_LabelBirthDate.text")); // NOI18N
mPI_LabelBirthDate.setName("mPI_LabelBirthDate"); // NOI18N
mPI_BirthDateChooser.setBackground(resourceMap.getColor("mPI_BirthDateChooser.background")); // NOI18N
mPI_BirthDateChooser.setName("mPI_BirthDateChooser"); // NOI18N
mPI_SexComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Male", "Female" }));
mPI_SexComboBox.setName("mPI_SexComboBox"); // NOI18N
javax.swing.GroupLayout m_PanelPILayout = new javax.swing.GroupLayout(m_PanelPI);
m_PanelPI.setLayout(m_PanelPILayout);
m_PanelPILayout.setHorizontalGroup(
m_PanelPILayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(m_PanelPILayout.createSequentialGroup()
.addContainerGap()
.addGroup(m_PanelPILayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addGroup(m_PanelPILayout.createSequentialGroup()
.addComponent(mPI_LabelName, javax.swing.GroupLayout.PREFERRED_SIZE, 126, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(mPI_Name, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(m_PanelPILayout.createSequentialGroup()
.addComponent(mPI_LabelSurname, javax.swing.GroupLayout.PREFERRED_SIZE, 126, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(mPI_Surname, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(m_PanelPILayout.createSequentialGroup()
.addComponent(mPI_LabelBirthDate, javax.swing.GroupLayout.PREFERRED_SIZE, 126, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(mPI_BirthDateChooser, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGroup(m_PanelPILayout.createSequentialGroup()
.addComponent(mPI_LabelSex, javax.swing.GroupLayout.PREFERRED_SIZE, 126, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(mPI_SexComboBox, 0, 159, Short.MAX_VALUE)))
.addContainerGap(36, Short.MAX_VALUE))
m_PanelPILayout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {mPI_Name, mPI_Surname});
m_PanelPILayout.setVerticalGroup(
m_PanelPILayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(m_PanelPILayout.createSequentialGroup()
.addContainerGap()
.addGroup(m_PanelPILayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(mPI_LabelName, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(mPI_Name, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(m_PanelPILayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(mPI_LabelSurname, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(mPI_Surname, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(m_PanelPILayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(mPI_LabelBirthDate, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(mPI_BirthDateChooser, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(m_PanelPILayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(mPI_LabelSex, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(mPI_SexComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
m_PanelAI.setBorder(javax.swing.BorderFactory.createTitledBorder(null, resourceMap.getString("m_PanelAI.border.title"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, resourceMap.getFont("m_PanelAI.border.titleFont"))); // NOI18N
m_PanelAI.setName("m_PanelAI"); // NOI18N
mAI_LabelWeight.setText(resourceMap.getString("mAI_LabelWeight.text")); // NOI18N
mAI_LabelWeight.setName("mAI_LabelWeight"); // NOI18N
mAI_Height.setDisabledTextColor(resourceMap.getColor("mAI_Height.disabledTextColor")); // NOI18N
mAI_Height.setName("mAI_Height"); // NOI18N
mAI_LabelHeight.setText(resourceMap.getString("mAI_LabelHeight.text")); // NOI18N
mAI_LabelHeight.setName("mAI_LabelHeight"); // NOI18N
mAI_Weight.setDisabledTextColor(resourceMap.getColor("mAI_Weight.disabledTextColor")); // NOI18N
mAI_Weight.setName("mAI_Weight"); // NOI18N
javax.swing.GroupLayout m_PanelAILayout = new javax.swing.GroupLayout(m_PanelAI);
m_PanelAI.setLayout(m_PanelAILayout);
m_PanelAILayout.setHorizontalGroup(
m_PanelAILayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(m_PanelAILayout.createSequentialGroup()
.addContainerGap()
.addGroup(m_PanelAILayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(mAI_LabelHeight, javax.swing.GroupLayout.PREFERRED_SIZE, 126, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(mAI_LabelWeight, javax.swing.GroupLayout.PREFERRED_SIZE, 126, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(m_PanelAILayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(mAI_Weight, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(mAI_Height, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap(38, Short.MAX_VALUE))
m_PanelAILayout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {mAI_Height, mAI_Weight});
m_PanelAILayout.setVerticalGroup(
m_PanelAILayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(m_PanelAILayout.createSequentialGroup()
.addContainerGap()
.addGroup(m_PanelAILayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(mAI_Weight, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(mAI_LabelWeight, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(m_PanelAILayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(mAI_LabelHeight, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(mAI_Height, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
m_PanelSI.setBorder(javax.swing.BorderFactory.createTitledBorder(null, resourceMap.getString("m_PanelSI.border.title"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, resourceMap.getFont("m_PanelSI.border.titleFont"))); // NOI18N
m_PanelSI.setName("m_PanelSI"); // NOI18N
mSI_CentreRegDate.setText(resourceMap.getString("mSI_CentreRegDate.text")); // NOI18N
mSI_CentreRegDate.setName("mSI_CentreRegDate"); // NOI18N
mSI_LabelSystemRegDate.setText(resourceMap.getString("mSI_LabelSystemRegDate.text")); // NOI18N
mSI_LabelSystemRegDate.setName("mSI_LabelSystemRegDate"); // NOI18N
mSI_CentreRegDateChooser.setBackground(resourceMap.getColor("mSI_CentreRegDateChooser.background")); // NOI18N
mSI_CentreRegDateChooser.setName("mSI_CentreRegDateChooser"); // NOI18N
mSI_SystemRegDateFormattedTextField.setBackground(resourceMap.getColor("mSI_SystemRegDateFormattedTextField.background")); // NOI18N
mSI_SystemRegDateFormattedTextField.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.DateFormatter()));
mSI_SystemRegDateFormattedTextField.setText(resourceMap.getString("mSI_SystemRegDateFormattedTextField.text")); // NOI18N
mSI_SystemRegDateFormattedTextField.setDisabledTextColor(resourceMap.getColor("mSI_SystemRegDateFormattedTextField.disabledTextColor")); // NOI18N
mSI_SystemRegDateFormattedTextField.setEnabled(false);
mSI_SystemRegDateFormattedTextField.setName("mSI_SystemRegDateFormattedTextField"); // NOI18N
javax.swing.GroupLayout m_PanelSILayout = new javax.swing.GroupLayout(m_PanelSI);
m_PanelSI.setLayout(m_PanelSILayout);
m_PanelSILayout.setHorizontalGroup(
m_PanelSILayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(m_PanelSILayout.createSequentialGroup()
.addContainerGap()
.addGroup(m_PanelSILayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
.addComponent(mSI_LabelSystemRegDate, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(mSI_CentreRegDate, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 126, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(m_PanelSILayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(mSI_CentreRegDateChooser, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(mSI_SystemRegDateFormattedTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 151, Short.MAX_VALUE))
.addContainerGap(44, Short.MAX_VALUE))
m_PanelSILayout.setVerticalGroup(
m_PanelSILayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(m_PanelSILayout.createSequentialGroup()
.addContainerGap()
.addGroup(m_PanelSILayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(mSI_LabelSystemRegDate, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(mSI_SystemRegDateFormattedTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(m_PanelSILayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(mSI_CentreRegDate, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(mSI_CentreRegDateChooser, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
jButton1.setText(resourceMap.getString("jButton1.text")); // NOI18N
jButton1.setEnabled(false);
jButton1.setName("jButton1"); // NOI18N
jButton1.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
ButtonSavePatientDataMouseClicked(evt);
mG_PatientId.setText(resourceMap.getString("mG_PatientId.text")); // NOI18N
mG_PatientId.setDisabledTextColor(resourceMap.getColor("mG_PatientId.disabledTextColor")); // NOI18N
mG_PatientId.setName("mG_PatientId"); // NOI18N
mG_LabelPatientId.setText(resourceMap.getString("mG_LabelPatientId.text")); // NOI18N
mG_LabelPatientId.setName("mG_LabelPatientId"); // NOI18N
jButton2.setText(resourceMap.getString("jButton2.text")); // NOI18N
jButton2.setName("jButton2"); // NOI18N
jButton2.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
ButtonModifyPatientDataMouseClicked(evt);
javax.swing.GroupLayout panelPatientLayout = new javax.swing.GroupLayout(panelPatient);
panelPatient.setLayout(panelPatientLayout);
panelPatientLayout.setHorizontalGroup(
panelPatientLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panelPatientLayout.createSequentialGroup()
.addGroup(panelPatientLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panelPatientLayout.createSequentialGroup()
.addContainerGap()
.addGroup(panelPatientLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(m_PanelSI, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(m_PanelAI, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(m_PanelPI, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGap(515, 515, 515)
.addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(5, 5, 5)
.addComponent(jSeparator2, javax.swing.Group

Similar Messages

  • Need to Keep track of last prompted value

    I have a requirement. I need to keep track the last prompted value.
    Like, If we have run a report for '01-01-2013' date and 'Sony' Category. If the same report I will run in next time the report should run with those default value ('01-01-2013' date and 'Sony' Category). That means default value of a dashboard prompt should be the last prompted value.
    Please tell me how to achieve the same.

    Teach your users how to properly use "Saved Customizations": http://docs.oracle.com/cd/E23943_01/bi.1111/e10544/dashboards.htm#BIEUG395

  • How to keep track of last song played?

    Hi!
    Does anyone know how to keep track of which song played last time before itunes was closed? I have a big list of songs in my playlist and I play it everyday while I'm working. If I shut down my computer and start it again the next day, I have to manually look for the song I played the previous evening. Is there a way where it will keep track of the last song and play it from that?
    Thanks
    JB

    Subwaygirl, welcome to the Mac family! I'm not sure whether you're asking about beginning to play from the last song played on your iPod or iTunes so I'll answer both.
    From the iPod, simply hit Play and it will begin at the next song. It cannot go back to the last song played.
    From iTunes, use my answer to Chris to add the Last Played column, sort by that and select the song at the top of the list. That is your most recently played song. If you hit the >> or Next button you will then go to the next song in the randomly-sorted list.
    Powerbook G3 Mac OS X (10.3.9)

  • Keeping track of user selections - button highlights

    Hello, I would like to be able to make an audio setup menu (3 tracks) and when a user returns to the menu, the button for that track will already be selected.
    With other authoring programs I would use a GPRM script, but Encore doesn't have scripting/GPRM tracking as far as I know.  Is there another way to do this?
    Example:
    English 5.1
    Spanish 2.0
    French 2.0
    User selects French 2.0, watches a few clips and wants Enlish instead.  When he returns to the menu, he sees this:
    English 5.1
    Spanish 2.0
    French 2.0
    Thanks!

    I have not used it, but see "Indicate the active audio or subtitle track" here:
    http://help.adobe.com/en_US/encore/cs/using/WSbaf9cd7d26a2eabfe8074010 38582db29-7e8ca.html

  • Keeping track of parts selected and approved already

    I have the following tables
    create table table_one
           table_id varchar2(40),
           location_place varchar2 (100)
    );made using the following insert statement
    insert into table_one
        (table_id, location_place)
    values
        ('g1223', 'NEWYORK');
    insert into table_one
        (table_id, location_place)
    values
        ('g1224', 'BOSTON');
    insert into table_one
        (table_id, location_place)
    values
        ('g1225', 'DALLAS');
    insert into table_one
        (table_id, location_place)
    values
        ('g1226', 'NEWYORK');
    insert into table_one
        (table_id, location_place)
    values
        ('g1226', 'PARIS');
    insert into table_one
        (table_id, location_place)
    values
        ('g1226', 'ABIDJAN');
        now my question is, I have the idea in my mind already but the syntax is the main problem since I am still a beginer in oracle. I can do this easily in visual.studio.net but I have to do it first in oracle to test it out and see whether it works.
    question
    I am trying to create a simple interface whereby from the above table, three table_id will be displayed and basically what happens is the user has to look for those three table_id physically in the real world. Now if those table_id has been found, the user is able to enter a simple input like Y or 1 which signify found and N or 0 signify not found. Now once the input are entered, those table_id are transferred to a new table called table_two. see code
    create table table_two
           table_id varchar2(40),
           location_place varchar2 (100)
    );THe idea of using a table_two is to prevent the same table_id from being picked and looked for all the time. Instead, what is meant to happen is basically everyday a new table_id from table_one is going to be picked and the user will search for them phyiscally and input 1 or Y, this has to occurs so that in a year all table_id are searched for physically. Note also, sometimes the user might not be able to get to all table_id picked for that day. Also, table_one techincally has up to 300,000 table_ids. These are just samples I included. My question though. How can this simple interface be implemented. I will appreciate any help. Thank you
    Edited by: user13328581 on Aug 23, 2010 12:42 PM

    I just noticed your table actually appears to use a combination of table_id and location_place as its primary key. Is this correct, does your primary key consist of these 2 columns, or is there a different column that by itself is the primary key? As is, my suggested solution won't work, but if you can tell me this, I can give you an example that will work.
    If I assume you use both columns as your primary key, here are 2 options for you:
    CREATE TABLE     table_three
    (     table_id     VARCHAR2(40)     NOT NULL
    ,     location_place     VARCHAR2(100)     NOT NULL     
    ,     date_found     DATE
    INSERT INTO     table_three
    VALUES ('g1226', 'NEWYORK', SYSDATE-10);Then use the following query to populate your list of table_id/locations to check:
    SELECT     t1.*
    FROM     table_one t1
    ,     table_three t3
    WHERE     t1.table_id          = t3.table_id (+)     -- (+) for outer join, since we want to include all values in table_one, whether or not there's a record for that value in table_three
    AND     t1.location_place     = t3.location_place (+)
    AND     (     t3.date_found     <= ADD_MONTHS(SYSDATE, -12)
         OR     t3.date_found     IS NULL
    ;(given the one record inserted in table_three, this query will return 5 records)
    Or, if you want a record of when something was checked and whether it got a 'Y' or an 'N' (instead of the above, which assumes you only care if something is a 'Y'), you can use:
    CREATE TABLE     table_four
    (     table_id     VARCHAR2(40)     NOT NULL
    ,     location_place     VARCHAR2(100)     NOT NULL
    ,     date_checked     DATE
    ,     found_flag     CHAR(1)
    INSERT INTO     table_four
    VALUES ('g1226', 'NEWYORK', SYSDATE-10, 'Y');Then use the following query to populate your list of table_id/locations to check:
    SELECT     t1.*
    FROM     table_one     t1
    WHERE     NOT EXISTS     (     
                   SELECT     1
                   FROM     table_four     t4
                   WHERE     t4.table_id          = t1.table_id
                   AND     t4.location_place     = t1.location_place
                   AND     found_flag          = 'Y'
                   AND     date_checked          > ADD_MONTHS(SYSDATE, -12)
    ;And, if you do have multiple people checking these items, John's suggestion is really good.

  • Keeping track of rows already selected

    Hi.  I'm somewhat a T-SQL noob.  The answer to my question may be obvious, but I just want to see if I have any options.  I need to scan a table for rows where a column contains a certain value, and then send an email
    to notify users of the resultset.  I'll run that scan say hourly. The table I'm scanning is in a vendor-owned database that I can't modify.  So I guess I need to keep track of previously selected rows so I don't keep notifying
    users of the same resultset, and store those in a persistent table in a separate utility database.  Right so far?  Thanks for helping me get started.

    Ok, so what you'll want to do then is just select rows that have been edited in the last hour:
    SELECT *
    FROM myTable
    WHERE last_updated_on >= DATEADD(HOUR,-1,CURRENT_TIMESTAMP)
    And you'll only get the rows that have been updated in the last hour :)
    Don't forget to mark helpful posts, and answers. It helps others to find relevant posts to the same question.

  • How can I keep track of ans of quest ???? [Struts]

    hi,
    I am trying to develop Question-Answer pages using struts.
    The problem is when user selectes the right option(radio button) of different different quest. how can i keep track of these selected radio buttons ???
    I mean how can i trace the value of selected radio button corresponding to its quest. in my ActionForm and ActionClass.
    //loop for all questions
    <logic:notEmpty name="QUEST_LIST">
         <logic:iterate id="list" name="QUEST_LIST"  indexId="sno">     
         <tr>
              <td><%=(sno.intValue()+1) %>
              </td>
              <td> <bean:write name="list" property="QUESTION" />
              </td>               
         </tr>
         <tr>//loop for all options of corresponding question
    <logic:iterate id="OptionList" name="list" property="OPTION_LIST">
              <td> 
              </td>
              <td><INPUT type="radio" name="<bean:write name="list" property="QUESTION_ID" />" value="<bean:write name="OptionList" />">
                   <bean:write name="OptionList" />
              </td>
              </logic:iterate>
         </tr>     
         <tr><td> </td>
         </tr>
         </logic:iterate>
    </logic:notEmpty>Now my problem is in statement.....
    INPUT type="radio" name="<bean:write name="list" property="QUESTION_ID" />" value="<bean:write name="OptionList" />">
    if I hardcode the valueof "name" attribute then only one radio button is selected from all the question, so i created it dynamically using quesID.
    now its working fine only one radio can be selected for each quest. BUT how I set the values of these selected radio button in my ActionForm and get it into ActionClass
    I hope u understand what i am trying to say.....
    Please help me......

    hi,
    try "last" in the client's terminal. is this what you are looking for?
    cheers,
    Michael.

  • IPhoto keeps selecting the "Last Import" tab on the left hand side.

    Whenever I'm looking at photos in iPhoto, it will randomly switch to the "Last Import" tab on the left hand side so that I've viewing photos from my last import. It doesn't matter if I'm editing photos, or just looking through events, every 5 minutes or so, iPhoto switching to the Last Import tab. Any one know how to fix this? I've checked iPhoto for updates - it seems mine is up to date.

    Go to your Pictures Folder and find the iPhoto Library there. Right (or Control-) Click on the icon and select 'Show Package Contents'. A finder window will open with the Library exposed.
    Look there for a Folder called 'Auto Import'.
    Drag anything inside to the desktop.
    Relaunch iPhoto.

  • JTabbedPane - BOLD selected tab title text.

    I want to BOLD the selected tab's title text while keeping the unselected tabs' title text in normal font. Anyone know how to achieve this effect?

    I think the simplest  way is to use JTabbedPane.setTabComponentAt, add your own labels, add a ChangeListener to the JTabbedPane and change the labels fonts when tab selection changes.

  • Help with disabling close icon of last opened tab in JTabbedPane

    Hello
    Would someone help me out ? I have 3 tabs opened in a JTabbedPane, each with close icon "X". I am looking for a way to tell my program: if the user closes 2 tabs and only 1 remain, disable the close icon "X" of the last opened tab so that the user is unable to close the last tab. I have searched the forum, most I have run into are how to create the close icon. Would someone give me some insight into how to go about doing this? or if you have come across a forum that discusses this, do please post the link. Also, I am using java 1.6.
    Thanks very much in advance

    On each close, look how many tabs are remaining open in the JTabbedPane (getTabCount).
    If there is only one left, set its close button to invisible. Something like this:
    if (pane.getTabCount() == 1) {
        TabCloseButton tcb = (TabCloseButton) pane.getTabComponentAt(0);
        tcb.getBtClose().setVisible(false);
    }

  • How to keep track of which tab is currently active in the page using Session object?

    Hi,
    Just curious as to whether it is possible to have a PL/SQL event fire on an active tab.
    The reason is I want to keep track of which tab is currently active on the page is that I have "generic" forms and reports published as portlets that I wish to be able to determine from the session object what page/tab the user is coming from and apply certain restrictions etc.
    kind regards,
    Matt.
    null

    Hi Konstantina,
    Yes You can do like that 2012-->q1-->January
    Steps:
    1. Create time dimension hierarchy as by following like Total--> year--> Quarter--> Month--> if you need you can keep Description.
    2. Drag the Year column from period dimension table to the dimension hierarchy of year.
    3. Drag the quarter column from period dimension table to the dimension hierarchy of Quarter.
    4. Drag the month column from period dimension table to the dimension hierarchy of month.
    5. Drag the hierarchy to period dimension table in presentation layer.
    In Answer side keep as it as Default: drill in primary and secondary interaction under column properties.
    For more refer : http://mkashu.blogspot.com
    Regards
    VG

  • How can I edit imported audio track? After selecting and deleting region and joining remaining parts, it keeps playing the track with the deleted part! What am I doing wrong?

    How can I edit imported audio track? After selecting and deleting region, and joining remaining parts, it keeps playing the track with the deleted region!
    What am I doing wrong?

    After selecting and deleting region, and joining remaining parts, it keeps playing the track with the deleted region!
    What am I doing wrong?
    How exactly are you doing this?
    When I cut out a part of an audio region, then drag the remaining parts together, so they are touching, the track will skip the cut out section when playing the file.  Also, if I select the remaining parts of the region and use the command "Edit > join regions". This will create a new audio file with the cut out part deleted.
    You should see this prompt, when you are joining the regions:

  • Changing Colors of selected tab in JTabbedPane.

    Do someone has some code that can show how to
    change the color of the selected tab with JTabbedPane.
    I can change the other tabs colors with setBackground and setForeground, setBackgroundAt........ but it is the selected
    tab that will not change from the default grey color.
    thanks

    try this code, it works.
    public class TabBackgroundChange extends JFrame {
    private JTabbedPane tabPane = null;
    public static final Color selTabColor = Color.red;
    Color nonSelectedTabColor = null;
    public TabBackgroundChange() {
    try {
    UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
    catch(Exception ex) {
    ex.printStackTrace();
    tabPane = new JTabbedPane();
    tabPane.add("One", new JPanel());
    tabPane.add("Two", new JPanel());
    tabPane.add("Three", new JPanel());
    this.getContentPane().add(tabPane);
    this.setSize(200, 200);
    this.setVisible(true);
    tabPane.addChangeListener(new TabChangeListener());
    tabPane.setSelectedIndex(1);
    tabPane.setSelectedIndex(0);
    public static void main(String[] args) {
    TabBackgroundChange tabBackgroundChange1 = new TabBackgroundChange();
    private class TabChangeListener implements ChangeListener {
    public void stateChanged(ChangeEvent ce) {
    int iSelTab = tabPane.getSelectedIndex();
    Color unSelectedBackground = tabPane.getBackgroundAt(iSelTab);
    for(int i=0; i<tabPane.getTabCount(); i++) {
    tabPane.setBackgroundAt(i, unSelectedBackground);
    tabPane.setBackgroundAt(iSelTab, Color.red);
    }

  • Why isn't the selected tab title bold in JTabbedPane? How can I make it be?

    The selected tab title of JTabbedPanel is not bold. Is there a simple way to set it to be bold when a tab is selected? Thanks in advance.

    1. Simply use the HTML code in it's text like '<html><b>NameOfThisTab</b></html>'.
    2. Extend the JTabbedPane and fine-tune the font it uses.

  • How to insure selected tabs are visible in JTabbedPane

    Hello all,
    How can you insure that the selected tab in a JTabbedPane is visible.
    Here is the code:
    import javax.swing.*;
    import java.awt.*;
    public class TabbedPaneTest extends JTabbedPane implements Runnable
    public TabbedPaneTest()
    super(JTabbedPane.TOP, JTabbedPane.SCROLL_TAB_LAYOUT);
    } // end TabbedPaneTest constructor
    public void run ()
    for (int i = 1; i <= 10; i ++)
    try
    this.addTab(Integer.toString(i), createDefaultPanel (i));
    this.getModel().setSelectedIndex(i - 1);
    Thread.sleep(3000);
    } // end try block
    catch (Exception e)
    e.printStackTrace();
    } // end catch block
    } // end for loop
    } // end run method
    private JPanel createDefaultPanel (int index)
    JPanel defaultPanel = new JPanel ();
    defaultPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createLoweredBevelBorder(), Integer.toString(index)));
    return defaultPanel;
    } // end createDefaultPanel method
    public static void main (String args [])
    JFrame frame = new JFrame ();
    TabbedPaneTest tpt = new TabbedPaneTest ();
    frame.getContentPane().add(tpt);
    frame.setSize(200, 200);
    Thread newThread = new Thread (tpt);
    newThread.start();
    frame.setVisible(true);
    } // end main method
    } // end TabbedPaneTest class
    I've crated a JTabbedPane with the tabLayoutPolicy set to JTabbedPane.SCROLL_TAB_LAYOUT.
    If I add enough tabs the scroll buttons appear but the newly adde tab is hidden behind them,
    even though I have set the selection index to the added tab. The content of the panel associated
    with the tab is visible but the tab itself is hidden.
    So the selected tab is hidden behind the scroll buttons.
    Any one know how to insure that if a tab is selected it is visible to the user.
    Thanks

    This is an interesting question so I tried it out. After some poking around to see how Swing does this for mouse clicking (try setting things up so that a tab is only partially visible and then click on the visable part - notice how the whole tab is scrolled into view) I found this:    /**
         * This inner class is marked "public" due to a compiler bug.
         * This class should be treated as a "protected" inner class.
         * Instantiate it only within subclasses of BasicTabbedPaneUI.
        public class TabSelectionHandler implements ChangeListener {
            public void stateChanged(ChangeEvent e) {
                JTabbedPane tabPane = (JTabbedPane)e.getSource();
                tabPane.revalidate();
                tabPane.repaint();
                if (tabPane.getTabLayoutPolicy() == JTabbedPane.SCROLL_TAB_LAYOUT) {
                    int index = tabPane.getSelectedIndex();
                    if (index < rects.length && index != -1) {
                        tabScroller.tabPanel.scrollRectToVisible(rects[index]);
        }Which is called when the selected tab changes. The member theScroller is a private inner class that handles the scrolling tabs. The call to scrollRectToVisible is executed for each of your new tabs. Sometimes when I stopped in the debugger and then continued things worked and your new tab scrolled into view.
    So I tried putting your code into a Runnable class and invoked it later:          final int newIndex = i;
              SwingUtilities.invokeLater (new Runnable ()  {
                   public void run ()  {
                        addTab(Integer.toString(newIndex), createDefaultPanel (newIndex));
                        getModel().setSelectedIndex(newIndex - 1);
              });But that did not work. That is as far as I got so far and I have to stop now. Perhaps this can inspire someone else to a solution.
    IL
    PS. I first tried Rammensee's solution and it did not work.
    Rammensee, you said you hoped you had it right - perhaps you are close.

Maybe you are looking for

  • How to add fields to already loaded cube or dso and how to fill records in

    how to add fields to already loaded cube or dso and how to fill  it.can any one tell me the critical issues in data loading process..?

  • Help iPhone 4 Not Turning On!!

    Hi, my iPhone 4 has been stuck at a black screen all day. I pulled it off of the charger this morning and made a phone call, and put it down. It seemed to reset itself and hung at a black screen with the Apple icon. It ended up boot looping a couple

  • ICal Alarm Preferences?

    Is there any way to change preferences in ICal so that an alarm is created automatically when you create an appointment? It's possible to do this in MS Outlook, so I'd hate to think that Mac doesn't have something similar. It's way too easy to forget

  • Shall we use SRDemo Framework Extension Classes in 11G R1?

    Hi, I just installed 11G R1 and reading developer guides. For development with 10.1.3.3 release I was using the Framework extension classes from SRDemo to base BC's on. Those methods includes many base functionality such as setManagerowsByKey, case-i

  • Mixed answers from verizon reps about transfer of upgrades

    one rep today said to purchase iphone under upgradeable phone number and then when phone arrives activate under the number you want another rep said you can upgrade under my verizon just like any other phone