Have HTML content on Tabbed Panes

I'm trying to add HTML content to tabbed panes in an Applet environment.
Here is the code:
import java.awt.*;
import javax.swing.*;
<APPLET
CODE = tabbedpane.class
WIDTH = 400
HEIGHT = 200 >
</APPLET>
public class tabbedpane extends JApplet
public void init()
Container contentPane = getContentPane();
JTabbedPane jtabbedpane = new JTabbedPane();
JPanel jpanel1 = new JPanel();
JPanel jpanel2 = new JPanel();
JPanel jpanel3 = new JPanel();
jpanel1.add(new JLabel("This is panel 1"));
jpanel2.add(new JLabel("This is panel 2"));
jpanel3.add(new JLabel("This is panel 3"));
jtabbedpane.addTab("Tab 1",
new ImageIcon("tab.jpg"),
jpanel1, "This is tab 1");
jtabbedpane.addTab("Tab 2",
new ImageIcon("tab.jpg"),
jpanel2, "This is tab 2");
jtabbedpane.addTab("Tab three",
new ImageIcon("tab.jpg"),
jpanel3, "This is tab 3");
contentPane.setLayout(new BorderLayout());
contentPane.add(jtabbedpane);
Could anyone tell me how can i add html content to this panes?
Thanks
Cesar

    JLabel l = new JLabel ("<html><font color = 'blue'>Hello world</font>") ;Foxcoming

Similar Messages

  • Hiding tabbed panes-should be enabled only on certain event

    Hi,
    I desperately need help. I'm still new to swings and thus need help.I'm writing an swing application where i have tabbed panes just like a tree i.e
    main1,main2
    under main1 have have another set of tabbed panes. Now i have to enable only the first pane and inside that pane there is a button which should enable the other pane and so forth. I just cannot figure how i should go about doing it. Any help is appreciated.
    ashah

    I tried doing that the new problem that i came across is that -
    here is the sample of the code. This is on the similar lines like i have written the code
    import javax.swing.*;
    import javax.swing.event.*;
    import java.awt.*;
    import java.awt.event.*;
    public class tabbedPaneDemo extends JPanel
    JTabbedPane tabbedPane = new JTabbedPane();
    JPanel panel1 = new JPanel();
    JPanel mainPanel1 = new JPanel();
    public tabbedPaneDemo()
    Component panel1 = makePanel1();
    tabbedPane.addTab("Panel1", panel1);
    tabbedPane.setSelectedIndex(0);
    setLayout(new GridLayout(1, 1));
    add(tabbedPane);
    Component makePanel1()
         JButton next = new JButton("Next");
         buttonListener listener = new buttonListener();
         next.addActionListener(listener);
         mainPanel1.add(next);
         return mainPanel1;
    class buttonListener implements ActionListener
         public void actionPerformed(ActionEvent e)
              if(e.getSource() == "Next")
                   tabbedPane.removeTabAt(0);
                   tabbedPane.addTab("Panel2",null,makePanel2());
                   tabbedPane.setSelectedIndex(0);
                   JButton next1 = new JButton("Next1");
                   buttonListener listener = new buttonListener();
                   next1.addActionListener(listener);
                   panel1.add(next1);
              if(e.getSource() == "Next1")
                   tabbedPane.setEnabledAt(0,false);
                   tabbedPane.addTab("Panel3",null,makePanel3());
                   tabbedPane.setSelectedIndex(1);
    Component makePanel2()
         return panel1;
    Component makePanel3()
         JPanel mainPanel = new JPanel();
         return mainPanel;
    public static void main(String args[])
         tabbedPaneDemo demo = new tabbedPaneDemo();
         JPanel p = new JPanel(new BorderLayout());
         p.add(demo,BorderLayout.NORTH);
         JFrame frame1 = new JFrame("TabbedPaneDemo");
         frame1.addWindowListener(new WindowAdapter()
         public void windowClosing(WindowEvent e)
              System.exit(0);
         frame1.getContentPane().add(p, BorderLayout.CENTER);
         frame1.setSize(400, 125);
    frame1.setVisible(true);
    I know there is a very simple mistake that i'm making but i can't figure where.

  • Retreive name of a  Tabbed Pane clicked....

    Folks,
    I have a set of Tabbed Panes generated whilst iterating over a collection.
    Q) How can I get the name/value of the tabbed Pane clicked?
    The code below generates a tabbed Pane with grp names :
    Tab : A
    Tab : B
    Tab : C
    When I click on Tab A,I want to return back A.
    When I click on Tab B,I want to return back B.
    for (PopulationGroup grp : getPopGroupToTreeModel().keySet()) {
         tabbedPane.addTab(grp.getName(),new JScrollPane(planTree));
    }I tried using tabbedPane.getTitle() but this requires an index.
    Can anyone please tell me how can I do get the names/value of a tabbedPane clicked?
    Thanks,

    Sure...sorry about not posting this....
    I have created a listener on the Tabbed Pane this way ..
    // Register a change listener
    myTabbedPane.addChangeListener(new ChangeListener() {
            // This method is called whenever the selected tab changes
            public void stateChanged(ChangeEvent evt) {
                JTabbedPane pane = (JTabbedPane)evt.getSource();
                // Get current tab
                int sel = pane.getSelectedIndex();
      });Once I have the index,I can manipulate this as required.
    Hope this helps...

  • Adding more rows in a html table(enclosed inside a jsf tabbed pane)

    hi,
    i m facing a problem. i have a html Table inside a jsf Tabbed Pane and a button to add more rows.whenever i click on the button it should add 5 more rows to the table using javscript.
    can anyone hlp me in solving this problem.
    thankx in advance

    Use the elegant JSF h:dataTable instead of plain HTML table with a heap of DOM stuff.

  • How can I have multiple WINDOWS (NOT tabs) with INDEPENDENT content?

    How can I have multiple '''windows''' (''not ''tabs) with '''independent''' content?
    I used to be able to open separate windows with Firefox, and the content could be completely different in each window. No matter what I did in any window, no OTHER window open at the time, nor any of the content therein, was affected. This is no longer the case and it is extremely frustrating for me.
    I do ''not ''like tabs and do not use them. I prefer multiple windows plus I am so used to using them, for so many years now! But with v9.0.1 I suddenly can no longer do what I've always done with my browser without this aggravating problem constantly reminding me that I can't have what I want in firefox anymore.
    Or can I? Does anyone have a solution I don't realize exists?
    Thanks,
    Sowelu

    AppleScriptObjC can use pretty much everything in the Cocoa API, so yes, it is possible.
    Note that a view is not the same as a window, and a window can have multiple views. There are also many ways to implement "tabs";  take a look at some of Apple's applications - they use various mixtures of toolbars, checkboxes, and radio buttons, for example.  An application such as this will be a lot more involved than what you have done so far though, using custom classes and subclassing existing ones, so be prepared to do a lot of reading and researching.

  • How to use tab-pane-floating?

    What does "The styleclass is "tab-pane-floating" if the TabPane is floating" or "STYLE_CLASS_FLOATING" mean?
    Can "tab-header-area" and "tab-content-area" be used separately ? ( to put "tab-header-area" in a toolbox and "tab-content-area" elsewhere.)
    How can a button be put into "tab-header-area" ? ( "New Tab" button, like browsers have, for example).

    It seems that floating tabs mode and style are to be used when... floating (dragging?) tabpane. TabPane.STYLE_CLASS_FLOATING not only change some styles (see caspian.css) but also prevents ".tab-header-background" to be created.I don't think we are much closer to understanding the true purpose of the floating style for tabpane and would need somebody else to document it to elucidate it. I have sent a request to the JavaFX documentation team for a tutorial for TabPane, and hopefully they can provide example usage of the floating styles (and other TabPane features) there.
    newTabButton must then be translated in appropriate position, as if Side is TOP, LEFT,etc. and for *.tab-header-area do some -fx-padding to make room for newTabButtonStackPane.setAlignment(node, pos) may help with the translation and standard -fx-padding css for the button control can accomplish the padding.
    http://docs.oracle.com/javafx/2/api/javafx/scene/layout/StackPane.html#setAlignment%28javafx.scene.Node,%20javafx.geometry.Pos%29
    Of course, not for floating tabs since it uses ".tab-header-background" StackPane to layout newTabButt.Yeah, one of the reasons why using the css selectors to lookup nodes in complex controls for manipulation, is a bit of a risky strategy.
    Another solution : create a StackPane . Add TabPane on StackPane , and then add newTabButton (use LayoutX,LayoutY to put it in appropriate position ). In TabPane, make room for newTabButton by shifting .tab-header-area with some -fx-padding. Simpler but needs one extra StackPane .This solution seems more robust.
    I saw willow-browser before, as a starting point. For every tab, there is an (unused) "tab-content-area --StackPane". Yes, I did it that way because I wanted the tabs placed in a general navigation bar with forward and back buttons, location field and other controls in it (similar to IE9) and the pane layout for tabs didn't seem flexible enough for me to do that as it placed the panes directly under the tabs. The unused stackpane there is actually a zero height but with a width which forces the tabPane control to just become a set of tabs without content sized only to the width allocated in the UI for the tabs themselves, and not the real browser window content, then I just react on the tabs like buttons to swap in and out different webviews in a stack for the main browser display. In some ways this accomplished the decoupling of the tabs in tab headers from tab content in a seperate pane.
    I think that the real solution is to put the "new tab" button inside "tab-header-area". Perhaps, I found it easier just create a seperate new tab button and lay it out seperately from the tab header area. In addition to being easier, it also seemed more flexible, because then I could place the new tab button wherever I wanted in the UI rather than just directly next to the tabs in the tab-header-area.

  • How can i place button on top right hand corner of the tabbed pane

    Hi all,
    i want to place button on top right hand corner of the tabbed pane, just run the code below, i have add button(it going to insert tab into tabbedpane), i want to place that tab into top right hand corner of the tabbedpane (not inside the tab itself). if i set tab policy setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT), it will give two button at right hand corner along with those buttons i want to and one more add button.
    please suggest so that i can move forward.
    Thanks in advance
    import java.awt.Dimension;
    import java.util.HashMap;
    import javax.swing.JPanel;
    import javax.swing.JTabbedPane;
    * @author  Dayananda.BV
    public class TabpaneDemo extends javax.swing.JFrame {
        /** Creates new form TabpaneDemo */
        HashMap<Integer, tabpanel> panelMap = new HashMap<Integer, tabpanel>();
        public TabpaneDemo() {
            initComponents();
            createFloorPlan();
            getContentPane().setPreferredSize(new Dimension(400,400));
            jTabbedPane1.setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT);
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        // <editor-fold defaultstate="collapsed" desc=" Generated Code ">                         
        private void initComponents() {
            jTabbedPane1 = new javax.swing.JTabbedPane();
            add_tab_button = new javax.swing.JButton();
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            add_tab_button.setText("+");
            add_tab_button.setMargin(new java.awt.Insets(0, 0, 0, 0));
            add_tab_button.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    add_tab_buttonActionPerformed(evt);
            javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
            getContentPane().setLayout(layout);
            layout.setHorizontalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 400, Short.MAX_VALUE)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                    .addContainerGap(308, Short.MAX_VALUE)
                    .addComponent(add_tab_button, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(67, 67, 67))
            layout.setVerticalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addComponent(add_tab_button)
                    .addGap(8, 8, 8)
                    .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 292, Short.MAX_VALUE))
            pack();
        }// </editor-fold>                       
        private void createFloorPlan(){
            tabpanel floorplan_Panel = new tabpanel(panelMap.size()+1);
            panelMap.put(floorplan_Panel.getTabIndex(), floorplan_Panel);
            jTabbedPane1.add(floorplan_Panel, floorplan_Panel.getTabName());
            jTabbedPane1.setSelectedIndex(jTabbedPane1.getTabCount()-1);
        private void add_tab_buttonActionPerformed(java.awt.event.ActionEvent evt) {                                              
            createFloorPlan();
         * @param args the command line arguments
        public static void main(String args[]) {
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new TabpaneDemo().setVisible(true);
        // Variables declaration - do not modify                    
        private javax.swing.JButton add_tab_button;
        private javax.swing.JTabbedPane jTabbedPane1;
        // End of variables declaration                  
        class tabpanel extends JPanel{
            private int tabIndex = 0;
            private String tabName ;
            public tabpanel(int tabIndex) {
                this.tabIndex = tabIndex;
                if(tabIndex >= 10) {
                    tabName = "Floor Map"+tabIndex;
                } else{
                    tabName = "Floor Map"+tabIndex+"  ";
            public int getTabIndex(){
                return tabIndex;
            public String getTabName(){
                return tabName;
    }Thanks
    Dayananda B V

    This part of tabbed pane is not customizable as it lies in the ComponentUI(TabbedpaneUI) portion of the tabbedpane.
    But I can point out the place u can change to bring the desired feature into effect.
    U can find an Inner class called ScrollableTabSupport
    Look for the methods createButtons where u can create extra buttons and add to the tabbed pane.
    The Inner class also implements actionListener where u can implement the action for the button u added.
    By this method U have to use your own extended TabbedPaneUI which u cant escape from.
    Hope this will help u.

  • Showing HTML content in jspx page

    Hi,
    We have stored text/html email messages in database and we want to display this on our page.
    I tried with af:richTextEditor its not showing actual space & font. Few extra line breaks are added.
    I tried af:outputText with escape=false it looks perfect. But all the menu items, command links, tab header label are started showing underlines and the UI looks odd. When I check the documentation it says
    "In addition, nearly all attributes are ignored when "escape" is set to false"
    I believe this is the reason the UI is showing odd.
    All I need is just to show a html content inside a panelGroupLayout. Any suggestions?
    Thiru

    Hi,
    here's what I think works best:
    1. add an ADF Faces inlineFrame component to the page
    2. Have the inlineFrame source property pointing to a servlet that reads and streams the HTML from the database as an HTML document
    Frank

  • HTML content in JEditroPane

    Object o = messages[msgno].getContent();
    if(o!=null){
          if (o instanceof String) {
               txtcontent.setText((String)o);
          } else if (o instanceof Multipart) {
               System.out.println("This is a Multipart");
               Multipart mp = (Multipart)o;
               int count = mp.getCount();
               for (int i = 0; i < count; i++) {
                         txtcontent.setText(txtcontent.getText() + "\n" + mp.getBodyPart(i).getContent());
    }Above is the code I have written for the getting content.and I am using JEditorPane to display it. - txtcontent is JEditorPane
    It showing somethig like :
    Hello Sumant,
    This is HTML content Page
    Use Editor Pane To display this Message
    <HTML><BODY><DIV STYLE="background-color:#c06060"><DIV>Hello Sumant,</DIV>
    <DIV><EM>This is HTML content Page</EM></DIV>
    <DIV> </DIV>
    <DIV><STRONG>Use Editor Pane To display this Message</STRONG></DIV></DIV></BODY></HTML>
    the message is actually a output of below HTML script but it showing me the HTML script.
    What is the problem and what should be done
    Please Reply
    thank you

    class showMessage extends JFrame{
               private boolean textIsHtml = false;
               public showMessage(){
                    super("Message");
                    try
                         setLayout(null);
                         int msgno = messages.length-messageTable.getSelectedRow()-1;
                         messages[msgno].setFlag(Flags.Flag.SEEN, true);                    
                         JLabel from = new JLabel();
                         from.setText(messages[msgno].getFrom()[0].toString());
                         noOfUnreadMessage-=1;
                         foldernmpane.invalidate();
                       lblFoldernm.setText("  Folder :  " + folder.getName() + " ( " + noOfUnreadMessage + " / " +  messages.length +  " )");
                       foldernmpane.validate();
                         from.setBorder(new TitledBorder("From : "));
                         from.setBounds(5,1,400,40);
                         JLabel to = new JLabel();
                         to.setText( messages[msgno].getAllRecipients()[0].toString());
                         to.setBorder(new TitledBorder("To :"));
                         to.setBounds(5,40,400,40);
                         JLabel sub = new JLabel();
                         sub.setText( messages[msgno].getSubject().toString());
                         sub.setBorder(new TitledBorder("Subject : "));
                         sub.setBounds(5,80,400,40);
                         JLabel rcvdate = new JLabel();
                         rcvdate.setText( messages[msgno].getReceivedDate().toString());
                         rcvdate.setBorder(new TitledBorder("Received Date : "));
                         rcvdate.setBounds(5,120,400,40);
                         JLabel attach = new JLabel();
                         attach.setText( messages[msgno].ATTACHMENT);
                         attach.setBorder(new TitledBorder("Attachment :"));
                         attach.setBounds(410,1,300,40);
                         //JTextArea txtcontent = new JTextArea();
                         JEditorPane txtcontent = new JEditorPane();
                         txtcontent.setEditable(false);
                         //Multipart mp = (Multipart)messages[msgno].getContent();
                         //int count = mp.getCount();
                        // BodyPart body_part;
                        // for (int i = 0; i < count; i++){
                              Object o = messages[msgno].getContent();
                              if(o!=null){
                                   if (o instanceof String) {
                                        txtcontent.setText((String)o);
                                   } else if (o instanceof Multipart) {
                                        System.out.println("This is a Multipart");
                                        Multipart mp = (Multipart)o;
                                        int count = mp.getCount();
                                        for (int i = 0; i < count; i++) {
                                             txtcontent.setText(txtcontent.getText() + "\n" + mp.getBodyPart(i).getContent());
                                                  //      printParts(mp.getBodyPart(i));
                        /*     String t1 =  getText((Part)(messages[msgno].getContent()));
                                   txtcontent.setText(t1);
    /*                          if(mp.getBodyPart(i).getContentType().e)
                              txtcontent.setText(txtcontent.getText() + "\n" + mp.getBodyPart(i).getContentType());
                         //txtcontent.setText(messages[msgno].getContent().toString());
                         //System.out.println(messages[msgno].getContent().toString());
                        /* DataHandler dh = messages[msgno].getDataHandler();
                         CommandInfo cinfo = dh.getCommand("view");
                         Component comp = (Component) dh.getBean(cinfo);
                         this.setMainViewer(comp);
                         JScrollPane pane = new JScrollPane(txtcontent);
                         pane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
                         pane.setBorder((new TitledBorder("Message")));
                         pane.setBounds(5,165,700,500);
                         add(from);
                         add(to);
                         add(sub);
                         add(rcvdate);
                         add(attach);
                         add(pane);
                         //JScrollPane pane = new JScrollPane(txtcontent);
                         //pane.setBorder(new TitledBorder("Message"));
                         //add(pane);
                         //pane.setBounds(1,1,500,500);
                         setSize(715,700);
                         setResizable(false);
                         setLocationRelativeTo(null);
                         setVisible(true);
                        // getMessages(folder.getName());
                        // messageTable.setModel(model);
                    }catch(Exception e){System.out.println(e);}
              

  • HTML content layout substitution tags

    Hi,
    We have a multi-language Portal 10.1.4 and use HTML content layout substitution tags in a HTML Template. The problem is that we would like to use the ITEM.PUBLISHDATE.LABEL and the ITEM.UPDATESDATE.LABEL tags but the text rendered isn't exactly what we would like to get (f.e. in English it's 'Publish Date' and in French it's 'Date de mise à jour').
    I looked in the documentation and found that the text rendered correspond to the display name of the attribut (not 100% sure of this). But, those attributs are in the Shared Objects and we can't modify them.
    1. We would like to modify the display name of those attributs (both in French and in English) or find any other way to make it.
    2. We also want to apply an other format to the date retreived with the ITEM.PUBLISHDATE.VALUE and the ITEM.UPDATEDDATE.VALUE tags.
    Can someone help us with those issues ?
    David

    Yes, we added languages in the Translation tab of the shared object pagegroup properties.

  • Form inside Tabbed Pane

    Hi, I have a JSF Tabbed Pane with 5 tabs and one of the tab's content contains a datascroller with an input text field 'Go To' where the user can enter the page number to jump to. When I hit enter after typing in a page number, it seems like it just refreshes the page (I think it processes as a Tabbed Pane 'tabchangeevent' but in fact it's not). However, after typing in a page number, and manually clicking the 'Go' button, it submits correctly (to the datascroller) and displays the correct content. Any ideas what could be the problem?

    I would try using static, compile time includes rather than runtime includes.

  • Tabbed Panes

    Dear All,
    I have to create a form with tabbed panes. How can i do this using JFC as i m new to JFC. Then i have to submit the form data in the database using JSP. Please help me to solve this.
    Some Code Please
    Thanks & Regards
    Gagan

    gaganarora77,
    This does seem a case of RTFM:
    http://java.sun.com/docs/books/tutorial/uiswing/components/tabbedpane.html
    Please repost if you have specific problems
    --A                                                                                                                                                                                                                                                                                                                                                           

  • Error while accesing Documents in Content Management tab(KM)

    Hello All,
    Till  now the Content Management tab was workign fine in PROD system. Suddenly from last week it started giving error
    System Error
    An exception occurred during the program execution. Below you will find technical information pertaining to this exception that you might want to forward to your system administrator
    Exception Class:  java.lang.NullPointerException
    java.lang.NullPointerException
            at com.sapportals.wcm.repository.service.appproperties.PropertiesManager.getProperty(PropertiesManager.java:144)
            at com.sapportals.wcm.repository.service.layout.cm.LayoutService$ApplicationPropertyProxy.getPropertyValue(LayoutService.java:350)
            at com.sapportals.wcm.repository.service.layout.cm.LayoutService.readProfile(LayoutService.java:514)
            at com.sapportals.wcm.repository.service.layout.cm.customizing.CustomizingController.readFolderSettings(CustomizingController.java:657)
            at com.sapportals.wcm.repository.service.layout.cm.customizing.CustomizingController.initParamters(CustomizingController.java:298)
            at com.sapportals.wcm.repository.service.layout.cm.customizing.CustomizingController.(CustomizingController.java:240)
            at com.sapportals.wcm.repository.service.layout.cm.customizing.CustomizingController.getInstance(CustomizingController.java:122)
            at sun.reflect.GeneratedMethodAccessor429.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at com.sapportals.wcm.repository.service.layout.customizing.CustomizingControllerFactory.createCustomizingController(CustomizingControllerFactory.java:141)
            at com.sapportals.wcm.repository.service.layout.customizing.CustomizingControllerFactory.getCustomizingController(CustomizingControllerFactory.java:30)
            at com.sapportals.wcm.rendering.layout.LayoutControllerFactory.getLC(LayoutControllerFactory.java:198)
            at com.sapportals.wcm.rendering.layout.LayoutControllerFactory.getLayoutController(LayoutControllerFactory.java:164)
            at com.sapportals.wcm.rendering.control.cm.WdfProxy.createLayoutController(WdfProxy.java:2234)
            at com.sapportals.wcm.rendering.control.cm.WdfProxy.prepareNestedControls(WdfProxy.java:1473)
            at com.sapportals.wcm.rendering.control.cm.WdfProxy.createNestedControls(WdfProxy.java:1343)
            at com.sapportals.wdf.stack.Control.create(Control.java:291)
            at com.sapportals.wcm.rendering.control.cm.WdfProxy.create(WdfProxy.java:1416)
            at com.sapportals.wdf.stack.Pane.createControls(Pane.java:464)
            at com.sapportals.wdf.stack.PaneStack.createControls(PaneStack.java:485)
            at com.sapportals.wdf.stack.Pane.createControls(Pane.java:458)
            at com.sapportals.wdf.stack.PaneStack.createControls(PaneStack.java:485)
            at com.sapportals.wdf.stack.Pane.createControls(Pane.java:458)
            at com.sapportals.wdf.stack.PaneStack.createControls(PaneStack.java:485)
            at com.sapportals.wdf.stack.Pane.createControls(Pane.java:458)
            at com.sapportals.wdf.stack.PaneStack.createControls(PaneStack.java:485)
            at com.sapportals.wdf.WdfCompositeController.doInitialization(WdfCompositeController.java:270)
            at com.sapportals.wdf.WdfCompositeController.buildComposition(WdfCompositeController.java:671)
            at com.sapportals.htmlb.AbstractCompositeComponent.preRender(AbstractCompositeComponent.java:33)
            at com.sapportals.htmlb.Container.preRender(Container.java:120)
            at com.sapportals.htmlb.Container.preRender(Container.java:120)
            at com.sapportals.htmlb.Container.preRender(Container.java:120)
            at com.sapportals.portal.htmlb.PrtContext.render(PrtContext.java:406)
            at com.sapportals.htmlb.page.DynPage.doOutput(DynPage.java:238)
            at com.sapportals.wcm.portal.component.base.KMControllerDynPage.doOutput(KMControllerDynPage.java:134)
            at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:133)
            at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)
            at com.sapportals.wcm.portal.component.base.ControllerComponent.doContent(ControllerComponent.java:77)
            at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
            at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
            at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
            at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
            at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
            at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
            at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:645)
            at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
            at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
            at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
            at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
            at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
            at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:524)
            at java.security.AccessController.doPrivileged(Native Method)
            at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:407)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
            at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
            at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
            at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
            at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
            at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
            at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
            at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
            at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
            at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
            at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
            at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
            at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
            at java.security.AccessController.doPrivileged(Native Method)
            at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
            at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
    I am not able to get any solution . please let me the solution
    Thanks
    Sagar
    Edited by: Sagar Ingalwar on Nov 10, 2010 10:17 AM

    Resubmitting .....
    We have various approval processes set up for various
    folders. The proper groups and steps are defined.
    When the user creates a piece of content in the folder
    they can click on the command menu or details and submit
    it for approval. 
    After some time, we are receiving a NullPointerException
    whenever we try to submit something for approval or skip
    the approval process.  It never gets to UWL.  When we
    look in the logs we see the error below.  When we
    restart the server, we are able to submit for approval
    and skip with approval without any issues.  After some
    time however, this issue arises again.
    The log file shows the following -
    #1.5#0014C26354620055000006DA00000B4000040A8ECD7C2BBE#113
    7508356007#com.sapportals.wcm.rendering.property.Property
    RendererFactory#sap.com/irj#com.sapportals.wcm.rendering.
    property.PropertyRendererFactory#bkumm24#7737##ptdwas00_E
    PD_4495551#bkumm24#97718e30876111da89f60014c2635462#SAPEn
    gine_Application_Thread[impl:3]
    _8##0#0#Warning##Plain###Reloading all classes, because
    CRT Class Loader was modified.#\par
    #1.5#0014C263546200540000088800000B4000040A8ECFDE6BB6#113
    7508396008#com.sapportals.wcm.rendering.uicommand.UIConfi
    guration#sap.com/irj#com.sapportals.wcm.rendering.uicomma
    nd.UIConfiguration#bkumm24#7737##ptdwas00_EPD_4495551#bku
    mm24#97718e30876111da89f60014c2635462#SAPEngine_Applicati
    on_Thread[impl:3]_24##0#0#Warning##Plain###Reloading all
    classes, because CRT Class Loader was modified.#\par
    #1.5#0014C263546200400000090E00000B4000040A8ED190AEC1#113
    7508424461#com.sapportals.wcm.rendering.uicommand.UIMenuF
    actory#sap.com/irj#com.sapportals.wcm.rendering.uicommand
    .UIMenuFactory#bkumm24#7864##ptdwas00_EPD_4495551#bkumm24
    #7b541bc0876411da96bf0014c2635462#SAPEngine_Application_T
    hread[impl:3]_20##0#0#Warning##Plain### No group command
    found for rendering menu HoverMenu for resource ..........
    Please help.
    Thanks,
    vivek
    I promise to reward points for helpfull answers

  • Font color issue with inserted HTML content in JTextPane (HTMLEditor)

    Hi everyone,
    I have a very serious issue with the HTMLEditor I'm developping. This editor is a little bit special since it is intended to edit blocks of HTML content that are loaded when the editor is initialized.
    You can in fact decide to keep this loaded HTML content or start a new HTML document from scratch. Alright, now my issue is the following :
    When text is loaded, it's properly rendered. I have a functionality which let's you see the HTML code from the HTML document used in the editor, so I can check and see if code is correct, and yes, it's correct.
    The problem is that when I try to change the color attribute of some text on my loaded content, nothing happens ! I don't know what's the matter with this bug, I only have it with the color attribute, with every other attribute everything's fine (font, size, etc.)
    The funny thing is that, after I change another attribute for loaded content, like font family, then changing color attribute funcionnality starts to work again !
    I've also noticed that I don't have any of these problems when I start my HTMLDocument from scratch (when I create a new HTML document and start typing text).
    Another weird thing, is that I have a feed-back feature in my editor which reflects attributes for text over which the caret is positionned. For example, if you put caret over red text, the color combo box displays a red value, you know, just like in MS Word. Well, with my loaded content if I have a red text color and I decide to put it in green, the color combo box displays the green value when I click over text for which I have changed color, but in my JTextPane it's still red !! And when I try to see the HTML code generated nothing has changed, everything is still red !
    There is something really strange here, this means that when I get the attributes of the loaded text from the HTMLDocument, color appears to be green, but when it gets rendered in the JTextPane it's still red and when it gets anlyzed to produce the corresponding HTML code, these changed attributes are not taken into account.
    But the most weird thing above all, is that I don't have this bug everytime, sometimes I start my HTML editor applet and it works fine, and some other times this color issue is bakc there. Is this a known bug for Swing API or not ?
    =============
    This is more or less my technique :
    //I declare a global reference to my HTMLDocument
    HTMLDocument _docHTMLDoc;
    //Create a JTextPane
    JTextPane _tpaEditor = new JTextPane( );
    //Set type content to automatically select HTMLEditorKit
    _tpaEditor.setContentType("text/html");
    //Get a referene to its HTMLEditorKit
    HTMLEditorKit _kitHTMLEditor = (HTMLEditorKit) _tpaEditor.getEditorKit( );
    //I then have a function to create new documents
    void newDocument(){
      _docHTMLDoc = (HTMLDocument) _kitHTMLEditor.createDefaultDocument();
      _tpaEditor.setDocument(_docHTMLDoc);
       //I do other stuff wich are not important to be shown here
    //I then have another function to load content
    void loadContent(){
       //I get content from a HashMap I initialized when I started my applet
       String strContent = (String)_mapInitParameters.get("html_content");
       //I set content for my editor
       _tpaEditor.setText(strContent);
    //Notice.. I have tried many other ways to load this text : via HTMLEditorKit and its insertHTML method, I
    //have also tried to store this content in some reader and make HTMLEditorKit read it... and nothing,
    // I always get the bug
    //To change color it goes like this :
    JComboBox _cboColor = new JComboBox();
    //I correctly initialize this combo with colors
    //then I do something like this
    ActionListener _lst = new ActionListener(){
       public void actionPeformed(ActionEvent e){
          Color colSel = (Color) _cboColor.getSelectedItem();
          MutableAttributeSet mas = new SimpleAttributeSet();
          StyleConstants.setForeground(mas,colSel);
          setAttributeSet(mas);
    _cboColor.addActionListener(_lst);
    //Set Attributes goes something like this
    private void setAttributeSet(javax.swing.text.AttributeSet atrAttributeSet) {       
            //Get current 'End' and 'Start' positions
            int intCurrPosStart = _tpaEditor.getSelectionStart();
            int intCurrPosEnd = _tpaEditor.getSelectionEnd();
            if(intCurrPosStart != intCurrPosEnd){
                //Apply attributes to selection
                _docHTMLDoc.setCharacterAttributes(intCurrPosStart,intCurrPosEnd - intCurrPosStart,atrAttributeSet,false);
            else{
                //No selection : apply attributes to further typed text
                MutableAttributeSet atrInputAttributes = _kitHTMLEditor.getInputAttributes();
                atrInputAttributes.addAttributes(atrAttributeSet);

    hi, friend!
    try this:
    void setAttributeToText(JTextPane pane, int start, int end, Color color) {
    MutableAttributeSet new_att = new SimpleAttributeSet();
    StyleConstants.setForeground(new_att,color);
    HTMLDocument doc=(HTMLDocument)pane.getDocument();
    doc.setCharacterAttributes(start,end,new_att,false);
    It works fine in my Application, hope will work in yours, too.
    good luck.

  • HTML in 11g tab names

    Hi:
    We are upgrading 10g to 11g, including the catalog. Some tab names in 10g had the HTML <BR> tag to force a line break. After conversion, we see the HTML tag in the name. We do not see any option for "contains HTML" in the 11g tab preferences.
    Does anyone have a solution, or do we need to manually remove the HTML tag?
    Thanks.

    There are two places to declare HTML content
    1) Criteria - Edit Formula of column
    2) Criteria - Column Properties - set in Column format tab or Data Format tab

Maybe you are looking for

  • Transfer posting

    Hi, There is a scenario that there are some branches which are considered as sales office. when spares materials are sent to this branches the stock should be available at this branch levels . To do this storage locations are made for each branch. Bu

  • Mac OS X failed to launch JavaFX jar due to fatal errors

    Hi, I am running Mac OS X 10.7.5 on VMware player. I have installed these on my system - 1. I have jdk-7u12-ea-bin-b07-macosx-x86_64-27_dec_2012.dmg 2. jre-7u10-macosx-x64.dmg 3. netbeans-7.2.1-ml-javase-macosx.dmg I have set java Java Home pointing

  • UNLIMITED TABLESPACE in RESOURCE role

    Hi all,<br> It's known that UNLIMITED TABLESPACE is included in RESOURCE role.<br> My question is: <b>Why I don't see the system privilige UNLIMITED TABLESPACE when I try to display the priviliges granted to that role?</b><br> SQL> select PRIVILEGE  

  • 10.6.7  Can't empty trash from my Lacie external drive.

    Hi there, Just purchased a new Lacie FW800 H.D and I can't empty the trash because of it. I get error code -50.  I've looked through a number of posts, tried securely emptying the trash and inputing text into terminal but nothing works. At the moment

  • Fluke NetDAQ

    Good day, i search about ethernet communication between Labview and Fluke NetDAQ, but everything i found was old stuff,l unable to be opened in my Labview version. Does anyone have a VI that can adquire data from Fluke NetDAQ? Or at least show the wa