Hide Personalize Button in Vews Panel?

Hi friends,
(Apps R12)
Is there any way to hide the "Personalize" button in Views panel?
(even modifying the .xml... do you know which one is it?)
Thanks!

hi
although i have not cheked if "personalize page " is having any function ,please check if it is having function name ,then u can hide this in process request of CO using the following code
if (< condition >)
OAPageLayoutBean page = pageContext.getPageLayoutBean();
page.prepareForRendering(pageContext);
OAGlobalButtonBarBean buttons = (OAGlobalButtonBarBean)page.getGlobalButtons();
OAGlobalButtonBean button =
(OAGlobalButtonBarBean)buttons.findIndexedChildRecursive("<FUNCTION_NAME>");
button.setRendered(false); // Hide the global button, or
button.setDisabled(true); // Disable the global button so it renders, but is
not selectable
thanx
Pratap

Similar Messages

  • Hide Personalize Button in Tile Layout

    Hello,
    we defined the Tile Layout for the Overview Page of Component PRD01OV.
    There we embedded some custom table views. Everything is working fine.
    Now our customer has the requirement that we should hide the Personalize Buttons for the Table Views.
    I have tried it in the .htm page of the Table View. If I set the following code at first the buttons were shown two times. The personalizable and showPersonalizeButton Values are working for the second line.
    <chtmlb:configCellerator downloadToExcel =
    "TRUE"
    iterator = "<%= AdditionalData %>"
    editMode = "<%= lv_cellerator_editmode %>"
    id = "ConfCellTable"
    onRowSelection = "select"
    personalizable = "FALSE"
    showPersonalizeButton = "FALSE"
    selectedRowIndex = "<%= AdditionalData->SELECTED_INDEX %>"
    selectedRowIndexTable = "<%= AdditionalData->SELECTION_TAB %>"
    selectionColumn = "<%= lv_cellerator_selectioncolumn %>"
    selectionMode = "NONE"
    table = "//AdditionalData/Table"
    usage = "EditList"
    visibleFirstRow = "<%= AdditionalData->VISIBLE_FIRST_ROW_INDEX %>"
    visibleRowCount = "6"
    width = "100%"
    xml = "<%= controller->configuration_descr->get_config_data(
    ) %>" />
    Then I have changed the usage from EditList to Assignmentblock so the buttons were only show one time. 
    <chtmlb:configCellerator downloadToExcel =
    "TRUE"
    iterator = "<%= AdditionalData %>"
    editMode = "<%= lv_cellerator_editmode %>"
    id = "ConfCellTable"
    onRowSelection = "select"
    personalizable = "FALSE"
    showPersonalizeButton = "FALSE"
    selectedRowIndex = "<%= AdditionalData->SELECTED_INDEX %>"
    selectedRowIndexTable = "<%= AdditionalData->SELECTION_TAB %>"
    selectionColumn = "<%= lv_cellerator_selectioncolumn %>"
    selectionMode = "NONE"
    table = "//AdditionalData/Table"
    usage = "ASSIGNMENTBLOCK"
    visibleFirstRow = "<%= AdditionalData->VISIBLE_FIRST_ROW_INDEX %>"
    visibleRowCount = "6"
    width = "100%"
    xml = "<%= controller->configuration_descr->get_config_data(
    ) %>" />
    Has anyone an idea how I can hide the Personalize Button? I believe that it has something to do with the tile layout.
    Kind regards,
    Anne

    Hi,
    this is the complete code of the htm page:
    <%@page language="abap" %>
    <%@extension name="thtmlb" prefix="thtmlb" %>
    <%@extension name="chtmlb" prefix="chtmlb" %>
    <%@extension name="bsp" prefix="bsp" %>
    <%
    * Conversion Cnode SelectionMode to Tag
    data
    : lv_cellerator_selectionmode
    type string
    lv_cellerator_editmode
    type string
    lv_cellerator_selectioncolumn
    type string
    cl_thtmlb_util
    =>translate_selection_mode
    exporting
    iv_selection_mode
    = AdditionalData
    ->SELECTION_MODE
    iv_all_rows_editable
    = space
    importing
    ev_selection_mode
    = lv_cellerator_selectionmode
    ev_edit_mode
    = lv_cellerator_editmode
    ev_selection_column
    = lv_cellerator_selectioncolumn
    %>
    <chtmlb:configCellerator downloadToExcel =
    "TRUE"
    iterator =
    "<%= AdditionalData %>"
    editMode =
    "<%= lv_cellerator_editmode %>"
    id =
    "ConfCellTable"
    onRowSelection =
    "select"
    personalizable =
    "FALSE"
    showPersonalizeButton =
    "FALSE"
    selectedRowIndex =
    "<%= AdditionalData->SELECTED_INDEX %>"
    selectedRowIndexTable =
    "<%= AdditionalData->SELECTION_TAB %>"
    selectionColumn =
    "<%= lv_cellerator_selectioncolumn %>"
    selectionMode =
    "NONE"
    table =
    "//AdditionalData/Table"
    usage =
    "ASSIGNMENTBLOCK"
    visibleFirstRow =
    "<%= AdditionalData->VISIBLE_FIRST_ROW_INDEX %>"
    visibleRowCount =
    "6"
    width =
    "100%"
    xml =
    "<%= controller->configuration_descr->get_config_data(
    ) %>" />

  • How can I use the button in one panel to control the other panel's appearing and disappearing?

    How can I use the button in one panel to control the other panel's
    appearing and disappearing? What I want is when I push the button on
    one button . another panel appears to display something and when I
    push it again, that the second panel disappears.

    > How can I use the button in one panel to control the other panel's
    > appearing and disappearing? What I want is when I push the button on
    > one button . another panel appears to display something and when I
    > push it again, that the second panel disappears.
    >
    You want to use a combination of three features, a button on the panel,
    code to notice value changes using either polling in a state machine of
    some sort or an event structure, and a VI Server property node to set
    the Visible property of the VI being opened and closed.
    The button exists on the controlling panel. The code to notice value
    changes is probably on the controlling panel's diagram, and this diagram
    sets the Visible property node of a VI class property node to FALSE or
    TRUE to show or
    hide the panel. To get the VI reference to wire to the
    property node, you probably want to use the Open VI Reference node with
    the VI name.
    Greg McKaskle

  • How to disable seeded views and personalize button on project list page?

    Hey all,
    we are setting a limited user access responsibility for employees...
    they will come into the team member page..
    problem is if they select project list page from the drop down...
    there are seeded views like profitability... we dont want anyone to see them unless they are a sr staff...
    also the personalize button can allow them to pick the fields into a custom view if they desire...we need that turned off or supress certain fields from the list of fields when creating a new view... or worst case turn off the personalize button
    thoughts?? solution???

    The personalization page (Shuttle bean where user selects the columns to be displayed on the table) is being rendered automatically by Framework layer and not from Product code side.Hence it will not be possible to hide fields.
    Another way of achieving the objective which you detailed is : You can create the views which is secured by a function. So that users with that function security will be only able to see those views.
    Hope this helps

  • How to hide "Resfresh" button in top yellow bar of guided procedures?

    Hi Folks
    I would like to remove the "Refresh" button in the top yellow bar of an guided procedures workitem. You get to this yellow bar when you click on an uwl workitem which is associated with guided procedures view. Does anybody know how to hide this button?
    Thanks a lot for helping!!
    Kind regards
    Bettina

    Dear Bettina,
    this will be a feature of NetWeaver CE 7.2.
    Until then it simply is not possible.
    There is one workaround, you can use the SingleTask view of a Process Instance, which however will show ONLY the action itself, without the Process Title, or the Ctx Panel or the Phase Navigator.
    If this works for you, I can guide you how to achieve it.
    Regards,
    George.

  • How to hide the button in ESS service PZ01?

    Hi ESS experts,
    In the 'Who's Who' service, when we got a person after search, there is a button 'Org Structure Chart' for the person. Since we didn't setting up the chart, it won't show anything. Do you know where can I hide this button? I haven't found it in the IMG 'Who's Who' configuration.
    Thanks a lot.
    Best regards,
    Johnson

    Hello Om,
    Thanks for the reply. Actually we don't ant to give the personalise option to the users therefore don't want to use the CTRLSHIFTRight Mouse Click for hiding buttons..
    if there is some personalize option valid for the entire portal ,then we can go for it.
    Looking forward to your reply.

  • How can I hide a button with javascript in Captivate 8?

    I need to run some javascript in my project and at the same time I want to hide a button, so I can't use advanced actions.

    It is very strange, most users who have focus on JS try to do everything with it, whereas lot of simple actions can easily be done with advanced/shared actions. I will only go to JS when it is not possible with advanced/shared actions.
    You are lucky, I was just restarting to work on an advanced training for next week when your question showed up.

  • How to hide 'SAVE' button in adobe form layout

    Hi  Friends,
    I have a requirement to hide 'SAVE' button in adobe form layout .They dont want to save the form .
    Is there any way to achieve this .I have gone through scn ,but couldnt find the proper solution
    Thanks and Regards,
    Subeesh Kannottil

    Hi Subeesh,
    Are you talking about restricting the User from Saving the Adobe Form Output. 
    Regards,
    Sivanand Ala

  • How can I copy a button to a panel?

    I am working on this project where I have 3 buttons that need to be dragged to a panel. I have created a new TransferHanndler that can support dropping to a panel. Now I have to figure out to actually copy an image of that button to the panel wherever the mouse position is, and be able to move it around in that panel and change its position.
    Here is what I have so far:
    import java.awt.event.MouseAdapter;
    import java.awt.event.MouseEvent;
    import java.awt.event.MouseListener;
    import javax.swing.JButton;
    import javax.swing.JComponent;
    import javax.swing.TransferHandler;
    * DNDApplet.java
    * Created on June 10, 2008, 4:11 PM
    * @author  Evie
    public class DNDApplet extends javax.swing.JApplet {
        /** Initializes the applet DNDApplet */
        public void init() {
            try {
                java.awt.EventQueue.invokeAndWait(new Runnable() {
                    public void run() {
                        initComponents();
                        initHandlers();
            } catch (Exception ex) {
                ex.printStackTrace();
        public void initHandlers(){
            MouseListener listener = new DragMouseAdapter();
            jButton1.addMouseListener(listener);
            jButton2.addMouseListener(listener);
            jButton3.addMouseListener(listener);
            JButton buttonClone = new JButton();
            jButton1.setTransferHandler(new ButtonTransferable("hello"));
            jButton2.setTransferHandler(new ButtonTransferable("hello2"));
            jButton3.setTransferHandler(new ButtonTransferable("hello3"));
            jPanel1.addMouseListener(listener);
            jPanel1.setTransferHandler(new ButtonTransferable("goodbye"));
            //jEditorPane1.setDragEnabled(true);
            //jEditorPane1.setTransferHandler(new TransferHandler("text"));
            //jButton2.setTransferHandler(new TransferHandler("text"));
            //label2.setTransferHandler(new TransferHandler("icon"));
        /** This method is called from within the init() method 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();
            jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/cube.gif"))); // NOI18N
            jButton1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton1ActionPerformed(evt);
            jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sphere.gif"))); // NOI18N
            jButton3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/triangle.gif"))); // NOI18N
            jPanel1.setBackground(new java.awt.Color(204, 204, 255));
            javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
            jPanel1.setLayout(jPanel1Layout);
            jPanel1Layout.setHorizontalGroup(
                jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGap(0, 279, Short.MAX_VALUE)
            jPanel1Layout.setVerticalGroup(
                jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGap(0, 199, 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.TRAILING, false)
                        .addComponent(jPanel1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                            .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 77, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(18, 18, 18)
                            .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(18, 18, 18)
                            .addComponent(jButton3)))
                    .addContainerGap(111, Short.MAX_VALUE))
            layout.setVerticalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addContainerGap()
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jButton3)
                        .addComponent(jButton2)
                        .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 61, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(18, 18, 18)
                    .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addContainerGap())
        }// </editor-fold>
    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
    // TODO add your handling code here:
        // 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
    class DragMouseAdapter extends MouseAdapter {
            public void mousePressed(MouseEvent e) {
                JComponent c = (JComponent) e.getSource();
                TransferHandler handler = c.getTransferHandler();
                handler.exportAsDrag(c, e, TransferHandler.COPY);
    And this is my transfer handler
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    * @author Evie
    import java.awt.Component;
    import java.awt.Dimension;
    import java.awt.datatransfer.DataFlavor;
    import java.awt.datatransfer.StringSelection;
    import java.awt.datatransfer.Transferable;
    import javax.swing.DefaultButtonModel;
    import javax.swing.DefaultListModel;
    import javax.swing.GroupLayout;
    import javax.swing.JComponent;
    import javax.swing.JList;
    import javax.swing.JButton;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.TransferHandler;
    public class ButtonTransferable extends TransferHandler {
        private int[] indices = null;
        private int addIndex = -1; //Location where items were added
        private int addCount = 0;  //Number of items added.
        private String item;
        private String name;
        private JButtonX comp;
        //private BufferedImage thumb;
        private String thumb;
        public ButtonTransferable (String s) {
            //this.comp = (JButtonX)c;
            JButtonX newButton = new JButtonX();
            this.comp = newButton;
        ButtonTransferable(String s, String s0) {
            throw new UnsupportedOperationException("Not yet implemented");
         * We only support importing strings.
        public boolean canImport(TransferHandler.TransferSupport info) {
            // Check for String flavor
            if (!info.isDataFlavorSupported(DataFlavor.stringFlavor)) {
                return false;
            return true;
         * Bundle up the selected items in a single list for export.
         * Each line is separated by a newline.
        protected Transferable createTransferable(JComponent c) {
            //JList list = (JList)c;
            JButton button = (JButton) c;
            //indices = list.getSelectedIndices();
            name = button.getName();
            //Object[] values = list.getSelectedValues();
            StringBuffer buff = new StringBuffer();
            /*for (int i = 0; i < values.length; i++) {
                Object val = values;*/
    buff.append("The button was transferred");
    /*if (i != values.length - 1) {
    buff.append("\n");
    return new StringSelection(buff.toString());
    * We support both copy and move actions.
    public int getSourceActions(JComponent c) {
    return TransferHandler.COPY_OR_MOVE;
    * Perform the actual import. This demo only supports drag and drop.
    public boolean importData(TransferHandler.TransferSupport info) {
    if (!info.isDrop()) {
    return false;
    System.out.println("I imported a string");
    JPanel panel = (JPanel)info.getComponent();
    //DefaultModel listModel = (DefaultListModel)list.getModel();
    //JList.DropLocation dl = (JList.DropLocation)info.getDropLocation();
    //int index = dl.getIndex();
    //boolean insert = dl.isInsert();
    // Get the string that is being dropped.
    Transferable t = info.getTransferable();
    String data;
    try {
    data = (String)t.getTransferData(DataFlavor.stringFlavor);
    catch (Exception e) { return false; }
    /***Declaring new JButton variables**/
    JButton jb = new javax.swing.JButton();
    jb.setIcon(new javax.swing.ImageIcon(getClass().getResource("/cube.gif"))); // NOI18N
    /*//clone
    JButtonX cloneLab = null;
    cloneLab = (JButtonX)comp.clone();
    cloneLab.setName("clonebtn");
    cloneLab.setToolTipText("clonebtn");
    cloneLab.setVisible(true);
    panel.add(cloneLab);
    javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(panel);
    panel.setLayout(jPanel1Layout);
    jPanel1Layout.setHorizontalGroup(
    jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGroup(jPanel1Layout.createSequentialGroup()
    .addContainerGap()
    .addComponent(jb)
    .addContainerGap(panel.getMousePosition().y, Short.MAX_VALUE))
    jPanel1Layout.setVerticalGroup(
    jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGroup(jPanel1Layout.createSequentialGroup()
    .addContainerGap()
    .addComponent(jb)
    .addContainerGap(panel.getMousePosition().x, Short.MAX_VALUE))
    Component compArray[] = panel.getComponents();
    int size = compArray.length;
    for(int i = 0; i < size; i++)
    System.out.println("element "+i+" is: " +compArray[i].getName());
    return true;
    * Remove the items moved from the list.
    protected void exportDone(JComponent c, Transferable data, int action) {
    JButton source = (JButton)c;
    DefaultButtonModel listModel = (DefaultButtonModel)source.getModel();
    /*if (action == TransferHandler.MOVE) {
    for (int i = indices.length - 1; i >= 0; i--) {
    //listModel.remove(indices[i]);
    indices = null;
    addCount = 0;
    addIndex = -1;
    }Edited by: hannoona on Jun 13, 2008 8:50 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Ok the problem was the layout in buttonTransferable.java
    Here is what was changed and it worked.
    javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(panel);
            panel.setLayout(jPanel1Layout);
            jPanel1Layout.setHorizontalGroup(
                jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel1Layout.createSequentialGroup()
                    .addContainerGap()
    //HERE IS WHAT WAS ADDED
                    .addGap(panel.getMousePosition().x, panel.getMousePosition().x, panel.getMousePosition().x)
                    .addComponent(jb)
                    .addContainerGap(panel.getMousePosition().y, Short.MAX_VALUE))
            jPanel1Layout.setVerticalGroup(
                jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel1Layout.createSequentialGroup()
                    .addContainerGap()
    //HERE IS WAT WAS ADDED AS WELL
                   .addGap(panel.getMousePosition().y, panel.getMousePosition().y, panel.getMousePosition().y)
                    .addComponent(jb)
                    .addContainerGap(panel.getMousePosition().x, Short.MAX_VALUE))
            jb.setLocation(panel.getMousePosition().x, panel.getMousePosition().y);
            jb.setToolTipText("hi. im new.");
            System.out.println("mouse x is: "+panel.getMousePosition().x);
            System.out.println("mouse y is: "+panel.getMousePosition().y);
            System.out.println("jb x is: "+jb.getX());
            System.out.println("jb y is: "+jb.getY());
            return true;

  • Laying out buttons in a panel

    I have a panel with 4 buttons. The panel is added to the main window using BorderLayout.SOUTH so that the buttons are at the bottom of the window. Now I want to align the buttons on the right side of the panel, like so:
    | |
    | ----- ----- ----- ----- |
    | | b1| | b2| | b3| | b4| |
    | ----- ----- ----- ----- |
    | |
    The obvious thing to do here is use
    myPanel.setAlignmentX(Component.RIGHT_ALIGNMENT);
    But it doesn't work. Any suggestions are greatly appreciated.
    Jason

    Any idea why the
    panel.setAlignmentX(Component.RIGHT_ALIGNMENT)
    wouldn't do the trick?Because the panel is using a BorderLayout. Any inherent behavior specified by the panel would be overshadowed by the behavior specified by the BorderLayout layout manager.
    By the way you also asked a component alignment question here: http://forum.java.sun.com/thread.jsp?forum=57&thread=352465
    If any of the replies answered your question then you should award the duke dollar.

  • How to Hide advance button in input list of values Popup

    I am using input List Of Values component to select value from search Pop up, in that popup i need only basic search only , i am unable to hide advance button... plase tell me how to hide this advance option

    I haven't tried this, but check
    How to remove basic/advanced button in inputListOfValues search dialog
    This does not have complete solution, but might give you some lead.

  • Using jQuery to hide a button (wrapped in td tag) based on attribute value (name in this case)

    I have simulated what I'm trying to do here:
    http://jsfiddle.net/dayjuuk5/
    Let me know if you can't see it for any reason.
    My question- I'm not sure I understand why this method of hiding this td tag doesn't work. I'm looking for a way to hide this button on page load (not click driven).
    Thank you for your time.
    Samir

    Hi Samir,
    Thanks for your sharing.
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

  • SHOW ALL / HIDE ALL BUTTONS produce error in chm but not in "View Selected Item"

    My SHOW ALL and HIDE ALL buttons work in the View Selected
    Item mode. However, the compiled version generates an error tag:
    Line: 72
    Char: 1
    Error: Object expected
    Code: 0
    URL:
    mk:@MSITSTORE:C\Documents%20and%20Settings\glenn_michaels\RoboHelp%206.0\TCA\!SSL!
    In short, the the compiled chm is located in the SSL. I tried
    adding showhide.js and ehlpDhtm.js to the SSL folder, but that
    didn't make a difference. What is missing? How do I fix this?
    Many thanks in advance...
    glennito

    Mr. Grainge,
    I've tried to follow your instructions to the letter, but I'm
    not having any luck.
    1) I copied the showhide.js to
    a) RoboHelp 6.0 > Project Folder
    b) RoboHelp 6.0 > Project Folder > SSL
    c) RoboHelp 6.0 > Project Folder > SSL >
    MicroSoft_HTML_Help
    2) I pasted btnhideall.gif, btnshowall.gif, printerblue.gif
    into
    a) RoboHelp 6.0 > Project Folder > SSL
    b) they are also listed in RoboHelp 6.0 > Project Folder
    3)The Project Manager > Baggage File originally displayed
    a
    a) Project (Name) folder
    b) ehelp.xml
    c) RoboHHre.Ing
    I opened the Baggage File > Project (Name) folder,
    selected New Baggage File, and added, respectively:
    i. btnhideall.gif
    ii. btnshowall.gif
    iii. ehlpDhtm.js
    iv. printerblue.gif
    v. printerred.gif
    vi. showhide.js
    vii. TCA.fpj
    vii. root.fpj
    4) I also opened rhbag.apj in Notepad. It shows
    a) ehelp.xml and RoboHHRE.Ing accompanied by
    <usercreated>false</usercreated> tags
    b) the remaining baggage files are accomanied by
    <usercreated>true</usercreated> tags
    5) Finally, I used Notepad to display two topic files in
    which the error message identified a Line: XX. In one case the line
    # is 42, in another, 19. In both cases, when I counted lines,
    starting with <body>, I ended up on:
    onClick="JavaScript:hideEm()"
    However, I am none the wiser for my effort and don't know
    what (5) might be telling me.
    6) The only thing I can think of is that the compiled chm
    file is two levels away from the Project Name directory that holds
    all the files. The files live in Robohelp 6.0 > Project Name
    while the compiled help is found in Robohelp 6.0 > Project Name
    > SSL! > MicroSoft_HTML_Help > Project Name.chm.
    Should I be adjusting the Relative Path within the topics?
    Many thanks for your attention and assistance.
    glenn

  • How to add a button on a panel's title bar?

    Hi,
    How can I add a button to a panel's title bar? Buttons that
    are simply added to a panel's title bar become invisible.
    -Altu

    One way is to put your button component oustide your Panel
    tag in your MXML. The set the x/y coordinates for the button so it
    is on the Panel.
    <mx:Panel x="20" y="168" width="250" height="118"
    layout="absolute"/>
    <mx:Button x="73" y="173" label="Button"/>

  • JavaScript in the PDF can hide toolbar buttons

    Hi Leonard,
    You mentioned in http://forums.adobe.com/message/2161074#2161074 that "JavaScript in the PDF can hide toolbar buttons."
    According to the Javascript docs for Acrobat 7 the App.HideToolbarButton function only runs at AppInit.  Which means that I would have to have the javascript in a file.  How can I do that from within the document?  Is there another way to to do set this from our web application?
    Rob

    Perhaps that's simply a feature that isn't supported by presenting a Captivate intended for the web from inside a PDF?
    Just guessing... Rick

Maybe you are looking for

  • ISync not finding Calendars in iCal

    To begin, I have "upgraded" to 10.5.3. I just attempted to sync my cellphone with my Mac, and noticed that iSync was not recognizing any of my calendars in iCal. When I clicked on the Calendars box in iSync, I got the following message: No writable c

  • Java GUI problem

    Hi everyone! I got some weird java problem. The thing is that I am building a schedule system which contains all the days of the week. It is supposed to print the schedule for each day once you select a day in a comboBox. I have a linked list of JPan

  • Graphics card upgrades

    I have a G6-1189SA laptop with Integrated HD intel graphics card. It is not good for running things such as minecraft. Is there an additional slot where i can fit a better graphics card. If there is, would you recommend any particular graphics card -

  • Need to set applet background color

    Hi, I try to write an applet in java and I need to set the back ground color of my applet to ==> RGB ( 66 , 144 , 216 ) how can I do that?? I have already looked at Java API and couldn't such a method: setBackGroundColor(66,144,216); please help than

  • Crystal report misalignment

    I am facing a crystal report alignment issue in my web server. The Microsoft visual studio .net 2003 Enterprise was installed and application was tested and running fine in Jan 09. When we tested the application in March 09 again, the report printed