Creation of Personal Object Worklists - can anyone help...?

Hi All,
We have a portal where in which the end users(actually power users) can view reports, run queries within the privileges of their authorizations,change queries and save them etc.....
All the data for the reports comes from ECC(backend).
Given the above situation I want to create a Personal Object Worklist(POWL).
POWL is totally new ,hence i need in-depth info ;would be really helpful if someone can explain the concept of POWL comprehensively please...!
All valuable help will be appreciated through fitting points!!
Thanks and Regards,
Sai.

hei, try to look into this link
http://help.sap.com/saphelp_erp2005vp/helpdata/en/42/d6652b755c1630e10000000a1553f7/frameset.htm
Hope this will help you .

Similar Messages

  • Can anyone help with facetime? im getting missed calls but it doesnt actually tell me i have an incoming call....and the person im trying to contact gets exactly the same.....just missed calls?

    can anyone help with facetime? im getting missed calls but it doesnt actually come up with an incoming call.....the person im trying to contact just gets missed calls also?

    I've noticed that once you miss a call on FaceTime on a desktop Mac, it won't work properly again until you restart the machine.
    I sent in Feedback so we'll see how that goes.

  • I was told I need to remove the enterprise server account I have and need to add a new one for work but the IT person did not tell me how to do this.  Can anyone help?

    I was told I need to remove the enterprise server account I have and need to add a new one for work but the IT person did not tell me how to do this.  Can anyone help?

        Jennymbell, never fear help is here!
    Have you tried contacting your IT department for assistance? You can visit http://bit.ly/QECbGh for steps on how to enterprise activation.
    Keep me posted if you need further assistance.
    John B
    Follow us on Twitter @VZWSupport

  • While most can open my .pdf attachments, I have one client who cannot.  However, they can if sent from another person in my office.  I am  using Adobe Reader X1.  Can anyone help?

    While most can open my .pdf attachments to emails, I have one client who cannot.  However, they can open and read if sent from another person in my office who using the same Program as I do.  I am  using Adobe Reader X1.  Can anyone help?

    What is the operating system on that problem machine?  Reader XI version?  Email client?
    What exactly means "cannot"?

  • Can anyone help in resizing the JLabel object

    Hi,
    can anyone help me in resizing the JLabel object after being dropped onto the DropContainer. I'm providing the code below
    import javax.swing.*;
    import java.awt.*;
    import java.awt.datatransfer.DataFlavor;
    import java.awt.datatransfer.Transferable;
    import java.awt.datatransfer.UnsupportedFlavorException;
    import java.awt.dnd.*;
    import java.io.File;
    import java.io.Serializable;
    import java.awt.event.*;
    import java.awt.Insets;
    import java.awt.Dimension;
    public class project2 extends JApplet implements Runnable{
    private DragContainer dragcontainer;
    private DropContainer dropcontainer;
    private DefaultListModel listModel,listModel1;
    public void start() {
    Thread kicker = new Thread(this);
    kicker.start();
    public void run() {
    project2 dndapplet = new project2();
    dndapplet.init();
    public void init() {
    try {
    getContentPane().setLayout(new BorderLayout());
    listModel = new DefaultListModel();
    dragcontainer = new DragContainer(listModel);
    getContentPane().add(BorderLayout.WEST, new JScrollPane(dragcontainer));
    listModel1=new DefaultListModel();
    dropcontainer = new DropContainer(listModel1);
    getContentPane().add(BorderLayout.CENTER,new JScrollPane(dropcontainer));
    catch (Exception e) {
    System.out.println("error");
    fillUpList("images");
    setSize(700, 300);
    public static void main(String[] args) {
    Frame f = new Frame("dndframe");
    project2 dndapplet = new project2();
    //Point pos=new Point();
    f.add(dndapplet);
    dndapplet.init();
    dndapplet.start();
    f.show();
    private void fillUpList(String directory) {
    File dir = new File(directory);
    File[] files = dir.listFiles();
    for (int i = 0; i < 11; i++) {
    listModel.addElement(new ImageIcon(directory + "\\" + files.getName()));
    class Cursor extends Object implements Serializable
    public static final int SE_RESIZE_CURSOR=0;
    int cursor;
    public Cursor(int SE_RESIZE_CURSOR)
    cursor=SE_RESIZE_CURSOR;
    class ImageTransferable implements Transferable, Serializable
    ImageIcon imageIcon;
    public static final DataFlavor IMAGE_FLAVOR = DataFlavor.imageFlavor;
    public DataFlavor[] getTransferDataFlavors()
    return new DataFlavor[] {IMAGE_FLAVOR};
    public ImageTransferable(ImageIcon imageIcon)
    this.imageIcon = imageIcon;
    public Object getTransferData(DataFlavor f) throws UnsupportedFlavorException
    if (!isDataFlavorSupported(f))
    throw new UnsupportedFlavorException(f);
    return imageIcon;
    public boolean isDataFlavorSupported(DataFlavor aFlavor)
    return IMAGE_FLAVOR.equals(aFlavor);
    class DragContainer extends JList implements DragGestureListener, DragSourceListener
    private DragSource iDragSource = null;
    public DragContainer(ListModel lm)
    super(lm);
    iDragSource = new DragSource();
    iDragSource.createDefaultDragGestureRecognizer(this,DnDConstants.ACTION_COPY_OR_MOVE, this);
    public void dragGestureRecognized(DragGestureEvent aEvt)
    ImageIcon imageSelected = (ImageIcon) getSelectedValue();
    ImageTransferable imsel = new ImageTransferable(imageSelected);
    if (imageSelected != null)
    System.out.println("startdrag...");
    iDragSource.startDrag(aEvt, DragSource.DefaultCopyNoDrop, imsel, this);
    else
    System.out.println("Nothing Selected");
    public void dropActionChanged(DropTargetDragEvent event)
    public void dropActionChanged(DragSourceDragEvent event)
    public void dragDropEnd(DragSourceDropEvent event)
    public void dragEnter(DragSourceDragEvent event)
    public void dragExit(DragSourceEvent event)
    public void dragOver(DragSourceDragEvent event)
    DragSourceContext context = event.getDragSourceContext();
    context.setCursor(null);
    context.setCursor(DragSource.DefaultCopyDrop);
    class DropContainer extends JList implements DropTargetListener,MouseListener
    private DropTarget iDropTarget = null;
    private int acceptableActions = DnDConstants.ACTION_COPY_OR_MOVE;
    JLabel imgLabel=null;
    public int dropX;
    public int dropY;
    public int x;
    public int y;
    public DropContainer(ListModel lm1)
    super(lm1);
    iDropTarget = new DropTarget(this, this);
    setBackground(Color.white);
    public void drop(DropTargetDropEvent aEvt)
    Point location=null;
    ImageIcon icon=null;
    Transferable transferable=null;
    //int dropX=0;
    //int dropY=0;
    try
    transferable = aEvt.getTransferable();
    location=new Point();
    if(transferable.isDataFlavorSupported(ImageTransferable.IMAGE_FLAVOR))
    aEvt.acceptDrop(acceptableActions);
    icon = (ImageIcon)
    transferable.getTransferData(ImageTransferable.IMAGE_FLAVOR);
    setLayout(null);
    imgLabel=new JLabel();
    imgLabel.setIcon(icon);
    imgLabel.addMouseListener(this);
    location=aEvt.getLocation();
    dropX=location.x;
    dropY=location.y;
    imgLabel.setBounds(dropX,dropY,icon.getIconWidth(),icon.getIconHeight());
    this.add(imgLabel);
    SwingUtilities.updateComponentTreeUI(this.getRootPane());
    aEvt.getDropTargetContext().dropComplete(true);
    else
    System.out.println("rejecting drop");
    aEvt.rejectDrop();
    aEvt.getDropTargetContext().dropComplete(false);
    catch (Exception exc)
    exc.printStackTrace();
    aEvt.rejectDrop();
    aEvt.getDropTargetContext().dropComplete(false);
    finally
    location=null;
    transferable=null;
    icon=null;
    imgLabel=null;
    public void mousePressed(MouseEvent e)
    x=e.getX();
    y=e.getY();
    public void mouseReleased(MouseEvent e)
    int temp1,temp2;
    temp1=y;
    temp2=x;
    imgLabel.setSize(temp1,temp2);
    public void mouseEntered(MouseEvent e) {}
    public void mouseExited(MouseEvent e) {}
    public void mouseClicked(MouseEvent e) {}
    public void dragEnter(DropTargetDragEvent event)
    System.out.println("dragenter");
    event.acceptDrag(acceptableActions);
    public void dragExit(DropTargetEvent event)
    System.out.println("dragexit");
    public void dragOver(DropTargetDragEvent event)
    System.out.println("dragover");
    event.acceptDrag(acceptableActions);
    public void dropActionChanged(DropTargetDragEvent event)
    System.out.println("dropactionchanged");
    event.acceptDrag(acceptableActions);
    }//class DropContainer

    Hi all,
    I have two classes, say 1st and 2nd.
    I have created an object of the second class in the first class and also i have invoked a method of the second class using it's object from the first class.
    but when i compile the first class i'm getting an error that "cannot access the second class".
    can anyone help me in fixing this problem
    thanks in advance
    murali

  • I am trying to transfer the licence of a Dreamweaver CS3 Macintosh product. A transfer of licence form has been signed by the person that gave it to me. Can anyone help me complete the process?

    I am trying to transfer the licence of a Dreamweaver CS3 Macintosh product. A transfer of licence form has been signed by the person that gave it to me. Can anyone help me to complete the process as Adobe chat say they cannot to help? They told me the forum is looked at by an expert team. Anyone there? Thanks

    Did you complete your form as well?  A form needs to be completed and signed by both parties and submitted to Adobe support via a support ticket. Chat support cannot help, but should have pointed you to the KB article with the instructions.
    Transfer an Adobe product license

  • How come there are no hidden objects games in the South African App Store and y does safari not allow you to get it downloaded from the net. There are only games for kids in the App Store. Can anyone help

    How come there are no hidden objects games in the South African App Store and y does safari not allow you to get it downloaded from the net. There are only games for kids in the App Store. Can anyone help.  Is the South African apple ipad only for children

    Nobody here is responsible for what is or is not available in any country. I believe it is a software licensing thing.

  • Hi, I have an iPhone 4 which rings people when it is locked, whether or not in my pocket.  I always lock it when not using it.  Can anyone help? It is calling random numbers, not the last person or anyone even recently called on my recents list. Thanks

    Hi, I have an iPhone 4 which rings people when it is locked, whether or not in my pocket.  I always lock it when not using it.  Can anyone help? It is calling random numbers, not the last person or anyone even recently called on my recents list. Thanks

    Pay no attention to iinami, the amount of replies to people saying their handsets must have been jailbroken everytime iTunes throws out an error is tremendous. (Clearly you don't need to have any real knowledge to get to level 3 on these forums, let's hope apple's geniuses know a lot more than some of their customers.)
    http://support.apple.com/kb/TS3694
    Solution below.
    Error 9
    This error occurs when the device unexpectedly loses its USB connection with iTunes. This can occur if the device is manually disconnected during the restore process. This issue can be resolved by performing USB troubleshooting, using a different USB dock-connector cable, trying another USB port, restoring on another computer, or by eliminating conflicts from third-party security software.

  • I don't understand why a person who has been with a company for 6 years cant get a simple upgrade can anyone help figure that out?

    I don't understand why a person who has been with a company for 6 years cant get a simple upgrade can anyone help figure that out?

    Are you trying to get an upgrade before you're actually eligible? If that is the case, it doesn't matter if you've been a customer for 6 years or 6 days...if you're not eligible then you're not eligible. Some of your possible options are to pay full retail, do an early edge up (if you are eligible for that option), or buying a phone from some other source to use.
    If your situation is something different then it might help to share that. The options may still be the same but it helps to know what exactly the issue is.

  • HT204023 Hi, I'm Puthyrath. I have a problem on my iPad 4 wifi-3G about personal hotspot. I entered apn, username and password correctly, but when I leave this page, it didn't save, all fields become blank. Can anyone help me?

    Hi, I'm Puthyrath. I have a problem on my iPad 4 wifi-3G about personal hotspot. I entered apn, username and password correctly, but when I leave this page, it didn't save, all fields become blank. Can anyone help me?

    Update to above question:
    Hello All,
    To anyone with the same problem described above, on THEIR iPad (if it is running iOS 7.0.2):
    Go to Settings; Mail, Contacts, Calendars; DELETE your *******@btinternet.com e-mail account, that you originally set up either using 'Other', or the 'BT' option which I am sure was in the list previous to the iOS 7 update.
    Then ADD a NEW account choosing YAHOO from the list of options. DO NOT USE 'OTHER'.
    Enter the correct details just as you (almost certainly) had already done in your previous attempts using 'other'.
    When you see the 'verifying......' and 'the blue ticks' you should be able to exit settings and open your mail app and then receive all your 'old' e-mails again, AND be able to SEND as well.
    All my 'old' e-mails, were NOT found in the 'old e-mail' folder though. THEY are still in my inbox.
    So this fix worked for me.
    After I deleted my account from 'OTHER' and put it in Yahoo, I like other people also ended up with more folders.
    I hope this works for you on YOUR Apple devices.
    Bob

  • Hi, I am using an iMAC 6.4 and I will need to upgrade the 10.5.8 to a newer version. I am a PC person, so I have no idea of how do this. Can anyone help me please? Thanks!

    e no idea of how do this. Can anyone help me please? Thanks!

    There is no such model as an iMac 6.4. Be sure to check the system requirements for upgrading.
    Upgrade Paths to Snow Leopard, Lion, and/or Mountain Lion
    You can upgrade to Mountain Lion from Lion or directly from Snow Leopard. Mountain Lion can be downloaded from the Mac App Store for $19.99. To access the App Store you must have Snow Leopard 10.6.6 or later installed.
    Upgrading to Snow Leopard
    You can purchase Snow Leopard through the Apple Store: Mac OS X 10.6 Snow Leopard - Apple Store (U.S.). The price is $19.99 plus tax. You will be sent physical media by mail after placing your order.
    After you install Snow Leopard you will have to download and install the Mac OS X 10.6.8 Update Combo v1.1 to update Snow Leopard to 10.6.8 and give you access to the App Store. Access to the App Store enables you to download Mountain Lion if your computer meets the requirements.
         Snow Leopard General Requirements
           1. Mac computer with an Intel processor
           2. 1GB of memory
           3. 5GB of available disk space
           4. DVD drive for installation
           5. Some features require a compatible Internet service provider;
               fees may apply.
           6. Some features require Apple’s iCloud services; fees and
               terms apply.
    Upgrading to Lion
    If your computer does not meet the requirements to install Mountain Lion, it may still meet the requirements to install Lion.
    You can purchase Lion by contacting Customer Service: Contacting Apple for support and service - this includes international calling numbers. The cost is $19.99 (as it was before) plus tax.  It's a download. You will get an email containing a redemption code that you then use at the Mac App Store to download Lion. Save a copy of that installer to your Downloads folder because the installer deletes itself at the end of the installation.
         Lion System Requirements
           1. Mac computer with an Intel Core 2 Duo, Core i3, Core i5, Core i7,
               or Xeon processor
           2. 2GB of memory
           3. OS X v10.6.6 or later (v10.6.8 recommended)
           4. 7GB of available space
           5. Some features require an Apple ID; terms apply.
    Upgrading to Mountain Lion
    To upgrade to Mountain Lion you must have Snow Leopard 10.6.8 or Lion installed. Purchase and download Mountain Lion from the App Store. Sign in using your Apple ID. Mountain Lion is $19.99 plus tax. The file is quite large, over 4 GBs, so allow some time to download. It would be preferable to use Ethernet because it is nearly four times faster than wireless.
         OS X Mountain Lion - System Requirements
           Macs that can be upgraded to OS X Mountain Lion
             1. iMac (Mid 2007 or newer) - Model Identifier 7,1 or later
             2. MacBook (Late 2008 Aluminum, or Early 2009 or newer) - Model Identifier 5,1 or later
             3. MacBook Pro (Mid/Late 2007 or newer) - Model Identifier 3,1 or later
             4. MacBook Air (Late 2008 or newer) - Model Identifier 2,1 or later
             5. Mac mini (Early 2009 or newer) - Model Identifier 3,1 or later
             6. Mac Pro (Early 2008 or newer) - Model Identifier 3,1 or later
             7. Xserve (Early 2009) - Model Identifier 3,1 or later
    To find the model identifier open System Profiler in the Utilities folder. It's displayed in the panel on the right.
         Are my applications compatible?
             See App Compatibility Table - RoaringApps.
         For a complete How-To introduction from Apple see Upgrade to OS X Mountain Lion.

  • Can anyone help with this error? ;At line 102 of file"C:/Program files (x86)/Macromedia/Dreamweaver

    Can anyone help with this error please?;At line 102 of file"C:/Program files (x86)/Macromedia/Dreamweaver 8/Configuration/Objects/Common/Images.js"; TypeError: cmdDOM.parentWindow.setFormItem is not a function

    If Dreamweaver shows a message saying "the following JavaScript error(s) occurred",  it's usually a sign of a corrupt cache file. The first thing you should always be to delete the file cache. If that doesn't work, delete your personal Configuration folder. Please go through the steps mentioned in thread Deleting a corrupted cache file.

  • Personal Objects WorkList

    hi,
    Anyone have any idea about POWL(Personal Objects Worklist) in BI ?
    Useful answers will be rewarded.
    Regards,
    Sangeetha.A

    Hi,
    check the following link! it may help u.
    http://help.sap.com/saphelp_nw70/helpdata/en/60/4ed691587547c3a53c27fd2e8eaede/frameset.htm
    Thanks,
    Ravi

  • Personal Object Worklist (POWL)

    Hi Everyone,
    I'm a newbie in Portal content so please give an answer in the simplest of english.
    Q : What does a POWL in the context of an Enterprise Portal User mean/offer??
    Thanks and Best Regards,
    Sai

    >>what POWL is all about>>
    The Personal Object Worklist (POWL) provides you, as an Enterprise Portal user, with a general overview of your work environment and all related business objects that you would be interested to work on. It enables you to manage your work efficiently and aids in decision-making. POWLs are most suited to assignments that are not a part of a workflow.
    >>its use>>
    Function
    Gives you a unified and centralized way to access your work and the relevant information
    Aggregates non-workflow task items from multiple and different systems in one universal list
    Displays additional information as required from document and object repositories, including attachments and other details such as worklist type dependent actions
    Provides easy entry into business object handling in detail and also in presentation of work items
    Example
    Consider a production order-related worklist; based on a predefined selection variant the Production Supervisor (portal role) gets a worklist with planned orders for his or her section of a plant, including a workshop, which is represented by all materials belonging to the same material class.
    The Production Supervisor can now select one or more planned orders, convert them to production orders, release the orders, print the work instructions, and distribute the worklists to the responsible operator groups.
    >>whats it based on>>
    You can find the settings and configurations here
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/42/d6652b755c1630e10000000a1553f7/content.htm
    >>its use in contrast with WEB DYNPRO>>
    It is an ABAP Webdynpro Application and part of Netweaver 2004s so you can create a Webdynpro iView for ABAP in Portals using the following link
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/44/451e7582190a64e10000000a422035/content.htm
    A POWL (Personal Object Work List) is an individual list generated by query that provides an overview of the user's working environment by presenting one or more list of objects, as a set from which the user can select items to work on. There are some POWLs which are already predefined and delivered together with the applications available in the SAP NetWeaver Portal. However, if the default POWLs do no meet the customer requirements, it is possible to change the query values or to assign different POWLs to the application you like.
    Configuration Settings in the Backend System:
    1. Log on to the backend system <System ID> you want to configure
    2. Start the transaction ‚POWL_QUERY’
    3. Click on button ‘New Entries’
    4. Enter a name for ‘Query ID’ and the corresponding ‘Description’.
    5. Select an available ‘Type’ via F4 help
    6. Save your query definition
    7. Go back to the „Main Table View: Initial Screen“ and select the Query you’ve already created
    8. Click on ‘Details’ or <Ctrl-Shift-F2>
    9. Click on button ‘Query Parameters’
    10. Fill in some values for one/more selection criteria
    11. Save your changes
    You&#61550; may need to assign the POWLs you would like to display for a specific Application (e.g. Customer Fact Sheet). In order do this, you should do the following:
    12. Start transaction ‘POWL_QUERYR’.
    13. Click on button ‘New Entries’
    14. Select as ‘Application’ via F4 help the application you would like to assing the queries to (e.g.value ‘O2C-CUSTOMER_FACT_SHEET”) and as ‘Query ID’ the query you’ve already created. (Note: Not all the POWLs may work for the application you want)
    13. Mark the checkbox ‘Activate’ and save your entry
    To test if the POWLs you've defined display correctly on the SAP NetWeaver Portal:
    1. Log on to the SAP NetWeaver Portal
    2. Open the Application you would like to test and for which you assigned the POWLs (e.g. Customer Fact Sheet’) and, check if the queries are available.
    Please follow the following steps to create a powl worklist and see it using the powl application .
    1) implement the feeder class IF_POWL_FEEDER. Details about this can be found here http://help.sap.com/saphelp_erp2005vp/helpdata/en/42/d6652b755c1630e10000000a1553f7/frameset.htm
    2) Maintain an application id using the transaction FPB_MAINTAIN_HIER
    3) Go to transaction POWL_TYPE to define a powl type. point it to your newly created class.
    4) Next in the transaction POWL_TYPER maintain the newyl created powl type with the application id.
    5) Using transaction POWL_QUERY create a default query. In this step you will have to specify the type of query (again the powl type). Here you will be mentioning the type of query.
    6) using POWL_CAT maintain a category. The category is used to group multiple queries of the same type.
    7) In POWL_QUERYR maintain the default query created with the application id and the category.
    8) call the powl application with the applid.

  • Can anyone help me, please(again)

    Hello :
    I am sorry that my massage is not clearly.
    Please run my coding first, and get some view from my coding. you can see somes buttons are on the frame.
    Now I want to click the number 20 of the buttons, and then I want to display a table which from the class TableRenderDemo to sit under the buttons. I added some coding for this problem in the class DrawClalendar, the coding is indicated by ??.
    but it still can not see the table apear on on the frame with the buttons.
    Can anyone help me to solve this problem.please
    Thanks
    *This program for add some buttons to JPanel
    *and add listeners to each button
    *I want to display myTable under the buttons,
    *when I click on number 20, but why it doesn't
    *work, The coding for these part are indicated by ??????????????
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.GridLayout;
    public class DrawCalendar extends JPanel {
         private static DrawCalendar dC;
         private static TestMain tM;
         private static TableRenderDemo myTable;
         private static GridLayout gL;
         private static final int nlen = 35;
        private static String names[] = new String[nlen];
        private static JButton buttons[] = new JButton[nlen];
         public DrawCalendar(){
              gL=new GridLayout(5,7,0,0);
               setLayout(gL);
               assignValues();
               addJButton();
               registerListener();
        //assign values to each button
           private void assignValues(){
              names = new String[35];
             for(int i = 0; i < names.length; i++)
                names[i] = Integer.toString(i + 1);
         //create buttons and add them to Jpanel
         private void addJButton(){
              buttons=new JButton[names.length];
              for (int i=0; i<names.length; i++){
                   buttons=new JButton(names[i]);
         buttons[i].setBorder(null);
         buttons[i].setBackground(Color.white);
         buttons[i].setFont(new Font ("Palatino", 0,8));
    add(buttons[i]);
    //add listeners to each button
    private void registerListener(){
         for(int i=0; i<35; i++)
              buttons[i].addActionListener(new EventHandler());          
    //I want to display myTable under the buttons,
    //when I click on number 20, but why it doesn't
    //work
    private class EventHandler implements ActionListener{
         public void actionPerformed(ActionEvent e){
         for(int i=0; i<35; i++){
    //I want to display myTable under the buttons,
    //when I click on number 20, but why it doesn't
    //work
         if(i==20){  //???????????               
              tM=new TestMain(); //???????
              tM.c.removeAll(); //??????
              tM.c.add(dC); //???????
              tM.c.add(myTable); //????
              tM.validate();
         if(e.getSource()==buttons[i]){
         System.out.println("testing " + names[i]);
         break;
    *This program create a table with some data
    import javax.swing.table.AbstractTableModel;
    import javax.swing.table.TableColumn;
    import javax.swing.DefaultCellEditor;
    import javax.swing.table.TableCellRenderer;
    import javax.swing.table.DefaultTableCellRenderer;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class TableRenderDemo extends JScrollPane {
    private boolean DEBUG = true;
    public TableRenderDemo() {
    // super("TableRenderDemo");
    MyTableModel myModel = new MyTableModel();
    JTable table = new JTable(myModel);
    table.setPreferredScrollableViewportSize(new Dimension(700, 70));//500,70
    //Create the scroll pane and add the table to it.
    setViewportView(table);
    //Set up column sizes.
    initColumnSizes(table, myModel);
    //Fiddle with the Sport column's cell editors/renderers.
    setUpSportColumn(table.getColumnModel().getColumn(2));
    * This method picks good column sizes.
    * If all column heads are wider than the column's cells'
    * contents, then you can just use column.sizeWidthToFit().
    private void initColumnSizes(JTable table, MyTableModel model) {
    TableColumn column = null;
    Component comp = null;
    int headerWidth = 0;
    int cellWidth = 0;
    Object[] longValues = model.longValues;
    for (int i = 0; i < 5; i++) {
    column = table.getColumnModel().getColumn(i);
    try {
    comp = column.getHeaderRenderer().
    getTableCellRendererComponent(
    null, column.getHeaderValue(),
    false, false, 0, 0);
    headerWidth = comp.getPreferredSize().width;
    } catch (NullPointerException e) {
    System.err.println("Null pointer exception!");
    System.err.println(" getHeaderRenderer returns null in 1.3.");
    System.err.println(" The replacement is getDefaultRenderer.");
    comp = table.getDefaultRenderer(model.getColumnClass(i)).
    getTableCellRendererComponent(
    table, longValues[i],
    false, false, 0, i);
    cellWidth = comp.getPreferredSize().width;
    if (DEBUG) {
    System.out.println("Initializing width of column "
    + i + ". "
    + "headerWidth = " + headerWidth
    + "; cellWidth = " + cellWidth);
    //XXX: Before Swing 1.1 Beta 2, use setMinWidth instead.
    column.setPreferredWidth(Math.max(headerWidth, cellWidth));
    public void setUpSportColumn(TableColumn sportColumn) {
    //Set up the editor for the sport cells.
    JComboBox comboBox = new JComboBox();
    comboBox.addItem("Snowboarding");
    comboBox.addItem("Rowing");
    comboBox.addItem("Chasing toddlers");
    comboBox.addItem("Speed reading");
    comboBox.addItem("Teaching high school");
    comboBox.addItem("None");
    sportColumn.setCellEditor(new DefaultCellEditor(comboBox));
    //Set up tool tips for the sport cells.
    DefaultTableCellRenderer renderer =
    new DefaultTableCellRenderer();
    renderer.setToolTipText("Click for combo box");
    sportColumn.setCellRenderer(renderer);
    //Set up tool tip for the sport column header.
    TableCellRenderer headerRenderer = sportColumn.getHeaderRenderer();
    if (headerRenderer instanceof DefaultTableCellRenderer) {
    ((DefaultTableCellRenderer)headerRenderer).setToolTipText(
    "Click the sport to see a list of choices");
    class MyTableModel extends AbstractTableModel {
    final String[] columnNames = {"First Name",
    "Last Name",
    "Sport",
    "# of Years",
    "Vegetarian"};
    final Object[][] data = {
    {"Mary ", "Campione",
    "Snowboarding", new Integer(5), new Boolean(false)},
    {"Alison", "Huml",
    "Rowing", new Integer(3), new Boolean(true)},
    {"Kathy", "Walrath",
    "Chasing toddlers", new Integer(2), new Boolean(false)},
    {"Sharon", "Zakhour",
    "Speed reading", new Integer(20), new Boolean(true)},
    {"Angela", "Lih",
    "Teaching high school", new Integer(4), new Boolean(false)}
    public final Object[] longValues = {"Angela", "Andrews",
    "Teaching high school",
    new Integer(20), Boolean.TRUE};
    public int getColumnCount() {
    return columnNames.length;
    public int getRowCount() {
    return data.length;
    public String getColumnName(int col) {
    return columnNames[col];
    public Object getValueAt(int row, int col) {
    return data[row][col];
    * JTable uses this method to determine the default renderer/
    * editor for each cell. If we didn't implement this method,
    * then the last column would contain text ("true"/"false"),
    * rather than a check box.
    public Class getColumnClass(int c) {
    return getValueAt(0, c).getClass();
    * Don't need to implement this method unless your table's
    * editable.
    public boolean isCellEditable(int row, int col) {
    //Note that the data/cell address is constant,
    //no matter where the cell appears onscreen.
    if (col < 2) {
    return false;
    } else {
    return true;
    * Don't need to implement this method unless your table's
    * data can change.
    public void setValueAt(Object value, int row, int col) {
    if (DEBUG) {
    System.out.println("Setting value at " + row + "," + col
    + " to " + value
    + " (an instance of "
    + value.getClass() + ")");
    if (data[0][col] instanceof Integer
    && !(value instanceof Integer)) {
    //With JFC/Swing 1.1 and JDK 1.2, we need to create
    //an Integer from the value; otherwise, the column
    //switches to contain Strings. Starting with v 1.3,
    //the table automatically converts value to an Integer,
    //so you only need the code in the 'else' part of this
    //'if' block.
    try {
    data[row][col] = new Integer(value.toString());
    fireTableCellUpdated(row, col);
    } catch (NumberFormatException e) {
    JOptionPane.showMessageDialog(TableRenderDemo.this,
    "The \"" + getColumnName(col)
    + "\" column accepts only integer values.");
    } else {
    data[row][col] = value;
    fireTableCellUpdated(row, col);
    if (DEBUG) {
    System.out.println("New value of data:");
    printDebugData();
    private void printDebugData() {
    int numRows = getRowCount();
    int numCols = getColumnCount();
    for (int i=0; i < numRows; i++) {
    System.out.print(" row " + i + ":");
    for (int j=0; j < numCols; j++) {
    System.out.print(" " + data[i][j]);
    System.out.println();
    System.out.println("--------------------------");
    *This program for add some buttons and a table on JFrame
    import java.awt.*;
    import javax.swing.*;
    public class TestMain extends JFrame{
    private static TableRenderDemo tRD;
         private static TestMain tM;
    protected static Container c;
    private static DrawCalendar dC;
         public static void main(String[] args){
         tM = new TestMain();
         tM.setVisible(true);
         public TestMain(){
         super(" Test");
         setSize(800,600);
    //set up layoutManager
    c=getContentPane();
    c.setLayout ( new GridLayout(3,1));
    tRD=new TableRenderDemo();
    dC=new DrawCalendar();
    addItems();//add Buttons to JFrame
    private void addItems(){
         c.add(dC); //add Buttons to JFrame
         //c.add(tRD); //add Table to JFrame     

    I think this is what you are trying to do. Your code was not very clear so I wrote my own:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.table.*;
    import java.text.*;
    public class TableButtons extends JFrame implements ActionListener
         Component southComponent;
        public TableButtons()
              JPanel buttons = new JPanel();
              buttons.setLayout( new GridLayout(5, 7) );
              Dimension buttonSize = new Dimension(20, 20);
              for (int j = 0; j < 35; j++)
                   // this is a trick to convert an integer to a string
                   String label = "" + (j + 1);
                   JButton button = new JButton( label );
                   button.setBorder( null );
                   button.setBackground( Color.white );
                   button.setPreferredSize( buttonSize );
                   button.addActionListener( this );
                   buttons.add(button);
              getContentPane().add(buttons, BorderLayout.NORTH);
         public void actionPerformed(ActionEvent e)
              JButton button = (JButton)e.getSource();
              String command = button.getActionCommand();
              if (command.equals("20"))
                   displayTable();
              else
                   System.out.println("Button " + command + " pressed");
                   if (southComponent != null)
                        getContentPane().remove( southComponent );
                        validate();
                        pack();
                        southComponent = null;
         private void displayTable()
            String[] columnNames = {"Student#", "Student Name", "Gender", "Grade", "Average"};
            Object[][] data =
                {new Integer(1), "Bob",   "M", "A", new Double(85.5) },
                {new Integer(2), "Carol", "F", "B", new Double(77.7) },
                {new Integer(3), "Ted",   "M", "C", new Double(66.6) },
                {new Integer(4), "Alice", "F", "D", new Double(55.5) }
            JTable table = new JTable(data, columnNames);
            table.setPreferredScrollableViewportSize(table.getPreferredSize());
            JScrollPane scrollPane= new JScrollPane( table );
            getContentPane().add(scrollPane, BorderLayout.SOUTH);
            validate();
            pack();
            southComponent = scrollPane;
        public static void main(String[] args)
            TableButtons frame = new TableButtons();
            frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
            frame.pack();
            frame.setVisible(true);
    }

Maybe you are looking for

  • Problem deleting Content Areas

    Hi! i have just encountered the following error while deleting a content area An unexpected error has occurred (WWS-32100) ORA-6502: ORA-06502: PL/SQL: numeric or value error (WWC-36000 Thing to mention is... before that when i tried to delete anothe

  • Using the pen in tx1000 series

    How I can remove and place the pencil on the tx1000?, my pencil is stuck on the computer. Some can help me?. Thanks. RWRS

  • Rfc interface generator

    Hallo Gurus, as far as you know is the "RFC Interface Generator" still active? It should be under: Tools --> ABAP Workbench --->  Development  -->  Function library and then utilities -> RFC generate I am working on a SAP ECC 6.0. I need it to genera

  • Apex3.2.1 pipelined functions with parameters send cpu to 100 percent

    I have just installed 11g and exported a schema from 10g into it. When I run Apex3.2.1 and open a page with a flash chart that running off a table object populated by a pipelined function the CPU goes in overload 100%. I have tracked the problem to p

  • Adobe Reader V11 not going back to default settings after print

    Hi Guys, First time on this forum. Im having a problem with one of our clients Adobe Reader software, They have the latest version installed When printing they select the options they want i.e "multiple" (Only happens when you change something in her