Adding a button to a JInternalFrame titlebar

hi ,
i was looking for a way to add an additional button to the titlbar of my JInternalFrame , i found some very useful codes here but i still got a little problem , after i added the new button the title of my JInternalFrame becomes "..."
i would like to hear any suggestion you guys have ,
here is my code :
import javax.swing.*;
import javax.swing.plaf.basic.BasicInternalFrameUI;
import javax.swing.plaf.metal.MetalInternalFrameTitlePane;
import java.awt.*;
public class InternalFrameTest extends JFrame{
    public InternalFrameTest() {
        super();
        JInternalFrame jInternalFrame = new JInternalFrame("InternalFrameTest",true,true,true,true);
        myTitleBar(jInternalFrame);
        jInternalFrame.setSize(400,400);
        jInternalFrame.setVisible(true);
        JDesktopPane desktop = new JDesktopPane();
        desktop.add(jInternalFrame);
        getContentPane().add(desktop);
        setSize(500, 500);
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        setLocationRelativeTo(null);
        setVisible(true);
    private void myTitleBar(JInternalFrame internalFrame){
        BasicInternalFrameUI basicInternalFrameUI = (BasicInternalFrameUI)internalFrame.getUI();
        MetalInternalFrameTitlePane northPane = (MetalInternalFrameTitlePane)basicInternalFrameUI.getNorthPane();
        JButton iconifyButton = null;
        JButton maximizeButton = null;
        JButton closeButton = null;
        Component[] components = northPane.getComponents();
        for( int i=0; i < components.length; i++ ){
            if( components[i] instanceof JButton ){
                if( i == 0 ){
                     iconifyButton= (JButton)components;
}else if( i == 1 ){
maximizeButton= (JButton)components[i];
}else{
closeButton= (JButton)components[i];
northPane.remove( components[i] );
//create the additional button
JButton additionalButton = new JButton("+");
additionalButton.setFont(new Font("Arial",Font.BOLD,9));
additionalButton.setPreferredSize(new Dimension(14,14));
additionalButton.setMargin(new Insets(0, 0, 0, 0));
//create a new buttons panel
JPanel buttonsPanel = new JPanel();
buttonsPanel.setOpaque(false);
buttonsPanel.setMaximumSize(new Dimension(-1, 14));
//adding the buttons to the buttons panel
buttonsPanel.add(additionalButton);
buttonsPanel.add(iconifyButton);
buttonsPanel.add(maximizeButton);
buttonsPanel.add(closeButton);
//adding the panel to the north pane of the internal frame
northPane.setLayout(new BorderLayout());
northPane.add(buttonsPanel,BorderLayout.EAST);
public static void main(String[] args) {
new InternalFrameTest();
thanks in advance ,
oz

In general, it is very bad practice to access internal structures of UI delegates. Every time you find yourself casting getUI() result to a specific class and accessing the internal components, you are digging a very nasty hole. In this case, just adding the button is not enough - the internal frame title pane has a custom layout manager that knows nothing about it.
You will have to dig much deeper and create your own UI delegate for internal frames to handle all the cases (including theme support, rollover effects, layout and RTL). Another option is to use Substance LAF that provides an API to add custom buttons to title panes [1]. This example shows how to do this for top-level frames, but the same would work for internal frames as well.
[1] https://substance.dev.java.net/docs/api/SetRootPaneCustomTitleButtons.html

Similar Messages

  • How to disable size button in a JINternalFrame

    how to disable the middle button in a JInternalFrame
    the one between iconify button and close button
    thanx

    By reading the JInternalFrame API you will find what you need.

  • Adding a button to results page of a test in Captivate 6...

    I'm working in Captivate 6 and I don't seem to be able to add a button to the results page of a test.  Adding a button is not an option.  I need to insert Javascript in the button in order to get back to our Learning Management system.  Please help!

    Welcome to the forum,
    Have a look at: http://blog.lilybiri.com/want-a-button-on-question-slide-in-captivate It also explores shape buttons on the score slide.
    Lilybiri

  • Adding a Button to a Form

    I am brand-new to Oracle Forms, but have experience in VB and PL/SQL. Anyway, I have created a sample form based of a simple view. It will run client-server and I can also run it (recompiled) via Forms Server on my Solaris-based 9iAS Apps Server.
    When I go to add a simple button to the form, I see 12 identical buttons stacked up and acting as 1 large button. Same thing for any inerface item. What is going on?
    Using Forms 6i by the way.

    Check the number of records displayed in the datablock that you're adding the button to. It's probably set to 12.

  • Adding interactive buttons in Acrobat X Standard disables the Commenting and markup tools

    Why does adding interactive buttons to PDFs in Acrobat X Standard disable the Commenting and markup tools in the PDFs, but only when they are viewed in the Reader, not when opened in Acrobat?  When the buttons are removed, the Commenting and markup tools are re-enabled in Reader.
    Thank you.

    Which version of Reader are you testing with?

  • Adding share buttons

    has anyone had any success adding share buttons, such as add this, etc.

    Hi Robert,
    I have a tutorial on my site:
    http://allaboutiweb.com/index.php/2008/08/add-social-bookmarking-to-your-iweb/
    +I may receive some form of compensation, financial or otherwise, from my recommendation or link.+

  • Customize jinternalframe titlebar

    hai friends,
    can anyone help me in customize jinternalframe titlebar.
    1.how to change the titlebar background color.
    2.how to change titlebar height.
    3.how to change border color..
    pls anyone helpme

    hai friends,
    can anyone help me in customize jinternalframe titlebar.
    1.how to change the titlebar background color.
    2.how to change titlebar height.
    3.how to change border color..
    pls anyone helpme

  • Adding a Button to the Sales Order screen

    Good Day
    Experts:
    I have added a button to the SalesOrder screen with help from a previous post here on the forum.  The button was lined up with the others that were already exisitng on the screen.  Recently, I have encountered a problem with it.  When the SalesOrder screen is run on a different machine,  the button is almost not visible.  It appears there is some kind of issue with the screen resolution just for this button. 
    Do I have to do something special with this button when it is shown on the screen to get it to remain in line with the existing buttons?
    Thanks,
    EJD

    Hi Ed
    Are you setting the button in relation to the surrounding existing objects?  Like for instance ...
            Dim oButton As SAPbouiCOM.Item = oForm.Items.Item("2").Specific 'Cancel button
            Dim oNewButton As SAPbouiCOM.Button
            Dim oNewItem As SAPbouiCOM.Item = oForm.Items.Item("Test") 'your new button or control
            With oNewItem
                .AffectsFormMode = True
                .Left = oButton .Left  + oButton.Width ' notice how button is positioned based on  existing one
                .Top = oButton .Top
                .Width = oButton.Width
                .Height = oButton.Height
                .FromPane = oButton.FromPane
                .ToPane = oButton.ToPane
                .TextStyle = intTextStyle
                oNewButton = .Specific
            End With
            With oNewButton
                .Caption = strCaption
            End With
    Message was edited by:
            Neftali Figueroa
    Message was edited by:
            Neftali Figueroa

  • Adding custom buttons to the Rich Text Editor in CQ

    Hi,
    I have added custom buttons to the rich text editor in order to allow our editors to add specific content, such as popovers, custom videos and other data necessary data.
    I have successfully modifed the Rich Text editor so, that it includes the custom buttons in the actions panel.
    I have also managed to make the buttons work and include the data where necessary, when user highlights the text and clicks on a certain button.
    The last bit I am struggling with, is the visual feedback we give to the users when this text has associated action with it.
    E.g. when we select this text and make it bold when we click on the word B the button B becomes highlighted in the actions panel, later when we continue typing our text and click again on "bold" the letter B becomes highlighted again.
    Is there any button related callback/method I could overwrite to add this functionality and make my button highlighted ?
    Thanks,
    Puzanovs

    After lot's of thinking found a solution....
    Essentially the first step is to extend the CQ.form.rte.plugins.Plugin in your custom button.
    Then during the UI initialisation we create our "custom"
    var pressButton = new ui.TbElement("press-button", this, true,this.getTooltip("press-button")); // Essential extend of the button
    setInterval(function() {
                     if(window.jQuery) {
                         window.jQuery(document).ready(function () {
                             window.jQuery(".x-edit-glossary-insert").css({width:45,"background-image":"none"}); // Ignore the background
                             window.jQuery(".x-edit-glossary-insert").text("Press Button"); // Set the name
                            $(document).on({
                                mouseenter: function(){
                                  window.jQuery(".x-edit-glossary-insert").html("<b>Press Button</b>"); // Set the name bold                        
                                mouseleave: function(){                       
                               window.jQuery(".x-edit-glossary-insert").html("Press Button"); // Set the name normal
                             }}, '.press-button');
                 }, 100);
    tbGenerator.addElement("press-button", plg.Plugin.SORT_LISTS, pressButton, 10); // element is inserted
    Every time the element is inserted I add the following html
    <span class="press-button">Test peter</span>
    Now, every time in the editor, the content editor mouse overs the custom button it is higlighted in the RTE))

  • I was added one button in OA pages throw personalize. Error coming that pag

    Hi ALL.
    I was added one button in OA pages throw personalize. Error is coming that page now.please help me ....
    oracle.apps.fnd.framework.OAException: java.lang.ClassCastException: oracle.apps.fnd.framework.webui.beans.nav.OAButtonBean
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:597)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.layout.OAHeaderBean.processRequest(OAHeaderBean.java:389)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.layout.OAHeaderBean.processRequest(OAHeaderBean.java:389)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1133)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
         at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2318)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1717)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:502)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:423)
         at oa_html._OA._jspService(_OA.java:88)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
         at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187)
         at oa_html._RF._jspService(_RF.java:102)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:595)
    ## Detail 0 ##
    java.lang.ClassCastException: oracle.apps.fnd.framework.webui.beans.nav.OAButtonBean
         at oracle.apps.pv.oa.referral.webui.ReferralOverviewContextMainCO.processRequest(ReferralOverviewContextMainCO.java:486)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:581)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.layout.OAHeaderBean.processRequest(OAHeaderBean.java:389)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.layout.OAHeaderBean.processRequest(OAHeaderBean.java:389)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1133)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
         at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2318)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1717)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:502)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:423)
         at oa_html._OA._jspService(_OA.java:88)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
         at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187)
         at oa_html._RF._jspService(_RF.java:102)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:595)
    java.lang.ClassCastException: oracle.apps.fnd.framework.webui.beans.nav.OAButtonBean
         at oracle.apps.pv.oa.referral.webui.ReferralOverviewContextMainCO.processRequest(ReferralOverviewContextMainCO.java:486)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:581)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.layout.OAHeaderBean.processRequest(OAHeaderBean.java:389)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.layout.OAHeaderBean.processRequest(OAHeaderBean.java:389)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1133)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
         at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2318)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1717)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:502)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:423)
         at oa_html._OA._jspService(_OA.java:88)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
         at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187)
         at oa_html._RF._jspService(_RF.java:102)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:595)
    Thanks
    Rajavel R

    If you have not changed any code it is impossible that a classcast exception can be thrown since we evaluate for duplicate ids. Chances are there if you had given an id of a bean which is added programmatically in the controller then you might end up with this error. Delete the personalization and create the button with a unique name.

  • Adding toolbar buttons in the beginning

    Hi Experts,
    Can somebody tell me how to add my own toolbar buttons in ALV in the beginning.
    When i am adding buttons using the event handler class it is adding the buttons only at the end. I want the buttons in the very beginning.

    Hi Aditya,
    I am adding toolbar buttons using the below method.
    CLASS lcl_event_receiver IMPLEMENTATION.
      METHOD handle_toolbar.
        DATA: ls_toolbar  TYPE stb_button.
    append a separator to normal toolbar
        CLEAR ls_toolbar.
        MOVE 3 TO ls_toolbar-butn_type.
        APPEND ls_toolbar TO e_object->mt_toolbar.
    append an icon to create new skills
        CLEAR ls_toolbar.
        MOVE 'CREATE'(000) TO ls_toolbar-function.
        MOVE icon_create TO ls_toolbar-icon.
        MOVE 'Create Detail'(001) TO ls_toolbar-quickinfo.
        MOVE ' ' TO ls_toolbar-disabled.
        APPEND ls_toolbar TO e_object->mt_toolbar.
    append an icon to change existing information
        CLEAR ls_toolbar.
        MOVE 'CHANGE'(003) TO ls_toolbar-function.
        MOVE icon_change TO ls_toolbar-icon.
        MOVE 'Change Detail'(004) TO ls_toolbar-quickinfo.
        MOVE ' ' TO ls_toolbar-disabled.
        APPEND ls_toolbar TO e_object->mt_toolbar.
    append an icon to display information
        CLEAR ls_toolbar.
        MOVE 'DISPLAY'(006) TO ls_toolbar-function.
        MOVE icon_display TO ls_toolbar-icon.
        MOVE 'Display Detail'(007) TO ls_toolbar-quickinfo.
        MOVE ' ' TO ls_toolbar-disabled.
        APPEND ls_toolbar TO e_object->mt_toolbar.
    append an icon to delete information
        CLEAR ls_toolbar.
        MOVE 'DELETE'(009) TO ls_toolbar-function.
        MOVE icon_delete TO ls_toolbar-icon.
        MOVE 'Delete Detail'(010) TO ls_toolbar-quickinfo.
        MOVE ' ' TO ls_toolbar-disabled.
        APPEND ls_toolbar TO e_object->mt_toolbar.
      ENDMETHOD.                    "handle_toolbar

  • Printing problem when adding a button to print the whole page

    Hello,
    I added a button with printing option = Apply to self, Print = page.
    The result is that it prints only the i-view in which the button is located. I want the whole page to be printed. The page is composed of several i-views and I also use layers.
    Has someone an idea ?
    Thanks a lot,
    Thomas

    Hi Thomas,
    I received exact the same problem case during our visual composer developments. On SPS 14 the print functionality worked as expected with the print option u201Cprint pageu201D. After the implementation of SPS 16 we had to use u201Cprint screenu201D.
    Hopes this helps.
    Best regards
    RB

  • I am new at Captivate 8 and I have created a learning project using an existing power point presentation.  I have added a button that will allow my students to view a video on the subject.  When I run the project in Preview the button works but when I pub

    I am new at Captivate 8 and I have created a learning project using an existing power point presentation.  I have added a button that will allow my students to view a video on the subject.  When I run the project in Preview the button works but when I publish it, it stops working.

    I added an Interactions button and in the Actions on Success I open an URL or file. I have placed the video on our web server.   In the URL I point to our web server "http://www.wmabhs.org/Media/Add Client 3rd Party Coverage.mp4".  If I run this from any browser it works.  So what do you think I have done wrong?

  • Adding PRINT Button on a List Item Page

    Hi,
    We have an existing custom list for our asset tracking. We are required to make the list item's page printable by adding a "PRINT" button on it. Currently, a list item's page has a "Close" button together with the following tabs such as: "New Item", "Edit Item", "Delete Item", "Manage Permissions", and "Alert Me". "Print" button should be like the "Close" button. Once the "Print" button will be click then a "Print" window will appear to select the printer to use. It will print only the list item's content and not the whole page.
    Is there anyone who implemented as what describes above? Please help me how to implement this.
    Thank you in advance.
    Jack

    Hi,
    You can refer to the following two articles to add a "print list" option to the list actions menu:
    How to add a "print list" option to the list actions menu
    http://www.sharepoint-tips.com/2007/01/how-to-add-print-list-option-to-list.html
    List Print Templates - Beta1
    http://www.codeplex.com/sharepointtemplates/Release/ProjectReleases.aspx?ReleaseId=6018
    Hope this helps.
    Rock Wang
    Rock Wang– MSFT
    Hi Rock,
    Thank you for giving those links.
    I checked it and it was almost the same with Andre's posting. I did not try to install since as i understand, i need to do it in the server that hosted our portal which i'm afraid of doing it. I'm not an advanced user of sharepoint so i'm very careful of doing changes or enhancement to our portal.
    Jack

  • Adding a button to the Open Items List

    Hiya everyone,  I am trying to add a button to the Open List Items form (formType - 152) which is located in Reports -> Sales & Purchasing -> Open Items List.  When I attempt to add a button to that particular form it does not appear.  The only form I seem to be be able to add a button to is on the main menu.  I have added my code below:
    Private Sub CreateMySimpleForm()
            Dim oItem As SAPbouiCOM.Item
            Dim oButton As SAPbouiCOM.Button
           oForm = SBO_Application.Forms.ActiveForm
            oItem = oForm.Items.Add("80", SAPbouiCOM.BoFormItemTypes.it_BUTTON)
            oItem.Left = 6
            oItem.Width = 65
            oItem.Top = 51
            oItem.Height = 19
            oButton = oItem.Specific
            oButton.Caption = "View Document"
        End Sub
    Has anyone got any ideas.....Thanks

    I have discovered that the button appears if the Open List Items window is open when I run my code so the button can actually appear on that form.  However, how do I change this line :
    oForm = SBO_Application.Forms.ActiveForm
    so that it specifies that the button will appear only on the Open List Items form.  When I change that line to:
    oForm = SBO_Application.Forms.GetForm("152",1 )    ....it keeps on complaining that it cannot find that form. 
    I'm not sure what the Count is supposed to be in:
    GetForm(Type As String, <b>Count</b> As Integer) 
    If anyone could help me out I would be grateful.....Thanks

Maybe you are looking for

  • How do I 'View All Rentals' Movies / Films in itunes 8.2

    The link that was once there has now gone – maybe in the last week or so. This used to be a useful way to see all Movie rentals available and browse through by release date or other. There doesn't seem to be a replacement or improvement to this featu

  • What does the orange light on the power cord mean?

    i have a brand new Macbook and am charging it for the second time but when I plug it in the power adaptor goes green then orange? Anyone know what this is? i do not see anything about this online or in the manual. thanks, mark

  • Calling web service in Oracle Applications...

    Is there any way we can call web services in Oracle Applications? I am using 11.5.10 verison of Oracle Applications. Thanks in advance, Sandra

  • Lightroom is not acknowledging changes made and saved in Photoshop Elements 11

    I purchased Photoshop Elements 11 and Lightroom 4 to use together.  I am a novice and new to photography and these softwares.  However, I used both together in trial versions and did not have this problem. When I start in Lightroom with an image, the

  • Going from phone to PC on a sync...

    So, a while ago, I wiped my HD disc clean. It was catastrophic failure mode, and needed to give it a good scrubbing... I didn't really have a whole lot of "Gee, I should save this" time before it happened. Thus, everything that's on my Iphone is more