Setting a JPanel on an event

How would you set a blank JPanel to an existing JPanel extention class at an event?

public class Test extends javax.swing.JFrame {
    public Test() {
        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.
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">
    private void initComponents() {
        jButton1 = new javax.swing.JButton();
        jButton2 = new javax.swing.JButton();
        jButton3 = new javax.swing.JButton();
        jPanel1 = new javax.swing.JPanel();
        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        jButton1.setText("jButton1");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
        jButton2.setText("jButton2");
        jButton3.setText("jButton3");
        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 482, Short.MAX_VALUE)
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 371, Short.MAX_VALUE)
        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jButton1)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jButton2)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jButton3)))
                .addContainerGap())
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButton1)
                    .addComponent(jButton2)
                    .addComponent(jButton3))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        pack();
    }// </editor-fold>
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
        // TODO add your handling code here:
    * @param args the command line arguments
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new Test().setVisible(true);
    // Variables declaration - do not modify
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton2;
    private javax.swing.JButton jButton3;
    private javax.swing.JPanel jPanel1;
    // End of variables declaration
}

Similar Messages

  • Setting a jpanel as a background image

    i have managed to load the image into a jpanel but now need to know how to set the jpanel as a background image, to allow my jbuttons and textfields to be seen over the top

    that statement is unbeleivably true.
    right, heres my two classes, the first class is where i created the image
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.* ;
    import java.io.*;
    import javax.imageio.*;
    public class EmailBackgroundImage extends JComponent
    public void paint (Graphics g)
    File bkgdimage = new File ("background.jpg");
    Image imagebg = createImage ( 250,300 );
    try {
    imagebg = ImageIO.read(bkgdimage);
    catch (IOException e)
    g.drawImage(imagebg, 0, 0,null,null);
    this next class is where i'm trying to make the background
    youll notice remnants of my current attempt to create the background image.
    in its current state it does compile
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.* ;
    import java.sql.*;
    import java.util.*;
    import java.awt.color.*;
    public class emailFrontpage extends JFrame implements ActionListener
    JLabel FirstNameLabel = new JLabel("First Name");
    JLabel LastNameLabel = new JLabel("Last Name");
    JLabel EmailLabel = new JLabel("Email Address");
    JTextField FirstNameText = new JTextField( 10 );
    JTextField LastNameText = new JTextField( 10 );
    JTextField EmailAddressText = new JTextField( 20 );
    JPanel panel1 = new JPanel();
    JPanel panel2 = new JPanel();
    JPanel panel3 = new JPanel();
    JPanel panel4 = new JPanel();
    JPanel panel5 = new JPanel();
    JPanel image = new JPanel();
    JButton Enterbutton = new JButton("Enter Details");
    JButton Logon = new JButton("Log on");
    EmailBackgroundImage myimage;
    EmailEdit editEmp;
    emailFrontpage()
    getContentPane().setLayout( new BoxLayout( getContentPane(), BoxLayout.Y_AXIS ));
    myimage = new EmailBackgroundImage();
    image.add(myimage);
    myimage.setSize(250,300);
    image.setOpaque( false );
    FirstNameLabel.setForeground(Color.WHITE);
    LastNameLabel.setForeground(Color.WHITE);
    EmailLabel.setForeground(Color.WHITE);
    panel1.add(Logon);
    panel2.add(FirstNameLabel); panel2.add(FirstNameText);
    panel3.add(LastNameLabel); panel3.add(LastNameText);
    panel4.add(EmailLabel); panel4.add(EmailAddressText);
    panel5.add(Enterbutton);
    getContentPane().add(image);
    getContentPane().add(panel1);
    getContentPane().add(panel2);
    getContentPane().add(panel3);
    getContentPane().add(panel4);
    getContentPane().add(panel5);
    // .setBackground( Color.black )
    Enterbutton.addActionListener( this );
    Logon.addActionListener( this );
    Enterbutton.setActionCommand( "ENTERBUTTONPRESSED" );
    Logon.setActionCommand( "LOGONBUTTONPRESSED" );
    setDefaultCloseOperation( WindowConstants.EXIT_ON_CLOSE );
    editEmp = new EmailEdit();
    public void actionPerformed( ActionEvent evt)
    if ( evt.getActionCommand().equals("LOGONBUTTONPRESSED") )
    emailLogonpage emaillogon = new emailLogonpage();
    emaillogon.setSize( 250, 300 );
    emaillogon.setVisible( true );
    emaillogon.setResizable(false);
    setVisible(false);
    else
    String newFN = FirstNameText.getText();
    String newLN = LastNameText.getText();
    String newEA = EmailAddressText.getText();
    editEmp.addNewEmail(newFN, newLN, newEA);
    setVisible(false);
    emailFrontpage emailfront = new emailFrontpage();
    emailfront.setSize( 250, 300 );
    emailfront.setVisible( true );
    emailfront.setResizable(false);
    public static void main ( String[] args )
    emailFrontpage emailfront = new emailFrontpage();
    emailfront.setSize( 250, 300 );
    emailfront.setVisible( true );
    emailfront.setResizable(false);
    }

  • Refreshing a set of JPanels

    Hello there,
    I have an issue with refreshing and replacing my JPanel colors. As you can see, the format is GridLayout with the size of the grid changing based on what file they open. My issue is that when a second file is opened, it merely adds those JPanels to the end of the previously loaded set of JPanels. I've tried refresh() and repaint() but to no avail. Maybe I placed them in the wrong place, not sure. Thanks in advance.
              if (actionCommand.equals("Open..."))
                   JFileChooser fileChooser = new JFileChooser();
                   fileChooser.setDialogTitle("Choose a file");
                   this.getContentPane().add(fileChooser);
                   fileChooser.setVisible(true);
                   int result = fileChooser.showOpenDialog(this);
                   File file = fileChooser.getSelectedFile();
                   GridMap gm = new GridMap();
                   gm.read(file);
                   int row = gm.getRow();
                   int col = gm.getColumn();
                   setLayout(new GridLayout(row,col));
                   for (int i = 0; i < row; i++)
                        for (int j = 0; j < col; j++)
                             JLabel color = new JLabel();
                             color.setOpaque(true);
                             if (gm.getGrid(i,j) == 'O')
                                  color.setBackground(Color.GREEN);
                             else if (gm.getGrid(i,j) == 'F')
                                  color.setBackground(Color.RED);
                             else if (gm.getGrid(i,j) == 'H')
                                  color.setBackground(Color.BLACK);
                             add(color);
              }

    something along these lines
    import java.awt.*;
    import java.awt.event.*;
    import java.io.File;
    import javax.swing.*;
    public class MainFrame2
      private static final String EXIT = "Exit";
      private static final String OPEN = "Open...";
      private static final String START = "Start";
      private JPanel mainPanel = new JPanel();
      private JPanel gridPanel = new JPanel();
      public MainFrame2()
        mainPanel.setPreferredSize(new Dimension(300, 300));
        mainPanel.setLayout(new BorderLayout());
        mainPanel.add(gridPanel, BorderLayout.CENTER);
      public JComponent getPanel()
        return mainPanel;
      public JMenuBar createMenu()
        JMenu sim = new JMenu("Simulator");
        MenuListener menuListener = new MenuListener();
        JMenuItem m = new JMenuItem(OPEN);
        m.addActionListener(menuListener);
        sim.add(m);
        m = new JMenuItem(START);
        m.addActionListener(menuListener);
        sim.add(m);
        sim.addSeparator();
        m = new JMenuItem(EXIT);
        m.addActionListener(menuListener);
        sim.add(m);
        JMenuBar mBar = new JMenuBar();
        mBar.add(sim);
        return mBar;
      private class MenuListener implements ActionListener
        public void actionPerformed(ActionEvent e)
          String actionCommand = e.getActionCommand();
          if (actionCommand.equals(OPEN))
            JFileChooser fileChooser = new JFileChooser();
            fileChooser.setDialogTitle("Choose a file");
            //mainPanel.add(fileChooser);
            fileChooser.setVisible(true);
            int result = fileChooser.showOpenDialog(mainPanel);
            if (result == JFileChooser.APPROVE_OPTION)
              File file = fileChooser.getSelectedFile();
              GridMap gm = new GridMap();
              gm.read(file);
              int row = gm.getRow();
              int col = gm.getColumn();
              gridPanel.setLayout(new GridLayout(row, col));
              gridPanel.removeAll();
              for (int i = 0; i < row; i++)
                for (int j = 0; j < col; j++)
                  JLabel color = new JLabel();
                  color.setOpaque(true);
                  if (gm.getGrid(i, j) == 'O')
                    color.setBackground(Color.GREEN);
                  else if (gm.getGrid(i, j) == 'F')
                    color.setBackground(Color.RED);
                  else if (gm.getGrid(i, j) == 'H')
                    color.setBackground(Color.BLACK);
                  gridPanel.add(color);
          else if (actionCommand.equals(START))
            // setVisible(true);
          else if (actionCommand.equals(EXIT))
            Window window = SwingUtilities.getWindowAncestor(mainPanel);
            window.dispose();
      private static void createAndShowGUI()
        MainFrame2 frame2 = new MainFrame2();
        JFrame frame = new JFrame("Fire Saving Simulator");
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.getContentPane().add(frame2.getPanel());
        frame.setJMenuBar(frame2.createMenu());
        frame.pack();
        frame.setResizable(false);
        frame.setLocationRelativeTo(null);
        frame.setVisible(true);
      public static void main(String[] args)
        javax.swing.SwingUtilities.invokeLater(new Runnable()
          public void run()
            createAndShowGUI();
    }

  • How can make Jpanel response click event?(help!)

    in a program i want to make jpanel response mouseclicked event, but jpanel class does not provide addActionListener(). through which way? i am able to arrive at the purpose! (create a new class extends jpanel, how to do?)
    thank a lot!!!

    Hello,
    have a look:import java.awt.Color;
    import java.awt.event.*;
    import javax.swing.*;
    public class ClickPanel extends JPanel implements MouseListener
         public static void main(String[]args)
              JFrame frame = new JFrame("Click-Panel");
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              frame.getContentPane().setLayout(null);
              frame.getContentPane().add(new ClickPanel());
              frame.setBounds(200,200,400,400);
              frame.setVisible(true);
         public ClickPanel()
              addMouseListener(this);
              setBounds(200,200,100,100);
              setBackground(Color.CYAN);
         public void mouseClicked(MouseEvent e)
              System.out.println("clicked");
         public void mouseEntered(MouseEvent e)
              System.out.println("entered");
              setBackground(Color.ORANGE);
         public void mouseExited(MouseEvent e)
              System.out.println("exited");
              setBackground(Color.CYAN);
         public void mousePressed(MouseEvent e)
              System.out.println("pressed");
         public void mouseReleased(MouseEvent e)
              System.out.println("released");
    }regards,
    Tim

  • I wish to set a repeat for an event but I do not get a customise option on my iphone 4s so cannot set the third monday of the month - only day, weekly 2 weekly monthly or annually - how do I resolve the problem ?

    I wish to set a repeat for an event but I do not get a customise option on my iphone 4s so cannot set the third monday of the month - only day, weekly 2 weekly monthly or annually - how do I resolve the problem ?

    Week Cal uses the calender database already on your phone. It's just a different front end.

  • Reconstructing JPanel by an event

    Hai there'
    i have an app , when a button clicked it should add a set of components in row wise in JPanel which is in a JScrollPane.
    I have problem that JPanel losts the previous components at each click.How could i make the Viewport to show components added previously.

    The choice of layout manager can be crucial.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class AddingComponents extends JPanel
        GridBagConstraints gbc;
        public AddingComponents()
            setLayout(new GridBagLayout());
            gbc = new GridBagConstraints();
            gbc.insets = new Insets(5,5,5,5);
            gbc.weightx = 1.0;
            gbc.weighty = 1.0;
        private JPanel getUIPanel()
            JButton add = new JButton("add components");
            add.addActionListener(new ActionListener()
                int count = 0;
                public void actionPerformed(ActionEvent e)
                    for(int j = 0; j < 4; j++)
                        if((j + 1) % 4 == 0)
                            gbc.gridwidth = gbc.REMAINDER;
                        else
                            gbc.gridwidth = 1;
                        add(new JButton("button " + ++count), gbc);
                    revalidate();
            JPanel panel = new JPanel();
            panel.add(add);
            return panel;
        public static void main(String[] args)
            AddingComponents ac = new AddingComponents();
            JFrame f = new JFrame();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(ac.getUIPanel(), "North");
            f.getContentPane().add(new JScrollPane(ac));
            f.setSize(400,400);
            f.setLocation(200,200);
            f.setVisible(true);
    }

  • Have problem setting Email alerts for Calendar events. Warning message says I need to set up a card in Contacts with my email. I do but it doesn't recognize it. How do I indicate the email I want alerts sent to?

    The system of setting up email alerts for Calendar events worked fine in Snow Leopard but since I upgraded to Mt. Lion Calendar won't let me set email alerts. When I try, I get an error message saying I need to set up a card in Contacts for my email. I have a card set up in Contacts for both of my email addresses but it doesn't recognize them. Perhaps the name I have on the card doesn't match a name that Calendar is looking for. Calendar doesn't seem to have a way in Preferences or elsewhere to indicate the email I want alerts sent to. Any ideas how I can get this system working again? Thanks for your help.

    You might want to consider starting a new discussion. Since this one is marked solved, less people are likely to look at it. You can link to this one.
    See if another contact is marked as this is my card.

  • Is there a way to set an alert for every event in a single calendar?

    Hi all,
    Is there a way to globally set an event in just one of the calendars showing in iCal?
    For example, I have a "Birthday" Calendar with a bunch of birthday events.  I want to set the alert for all of them to, say, noon, without having to edit each and every one.
    Thanks!
       Greg

    To generally add an alarm to all events in a specific calendar you would need to program an Automator Workflow that passes all events of the calendar to an Applescript that adds the alarm.
    For your birthdays problem is a predefined solution iCal: If you enter the Birthdays on the cards in your Address Book, and enable the "Show Birthdays Calendar Flag", then you will receive automatic email notifications of upcoming birthdays.

  • Excel 2007 VBA, problem setting Sheet Visibility in BeforeSave event after Office updates during mid Dec 2014

    After update of Office 2007 during mid December 2014, I have a Macro that does not work properly - which it did before the update.
    The Macro is used to make sure that users have Macros enabled when working on the file. The logic basically does the following:
    => In the "OnOpen" event, set all "work sheets" as Visible, and set the "Macro Warning sheet" to non-visible.
    => In the "BeforeSave" event, set the "Macro Warning sheet" as Visible and set all "work sheets" as non-visible.
    After the mid December update of Office 2007, the "OnOpen" part still works fine. The "BeforeSave" part does NOT work properly if the save action is triggered by using the shortcut key "CTRS+s". However, if saving the file
    using the "Save" option in the menues, the "BeforeSave" action works fine.
    Does Microsoft have a fix for this problem? I am not entierly sure exactly which update/KB that caused this.
    To recreate the problem, put the following code into the "thisWorkbook" module, and make sure that one sheet has the codeName "wshForceMacros". Open the file, enable Macros, then save the file using the keys "CTRL+s". The macro
    now hangs on the row "wshForceMacros.Cells(2, 1).Select" since the wshForceMacros sheet has not become properly visible...
    Option Explicit
    'ON OPEN
    Sub Workbook_Open()
    Call ShowSheetsAfterOpen
    End Sub
    'ON SAVE
    Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
    Call HideSheetsBeforeSave
    End Sub
    'ON SAVE
    Sub HideSheetsBeforeSave()
    Dim oSheet As Worksheet
    'Show Macro Lock sheet
    wshForceMacros.Visible = xlSheetVisible
    wshForceMacros.Activate
    wshForceMacros.Cells(2, 1).Select
    'Hide all work sheets
    For Each oSheet In ThisWorkbook.Worksheets
    If oSheet.CodeName <> "wshForceMacros" Then
    If oSheet.Visible = xlSheetVisible Then
    oSheet.Visible = xlSheetVeryHidden
    End If
    End If
    Next oSheet
    End Sub
    Sub ShowSheetsAfterOpen()
    Dim oSheet As Worksheet
    Dim bSaved As Boolean
    'Show all work sheets
    For Each oSheet In ThisWorkbook.Worksheets
    If oSheet.Visible = xlSheetVeryHidden Then
    oSheet.Visible = xlSheetVisible
    End If
    Next oSheet
    'Hide Macro Warning Sheet
    wshForceMacros.Visible = xlSheetHidden
    End Sub

    Hi,
    This is the forum to discuss questions and feedback for Microsoft Excel, I'll move your question to the MSDN forum for Excel
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=exceldev&filter=alltypes&sort=lastpostdesc
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • How to set showWindow from the lovValidate event in a DataForwardAction

    I created an onLovValidate data action event in a class which is derived from DataForwardAction.
    I'd like to set the showWindow parameter to true from this method but I don't know how.
    Could you show a short example?
    Thanks in advance,
    Gábor

    Please help!
    I'd like to replace the
    public static EventResult handleLovValidateEvent(
    BajaContext context, Page page, PageEvent event) throws Exception {
    EventResult result = new EventResult(page);
    result.setProperty("showWindow", new Boolean(true));
    return result;
    event handler with an event in a DataForwardAction event like this
    public void onLovValidate(DataActionContext ctx)
    throws InvocationTargetException {
    // Code before executing the default action
    if (ctx.getEventActionBinding() != null) {
    ctx.getEventActionBinding().doIt();
    // I don't know how to implement this:
    // EventResult result = new EventResult(page);
    // result.setProperty("showWindow", new Boolean(true));
    // Code after executing the default action
    Thanks in advance,
    Gábor

  • How to set default values in initialization event for select option

    Abapers,
    I have 3 GL account like 0024831231,0024831238,0024831245.
    Please help me how to set default values in select-options ( s_hkont ) in INTIALIZATION event
    Thanks

    Select option is table <Structure> with fields, low, high, sign & option
    you need to append the value into the select option, with appropriate value in low or
    example:
    S_HKONT-low  = <value>
    S_HKONT-SIGN = 'I'
    S_hkont-OPTION = 'EQ'
    append s_hkont.
    Default value for select-option also can be added directly in select-option statement.
    Regards,
    Mahesh

  • Javascript to set slider value with System Events

    If I open System Preferences and run this in Script Editor, it fails. It sets the volume to zero, not 50%.
      var se = Application("System Events");
      var spp = se.processes["System Preferences"];
      var curr = spp.windows[0].sliders[0].value();
      console.log("Current value: " + curr + " - " + typeof(curr));
      spp.windows[0].sliders[0].value = 0.5
      var curr = spp.windows[0].sliders[0].value();
      console.log("Current value: " + curr + " - " + typeof(curr));
    But the same thing in AppleScript seems to work fine.
    tell application "System Events"
       tell process "System Preferences"
       set v to value of slider 0 of window 0
       log v
       set value of slider 0 of window 0 to 0.5
       end tell
    end tell
    Anyone know what the problem is?
    thanks,
    Rob

    Jon Handy wrote:
    Hello,
    You should use something like this within the link attribute for that report column.
    onClick="javascript:setItem('P48_RECEIPT_ID',#RECEIPT_ID#);"As noted above, it is not considered good practice in this forum to post unnecessary follow-ups to long expired threads and users. It's worse to do so with information that is inaccurate or incomplete.
    What is the purpose of <tt>javascript:</tt> in this code?
    What is <tt>setItem</tt>? It is not a standard APEX JavaScript API method.
    You're welcome to get involved in the forum, but why make your first post an inaccurate response to a random 6 month old post that is only one of hundreds/thousands of questions on setting an item value using JavaScript?

  • How to set "VISA Read" as a event source?

    I want to made the VISA Read as one of the event source.
    For instance,  whenever the "VISA Read" read one byte, it can creat a event, so the event can process it.
    How to realize it? Thank you.

    hi there
    please try the attached vi (not testet cause i don't have any serial device at hand).
    it uses a string indicator as the data buffer. if there is new data the vi sets the "Val(Sgnl)" - property of the control which itself raises the "value changed" - event. i don't see a possibility to connect user events and VISA. there are the VISA - events (see the VISA advanced palette, but they also can't be connected to a event structure)
    Best regards
    chris
    CL(A)Dly bending G-Force with LabVIEW
    famous last words: "oh my god, it is full of stars!"
    Attachments:
    event_ValSignaling_7.1.vi ‏53 KB

  • Returning more attributes in search set when inviting to new event

    Hi all,
    We are currently running SunOne Calendar 5.1 and some of our users are complaining that when inviting people to an event who have a common name (i.e. John Smith), quite often, more than one result is displayed in the search set. With two "John Smiths" who have no middle name, how do you determine who the correct person is you wish to invite?
    Is there any way of displaying other attributes in the search set (i.e. e-mail address), so users can select the correct person?
    Regards,
    Paul Hughes
    University of Wales, Bangor

    I have found a solution to this issue. It seems that when using a programmatic view object which has a transient attribute as its primary key you need to override more methods in the ViewObjectImpl so that it knows how to locate the row related to the primary key when the view object records aren't in the cache. This is why it would work correctly sometimes but not all the time. Below are the additional methods you need to override. The logic you use in retrieveByKey would be on a view object by view object basis and would be different if you had a primary key which consisted of more than one attribute.
    @Override
    protected Row[] retrieveByKey (ViewRowSetImpl viewRowSetImpl, Key key, int i) {
        return retrieveByKey(viewRowSetImpl, null, key, i, false);
    @Override
    protected Row[] retrieveByKey (ViewRowSetImpl viewRowSetImpl, String string, Key key, int i, boolean b) {
        RowSetIterator usersRowSetIterator = this.createRowSet(null);
        Row[] userRows = usersRowSetIterator.getFilteredRows("UserId", key.getAttribute(this.getAttributeIndexOf("UserId")));
        usersRowSetIterator.closeRowSetIterator();
        return userRows;
    @Override
    protected Row[] retrieveByKey (ViewRowSetImpl viewRowSetImpl, Key key, int i, boolean b) {
        return retrieveByKey(viewRowSetImpl, null, key, i, b);

  • Can I set up to have every event send notice

    last year I was able to have the Entire season for a hockey schedule give a 2 hour on screen advance notice.
    I cannot remember how I accomplished that or if Snow Leopard is different now.
    I set it up this year but there is no automatic notices other then me having to manually do each of the 80 games.
    Can a alarm or notice be done for all events in iCal ?
    Greg

    Greg,
    Perhaps someone can prove that needs to be done which would be the 2% uncertainty.
    You should be able to do that because you know which hockey schedule you used.
    Is it a calendar subscription? If so, just delete it and make sure that the alarms are checked as you desire before you re-subscribe. If not, how were the matches entered into iCal?
    ;~)

Maybe you are looking for

  • White Macbook with MAJOR wifi reception problems

    I live in a small flat and used to be able to access Wifi everywhere on my white Macbook (early 2006) model.  This is no longer the case and I can only pick up wifi signal in my living room (i.e. within 7 feet of the router). It is not a router issue

  • Which TCP/IP ports do I have to open in order to get communication

    I have an enterprise portal. based on EHP1 and I want to patch it. So I need to connect it to Solution manager. However systems are in different networks. I wander which TCP/IP ports do I have to open in order to get communication between the two sys

  • Performance problem with selecting records from BSEG and KONV

    Hi, I am having performance problem while  selecting records from BSEG and KONV table. As these two tables have large amount of data , they are taking lot of time . Can anyone help me in improving the performance . Thanks in advance . Regards, Prasha

  • How to Create Smartphone Mobiliser Apps ?

    Hi experts,               I am new to Mobiliser Platform, I want to Know end to end process of Building Smartphone Mobiliser application in Mobiliser 5.1 SP03 platform , Can any one help me out by sharing your knowledge .... Here I have Mobiliser Ser

  • Variable screen of webi rich client differs from one of Infoview

    Hello We are on BO XI 3.1 sp3, universe of the top of SAP BI 7.01 query.Webi version 12.3.0 Char1 is set to delegated search.  Variable1 for char1 is mandatory, multiple single values on SAP BI side. Webi reports (executed from webi rich client) allo