Creating hiding drawer component (suggestions)

I am attempting to create a hiding drawer component. This is basically a tabbed frame on the side of the container that will allow you to show and hide it. I am able to get the component to show up but the catch is I need to know how to add components such as JList etc.. to it and have them function properly. When I attempt to add a component to it the painting is not working properly. I'm currently extending JPanel should I be using something else? Thanks for the help guys.
Code is below:
package com.nashilnux.swing;
import java.awt.AlphaComposite;
import java.awt.BasicStroke;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
import java.awt.Composite;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.GridLayout;
import java.awt.Insets;
import java.awt.Rectangle;
import java.awt.RenderingHints;
import java.awt.Stroke;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.font.FontRenderContext;
import java.awt.font.TextLayout;
import java.awt.geom.AffineTransform;
import java.awt.geom.PathIterator;
import java.awt.geom.Point2D;
import java.awt.geom.Rectangle2D;
import java.awt.geom.RoundRectangle2D;
import javax.swing.BorderFactory;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextField;
import javax.swing.RepaintManager;
import javax.swing.text.AbstractDocument.Content;
* @author me
public class HidingDrawer extends JPanel
     Rectangle2D button = null;
     private boolean showing = false;
     private JList contentList = null;
     private String title = "";
     private boolean mouseOver = false;
     private JScrollPane listSP = null;
     private Color strokeColor = new Color(226, 242, 255);
     private Color backgroundColor = Color.white;
     private Color tabColor = new Color(226, 242, 255);
     private boolean transparent = false;
     private float transparencyLevel = 0.0f;
     private Dimension expandedDimension = new Dimension(300,200);
     public HidingDrawer()
          setOpaque(false);
          setPreferredSize(new Dimension(300, 200));
          addMouseListener(new MouseAdapter()
               @Override
               public void mousePressed(MouseEvent e)
                    hideDrawer(e);
     public HidingDrawer(boolean showDrawer)
          setOpaque(false);
          setPreferredSize(new Dimension(300, 200));
          setLayout(new FlowLayout());
          if (showDrawer)
               showing = false;
          else
               showing = true;
          addMouseListener(new MouseAdapter()
               @Override
               public void mousePressed(MouseEvent e)
                    hideDrawer(e);
               @Override
               public void mouseEntered(MouseEvent e)
                    if (button != null)
                         if (button.contains(new Point2D.Double(e.getX(), e.getY())))
                              System.out.println("Mouse Over");
                              mouseOver = true;
                              repaint();
               @Override
               public void mouseExited(MouseEvent e)
                    System.out.println("Mouse exited");
                    mouseOver = false;
                    repaint();
          initalize();
      * @param args
     public static void main(String[] args)
          JFrame frame = new JFrame();
          frame.getContentPane().setBackground(Color.LIGHT_GRAY);
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          frame.setTitle("UI Drawer Demo");
          // North Panel
          JPanel northPanel = new JPanel(new FlowLayout(FlowLayout.LEFT));
          northPanel.setBackground(Color.white);
          JLabel titleLbl = new JLabel("UI Drawer Demo");
          titleLbl.setFont(new Font("Helvectia", Font.BOLD, 18));
          northPanel.add(titleLbl);
          // End NorthPanel
          // West panel component
          HidingDrawer hd = new HidingDrawer(true);
          hd.setTitle("Testing");
          hd.setBackgroundColor(new Color(226, 242, 255));
          hd.setStrokeColor(Color.black);
          hd.setTransparent(true);
          hd.setTransparencyLevel(0.5f);
          frame.getContentPane().setBackground(hd.getBackgroundColor());
          // Add list to the drawer
//          String[] values = new String[]{"Testing", "Testing 2", "Testing 3"};
//          JList list = new JList(values);
//          hd.add(list, BorderLayout.CENTER);
          frame.getContentPane().add(hd, BorderLayout.WEST);
          // Center Panel
          JPanel encapPanel = new JPanel(new FlowLayout(FlowLayout.LEFT));
          encapPanel.setBackground(hd.getBackgroundColor());
          JPanel centerPanel = new JPanel();
          centerPanel.setBackground(hd.getBackgroundColor());
          GridBagLayout gLayout = new GridBagLayout();
          int row = 0;
          centerPanel.setLayout(gLayout);
          GridBagConstraints c = new GridBagConstraints(0, 0,1,1,0, 0,GridBagConstraints.WEST,0, new Insets(5,5,5,5),0,0);
          JLabel freqLbl = new JLabel("Frequency");
          centerPanel.add(freqLbl, c);
          c.gridx = 1;
          JTextField freqTxt = new  JTextField(20);
          centerPanel.add(freqTxt, c);
          encapPanel.add(centerPanel);
          frame.getContentPane().add(northPanel, BorderLayout.NORTH);
          frame.getContentPane().add(encapPanel, BorderLayout.CENTER);
          frame.setSize(new Dimension(800, 600));
          frame.setVisible(true);
     public void initalize()
//          String[] tmpListItems = { "Testing list item 1", "Testing 2", "Testing 3" };
//          contentList = new JList(tmpListItems);
//          contentList.setOpaque(true);
//          contentList.setBackground(getBackgroundColor());
//          Dimension dim = getPreferredSize();
//          dim.setSize(dim.getWidth() - 70, dim.getHeight());
//          listSP = new JScrollPane(contentList);
//          listSP.setPreferredSize(dim);
//          listSP.setOpaque(true);
//          listSP.setBackground(getBackgroundColor());
//          add(listSP);
          setBackground(getBackgroundColor());
          setBorder(BorderFactory.createLineBorder(Color.black));
      * (non-Javadoc)
      * @see javax.swing.JComponent#paintComponent(java.awt.Graphics)
     @Override
     protected void paintComponent(Graphics g)
          Dimension dim = getSize();
          Graphics2D g2d = (Graphics2D) g;
          if (!isShowing())
               System.out.println("Showing: " + showing);
               g2d.setPaint(getBackgroundColor());
               RoundRectangle2D roundRectangle = new RoundRectangle2D.Double(getX() - 10, getY() + 5, dim.width - 20, dim.height - 10, 5, 15);
               g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
               if(isTransparent())
                    Composite alphaComp = AlphaComposite.getInstance(AlphaComposite.SRC_OVER, getTransparencyLevel());
                    g2d.setComposite(alphaComp);
               g2d.fill(roundRectangle);
               BasicStroke stroke = new BasicStroke(3);
               g2d.setStroke(stroke);
               g2d.setPaint(getStrokeColor());
               g2d.draw(roundRectangle);
               // Draw a fake button
               // Get the dimension of the current graphic
               Graphics2D buttonArea = (Graphics2D) g2d.create(getX(), getY(), dim.width, dim.height);
               buttonArea.setColor(getTabColor());
               buttonArea.setFont(new Font("Helvetica", Font.BOLD, 16));
               button = null;
               button = new Rectangle2D.Double(roundRectangle.getBounds().getMaxX(), (roundRectangle.getMaxY() / 2) - 30, 25, 60);
               buttonArea.fill(button);
               buttonArea.draw(button);
               // Draw the text
               buttonArea.setStroke(new BasicStroke(3));
               buttonArea.setPaint(getStrokeColor());
               buttonArea.draw(button);
               buttonArea.setClip(button);
               buttonArea.setPaint(Color.black);
               AffineTransform transformer = buttonArea.getTransform();
               transformer.rotate(Math.toRadians(90));
               buttonArea.transform(transformer);
               Rectangle2D buttonBounds = button.getBounds2D();
               Font buttonFont = new Font("Helvectica", Font.BOLD, 18);
               FontRenderContext frc = buttonArea.getFontRenderContext();
               TextLayout layout = new TextLayout("Hide", buttonFont, frc);
               layout.draw(buttonArea, (float)buttonBounds.getY() + 10,(float)((buttonBounds.getX() - (buttonBounds.getX() *2)) -5));
          else
               System.out.println("Showing: " + showing);
               Graphics2D buttonArea = (Graphics2D) g2d.create(getX(), getY(), dim.width, dim.height);
               buttonArea.setPaint(getTabColor());
               button = null;
               button = new Rectangle2D.Double(0, (dim.getHeight() / 2) - 30, 25, 60);
               if (isTransparent())
                    // Set the Composite
                    Composite alphaComp = AlphaComposite.getInstance(AlphaComposite.SRC_OVER, getTransparencyLevel());
                    buttonArea.setComposite(alphaComp);
               buttonArea.fill(button);
               buttonArea.setStroke(new BasicStroke(3));
               buttonArea.setPaint(getStrokeColor());
               buttonArea.draw(button);
          super.paintComponents(g);
     public void hideDrawer(MouseEvent event)
          if (button != null)
               if (button.contains(new Point2D.Double(event.getX(), event.getY())))
                    System.out.println("Button Pressed");
                    if (showing)
                         showing = false;
                         setPreferredSize(new Dimension(300, getSize().height));
                         setSize(new Dimension(300, getSize().height));
                         setVisible(true);
                         // Hide the list
//                         contentList.setVisible(true);
//                         listSP.setVisible(true);
                    else
                         showing = true;
                         setSize(28, getSize().height);
//                         contentList.setVisible(false);
//                         listSP.setVisible(false);
          Object parent = getParent();
          boolean foundParent = false;
          while (!foundParent)
               Component parentsChild = (Component) parent;
               Component fParent = ((Component) parent).getParent();
               if (fParent == null)
                    foundParent = true;
                    parent = parentsChild;
               else
                    parent = fParent;
          Component pComponent = (Component) parent;
          pComponent.repaint();
      * @param showing
      *            the showing to set
     public void showDrawer(boolean showing)
          this.showing = showing;
      * @return the showing
     public boolean isShowing()
          return showing;
      * @param title
      *            the title to set
     public void setTitle(String title)
          this.title = title;
      * @return the title
     public String getTitle()
          return title;
      * @param strokeColor
      *            the strokeColor to set
     public void setStrokeColor(Color strokeColor)
          this.strokeColor = strokeColor;
      * @return the strokeColor
     public Color getStrokeColor()
          return strokeColor;
      * @param backgroundColor
      *            the backgroundColor to set
     public void setBackgroundColor(Color backgroundColor)
          this.backgroundColor = backgroundColor;
      * @return the backgroundColor
     public Color getBackgroundColor()
          return backgroundColor;
      * @param tabColor
      *            the tabColor to set
     public void setTabColor(Color tabColor)
          this.tabColor = tabColor;
      * @return the tabColor
     public Color getTabColor()
          return tabColor;
      * @param transparent the transparent to set
     public void setTransparent(boolean transparent)
          this.transparent = transparent;
      * @return the transparent
     public boolean isTransparent()
          return transparent;
      * @param transparencyLevel the transparencyLevel to set
     public void setTransparencyLevel(float transparencyLevel)
          this.transparencyLevel = transparencyLevel;
      * @return the transparencyLevel
     public float getTransparencyLevel()
          return transparencyLevel;
}

import java.awt.*;
import java.awt.event.*;
import java.awt.font.*;
import java.awt.geom.*;
import javax.swing.*;
public class HD {
    TopCard    topCard;
    HostCard   hostCard;
    CardLayout cards;
    JPanel     cardPanel;
    private JPanel getContent() {
        Color stroke = UIManager.getColor("TabbedPane.foreground");
        Color bg     = UIManager.getColor("TabbedPane.background");
        Color tab    = UIManager.getColor("TabbedPane.contentAreaColor");
        Font font = //new Font("Helvetica", Font.BOLD, 18);
                    new Font("Dialog", Font.BOLD, 18);  // faster
        Dimension d = new Dimension(300,200);
        topCard = new TopCard(stroke, bg, tab, font, d);
        topCard.addMouseListener(mouser);
        hostCard = new HostCard(stroke, bg, tab, font, d);
        hostCard.addMouseListener(mouser);
        addComponents(hostCard);
        cards = new CardLayout();
        cardPanel = new JPanel(cards);
        cardPanel.add("top", topCard);
        cardPanel.add("host", hostCard);
        return cardPanel;
    private void addComponents(JComponent c) {
        String[] tmpListItems = { "Testing list item 1", "Testing 2", "Testing 3" };
        JList list = new JList(tmpListItems);
        int vm = hostCard.MARGIN;
        int right = 35;
        Dimension dim = c.getPreferredSize();
        dim.setSize(dim.width - 70, dim.height - 2*vm - 2*20);
        JScrollPane scrollPane = new JScrollPane(list);
        scrollPane.setPreferredSize(dim);
        c.setLayout(new GridBagLayout());
        GridBagConstraints gbc = new GridBagConstraints();
        gbc.insets = new Insets(vm,0,vm,right);
        c.add(scrollPane, gbc);
    public static void main(String[] args) {
        JFrame f = new JFrame();
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.getContentPane().add(new HD().getContent());
        f.pack();
        f.setLocationRelativeTo(null);
        f.setVisible(true);
    private MouseListener mouser = new MouseAdapter() {
        public void mousePressed(MouseEvent e) {
            Object source = e.getSource();
            Point p = e.getPoint();
            if(source == topCard)
                if(topCard.isControlTrigger(p))
                    cards.next(cardPanel);
            if(source == hostCard)
                if(hostCard.isControlTrigger(p))
                    cards.next(cardPanel);
class TopCard extends JPanel {
    Rectangle2D.Double rect;
    Color strokeColor;
    Color backgroundColor;
    Color tabColor;
    Font font;
    public TopCard(Color stroke, Color bg, Color tab, Font f, Dimension d) {
        strokeColor = stroke;
        backgroundColor = bg;
        tabColor = tab;
        font = f;
        setPreferredSize(d);
    protected void paintComponent(Graphics g) {
        super.paintComponent(g);
        Graphics2D g2 = (Graphics2D)g;
        g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                            RenderingHints.VALUE_ANTIALIAS_ON);
        Dimension dim = getSize();
        g2.setPaint(Color.lightGray);
        g2.fillRect(0, 0, dim.width, dim.height);
        g2.setPaint(tabColor);
        rect = new Rectangle2D.Double(0, (dim.getHeight() / 2) - 30, 25, 60);
        g2.fill(rect);
        g2.setStroke(new BasicStroke(3));
        g2.setPaint(strokeColor);
        g2.draw(rect);
        // Draw label text.
        String s = "Show";
        g2.setFont(font);
        FontRenderContext frc = g2.getFontRenderContext();
        float width = (float)font.getStringBounds(s, frc).getWidth();
        LineMetrics lm = font.getLineMetrics(s, frc);
        float height = lm.getAscent() + lm.getDescent();
        double x = rect.getCenterX() - height/2 + lm.getDescent();
        double y = rect.getCenterY() - width/2;
        AffineTransform at = AffineTransform.getTranslateInstance(x, y);
        at.rotate(Math.PI/2, 0, 0);
        g2.setFont(font.deriveFont(at));
        g2.drawString(s, 0, 0);
    public boolean isControlTrigger(Point p) {
        return rect.contains(p);
class HostCard extends JPanel {
    Rectangle2D.Double rect;
    Color strokeColor;
    Color backgroundColor;
    Color tabColor;
    Font font;
    int MARGIN = 5;
    public HostCard(Color stroke, Color bg, Color tab, Font f, Dimension d) {
        strokeColor = stroke;
        backgroundColor = bg;
        tabColor = tab;
        font = f;
        setPreferredSize(d);
    protected void paintComponent(Graphics g) {
        super.paintComponent(g);
        Graphics2D g2 = (Graphics2D)g;
        g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                            RenderingHints.VALUE_ANTIALIAS_ON);
        Dimension dim = getSize();
        g2.setPaint(Color.lightGray);
        g2.fillRect(0, 0, dim.width, dim.height);
        BasicStroke stroke = new BasicStroke(3);
        float lineWidth = stroke.getLineWidth();
        double x = getX() - MARGIN - lineWidth;
        double y = getY() + MARGIN;
        double w = dim.width - 20;
        double h = dim.height - 2*MARGIN - lineWidth/2;
        RoundRectangle2D roundRectangle =
                             new RoundRectangle2D.Double(x, y, w, h, 5, 15);
        g2.setPaint(backgroundColor);
        g2.fill(roundRectangle);
        g2.setStroke(stroke);
        g2.setPaint(strokeColor);
        g2.draw(roundRectangle);
        rect = new Rectangle2D.Double(roundRectangle.getBounds().getMaxX(),
                                     (roundRectangle.getMaxY() / 2) - 30, 25, 60);
        g2.setPaint(tabColor);
        g2.fill(rect);
        g2.setPaint(strokeColor);
        g2.draw(rect);
        g2.setPaint(Color.black);
        // Draw label text.
        String s = "Hide";
        g2.setFont(font);
        FontRenderContext frc = g2.getFontRenderContext();
        float width = (float)font.getStringBounds(s, frc).getWidth();
        LineMetrics lm = font.getLineMetrics(s, frc);
        float height = lm.getAscent() + lm.getDescent();
        x = rect.getCenterX() - height/2 + lm.getDescent();
        y = rect.getCenterY() - width/2;
        AffineTransform at = AffineTransform.getTranslateInstance(x, y);
        at.rotate(Math.PI/2, 0, 0);
        g2.setFont(font.deriveFont(at));
        g2.drawString(s, 0, 0);
    public boolean isControlTrigger(Point p) {
        return rect.contains(p);
}

Similar Messages

  • Can not create an Application Component on SAP R/3 system

    I have a source as SAP R/3 ( ECC 6.0 ) and Target as SAP BW 7.0
    a)Log on to SAP BW 7.0 and used  the “ID3CLNT400”  source system ,  by using  Modeling --
    > Source System  --  choose “Customizing Extractors”  from the context menu of the source system “ID3CLNT400”
    In the transaction  SBIW  on the SAP Source system , choose  the Business Information Warehouse -- > Post Processing of DataSources
         > Edit DataSources and Application Component Hierarchies.
    Choose the “IMG Activity “ Here , I am getting one warning.
    "NO Valid Application Component Exists"
    When I hit the continue button .
    Here when I create an Application Component and “SAVE”  the changes, I am getting the following error.
    Package "Z_Train" doesnt exists. Chose "Display Object " or "Cancel"
    Because of this , I couldn’t creat an Application component and also couldnot load any thing on the SAP BW side. Also , I am no way connected to the "Z_TRAIN" Package

    can u pls tell me how u solved it
    I am working on  Production system  when I go to rsa5 it displaying the msg
    No valid application component hierarchy exists
    Message no. R8053
    Diagnosis
    Currently no application component hierarchy ("APCO_MERGED", database table RODSAPPL and RODSAPPLT) exists in the system. This is required in BW so that the DataSources can be displayed correctly in the source system tree.
    Procedure
    Copy the application component hierarchy from the Content using transaction RSA9.
    In development system I went to RSA9 & transferred the application componet then its asks or pkg name I have given the pkg  name also before use the datasrcs , I have transported the same thing to production before transporting the datasrcs but in production the application component herarachy did not get transported I think that why its giving the msg No valid application component hierarchy exists but my datasrcs got transported ,pls suggest me what has to be done
    Should I import the same request in to production again
    Or shall I run rsa9 again & transfer the application component hierarchy again & transport it to production id I do this will already transported datarscs have any effect in production

  • Creating flash cs3 component

    Hi,
    There is great and easy way to create flash based component
    in flash cs3 using action script 3.0.
    I am going to make a simple My button component which will
    behave likely same as flash native button component.
    You can modify this according your requirement this is just
    you give an idea about how we can go for creating a component in
    flash cs3.
    Follow these steps…
    1. Create a fla file and save this file with any name
    2. Create a movieClip and draw a rectangle shape on first
    frame.
    3. Right click on movieclip in library, select linkage
    4. Provide class name in text field area [MyButton] (you can
    use any name here which should matched with your class)
    5. Click Ok button
    6. Write class [MyButton]
    (you can copy and use this)
    * author @ sanjeev rajput
    * [email protected]
    * A flash action script 3.0 based component without extending
    UIComponent class
    package {
    import flash.display.Sprite;
    import flash.text.TextField;
    import flash.events.MouseEvent;
    import flash.events.Event;
    import fl.motion.Color;
    public class MyButton extends Sprite{
    private var _tf:TextField;
    private var _Label:String="My Button";
    private var _bgColor:uint=0xCCCCCC;
    private var _rollOverColor:uint=0xFFCCCC;
    private var _borderColor:uint=0x000000;
    private var _borderThickness:int=1;
    private var _width:Number = 100;
    private var _height:Number =100;
    private var _background:Sprite;
    public function MyButton() {
    init();
    createChildren();
    initEventListeners();
    draw();
    //-------------property section [Start]
    [Inspectable]
    public function set Label(lbl:String){
    _Label=lbl;
    draw();
    public function get Label(){
    return _Label
    [Inspectable]
    public function set bgColor(color:uint):void{
    _bgColor=color;
    draw();
    [Inspectable]
    public function set borderColor(color:uint):void{
    _borderColor=color;
    draw();
    [Inspectable]
    public function set borderThickness(thickness:int):void{
    _borderThickness=thickness;
    [Inspectable]
    public function set rollOverColor(color:uint):void{
    _rollOverColor=color;
    //-------------property section [End]
    private function init():void {
    trace('welcome');
    _width = width;
    _height = height;
    scaleX = 1;
    scaleY = 1;
    removeChildAt(0);
    private function initEventListeners():void{
    addEventListener(MouseEvent.MOUSE_OVER, eventHandler);
    addEventListener(MouseEvent.MOUSE_OUT, eventHandler);
    private function eventHandler(event:Event):void{
    if(event.type == MouseEvent.MOUSE_OVER){
    toggleColor(_rollOverColor);
    if(event.type == MouseEvent.MOUSE_OUT){
    toggleColor(_bgColor)
    private function createChildren():void {
    _background = new Sprite();
    _tf = new TextField();
    _tf.autoSize = "center";
    _tf.selectable=false;
    addChild(_background);
    addChild(_tf);
    protected function draw():void {
    toggleColor(_bgColor);
    _tf.text = _Label;
    _tf.x = Math.floor((_width - _tf.width)/2);
    _tf.y = Math.floor((_height - _tf.height)/2);
    //width = _tf.width;
    private function toggleColor(color:uint):void{
    _background.graphics.clear();
    _background.graphics.beginFill(color, 1);
    _background.graphics.lineStyle(_borderThickness,
    _borderColor, 1);
    _background.graphics.drawRoundRect(0, 0, _width, _height,
    10, 10);
    _background.graphics.endFill();
    public function setSize(w:Number, h:Number):void {
    _width = w;
    _height = h;
    draw();
    7. Now right click again on your movieclip in library and
    select component definition.
    8. In class name text field provide same class name
    [MyButton]
    9. Click on ok button
    10. Right click again on movieClip in library and select
    Export SWC file.
    11. Same your exported SWC file in (For window only)
    [c:\Documents and Settings\$user\Local Settings\Application
    Data\Adobe\Flash CS3\en\Configuration\Commands\
    12. Now just open another new flash file open component
    panel/window reload component you will your component in component
    panel with MyButton name.
    13. Drag your custom component on stage provide inputs form
    property window and text it.
    Enjoy!

    Lt.CYX[UGA] wrote:
    > if anyone is using Flash CS3, try creating a flash
    movie, using the FLVPlayer
    > component to play an flv video and make it an executable
    projector. Run it
    > fullscreen and watch how the screen just stays black
    when the video should
    > appear. If you stay windowed, it works fine.
    >
    >
    steps to reproduce:
    > 1. create flash movie
    > 2. put an FLVPlayer component on a frame that's not the
    first (for testing
    > purposes)
    > 3. before the projector reaches the frame with the
    FLVPlayer component, change
    > it to fullscreen (by script or CTRL+F)
    >
    >
    observed behaviour:
    > not only the video doesn't play, but the whole screen is
    black until the
    > player goes back to windowed mode
    >
    >
    expected behaviour:
    > video should play
    >
    >
    remarks:
    > if you skip step 3, video plays correctly
    >
    Works just fine.
    Made new movie, on frame 2 places Full screen action, on
    frame 5 placed video component
    and stop(); action attached to frame. Projector pops large
    following by video playing
    just fine.
    I tried variety, first frame, many frames, all on one. Not
    able to reproduce your problem.
    Works on first go.
    Best Regards
    Urami
    Beauty is in the eye of the beer holder...
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Creating a drawing (CAD) program in Java

    I'm in the planning stages of creating a drawing/drafting program in Java, and I'm fairly new to Swing, so I need some guidance.
    For a drafting program, I will need to be able to draw all kinds of objects using lines, curves, etc, connected in various ways. One thing I could do is extend JComponent and override the paint() method, and have it put up all the various objects as it repaints. The problem with this is that if a user clicks on an object, how will I detect which object he clicked on? I'll get mouse coordinates, but then how do I go from that to knowing that he clicked on a certain curve, etc?
    The alternative is to not extend JComponent, but rather to make each of the individual objects on the screen its own component and then lay them out using absolute positioning. Then I'll get mouse events as the user clicks on things. Is this a better way to do it? And if so, I guess I'll still need to create individual components that represent lines, arcs, curves, etc?
    Swing has so many features that it's hard for a beginning to get started into it. Thanks for any tips.

    Personally I wouldn't work with Swing for this functionality,
    but I would rather work with java 2D instead.
    Swing contains to much overhead for the kind of application you plan to develop.
    Look for the java.awt.Shape interface and to the java.awt.geom.* implementations of such shapes.
    It contains already most of the functionality required for painting and hit-detection of a shape on the
    screen.
    kind regards,

  • Create complex custom component

    Hi everyone!
    I'm trying to create my own custom component in JSF. However I have several questions :
    - It is not mandatory to create a renderer class, right ? the component can draw itself ?
    - How can I create a custom component which would have several "values" inside ? for example let us supppose I want to create a custom JSF component to enter a IBAN. The IBAN is divided into several parts : BBAN, country code, key, Bank adresse,... but any tutorial I've found explain how to create a input component with only one simple value (for example the classical "CreditCardInputComponent").
    Josselin

    Hi,
    did you find a solution for your "composite" component problem?
    I am also trying to create a custom component that contains several standard jsf components such as HtmlCommandLink and HtmlInputText.
    I build all the standard components within my component programmatically using things like:
    HtmlCommandLink link = (HtmlCommandLink) application.createComponent(HtmlCommandLink.COMPONENT_TYPE);
    Also at the beginning of the encodeBegin I clear all children from my custom component using getChildren().clear()
    and rerender the component based on my new internal model which I updated during the previous decoding of my component.
    As a simple jsf custom tag it works ok, however, I am facing deep problems with action events as soon as I use the component within a jsf HtmlDataTable tag.
    Am I missing something here?
    Any ideas? Help is really really appreciated. This different behavior in different contexts is slowly but constantly driving me nuts.
    cheers
    hans

  • Java.lang.ClassNotFoundException  Failed to create delegate for component

    Hello Experts,
    I am expericing this problem on address iview of  ess. It was workign fine. But, suddenly. Its throwing this error. I am not able to figure whats going on with it. I restarted the server. But it didnt help. can any one suggest me Solution.
    project references : ess~per exists.
    ESS 600/ECC 6.0
    WAS 7.0.13.
    NWDS 7.0.13
    Your help is highly appreciated.
    Thanks,
    java.lang.ClassNotFoundException: com.sap.xss.hr.per.us.address.overview.wdp.InternalVcPerAddressUSOverview -
    Loader Info -
    ClassLoader name: [sap.com/essusaddr] Parent loader name: [Frame ClassLoader] References: common:service:http;service:servlet_jsp service:ejb common:service:iiop;service:naming;service:p4;service:ts service:jmsconnector library:jsse library:servlet common:library:IAIKSecurity;library:activation;library:mail;library:tcsecssl library:ejb20 library:j2eeca library:jms library:opensql common:library:com.sap.security.api.sda;library:com.sap.security.core.sda;library:security.class;library:webservices_lib;service:adminadapter;service:basicadmin;service:com.sap.security.core.ume.service;service:configuration;service:connector;service:dbpool;service:deploy;service:jmx;service:jmx_notification;service:keystore;service:security;service:userstore interface:resourcecontext_api interface:webservices interface:cross interface:ejbserialization sap.com/essper sap.com/pcui_gpxssutils sap.com/tcwddispwda sap.com/pcui_gpxssfpm sap.com/tcwdcorecomp service:webdynpro service:sld library:tcddicddicservices library:com.sap.aii.proxy.framework library:tcgraphicsigs library:com.sap.mw.jco library:com.sap.lcr.api.cimclient library:sapxmltoolkit library:com.sap.aii.util.rb library:com.sap.util.monitor.jarm library:tcddicddicruntime library:com.sap.aii.util.xml library:com.sap.aii.util.misc library:tccmi Resources: /usr/sap/DEP/JC41/j2ee/cluster/server0/apps/sap.com/essusaddr/webdynpro/public/lib/app.jar Loading model: {parent,references,local} -
        at com.sap.engine.frame.core.load.ReferencedLoader.loadClass(ReferencedLoader.java:382)
        at com.sap.tc.webdynpro.progmodel.generation.ControllerHelper.createDelegate(ControllerHelper.java:65)
        at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.<init>(DelegatingComponent.java:51)
        at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:382)
        at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.createComponent(ClientComponent.java:940)
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to create delegate for component com.sap.xss.hr.per.us.address.overview.VcPerAddressUSOverview. (Hint: Is the corresponding DC deployed correctly? Does the DC contain the component?)
         at com.sap.tc.webdynpro.progmodel.generation.ControllerHelper.createDelegate(ControllerHelper.java:110)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.<init>(DelegatingComponent.java:51)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:382)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.createComponent(ClientComponent.java:940)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.createComponent(ClientComponent.java:177)
         at com.sap.tc.webdynpro.progmodel.components.ComponentUsage.createComponentInternal(ComponentUsage.java:149)
         at com.sap.tc.webdynpro.progmodel.components.ComponentUsage.createComponent(ComponentUsage.java:141)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent$ComponentUsageManager.createVACComponentUsage(FPMComponent.java:747)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent.doProcessEvent(FPMComponent.java:563)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent.doEventLoop(FPMComponent.java:438)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent.wdDoInit(FPMComponent.java:196)
         at com.sap.pcuigp.xssfpm.wd.wdp.InternalFPMComponent.wdDoInit(InternalFPMComponent.java:110)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:108)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:430)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:362)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:756)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:291)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingPortal(ClientSession.java:733)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:668)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
         at com.sap.tc.webdynpro.clientserver.session.core.ApplicationHandle.doProcessing(ApplicationHandle.java:73)
         at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.sendDataAndProcessActionInternal(AbstractApplicationProxy.java:860)
         at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.create(AbstractApplicationProxy.java:220)
         at com.sap.portal.pb.PageBuilder.updateApplications(PageBuilder.java:1288)
         at com.sap.portal.pb.PageBuilder.createPage(PageBuilder.java:355)
         at com.sap.portal.pb.PageBuilder.init(PageBuilder.java:548)
         at com.sap.portal.pb.PageBuilder.wdDoRefresh(PageBuilder.java:592)
         at com.sap.portal.pb.PageBuilder$1.doPhase(PageBuilder.java:864)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processPhaseListener(WindowPhaseModel.java:755)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doPortalDispatch(WindowPhaseModel.java:717)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:136)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:321)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:684)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         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(AccessController.java:215)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
    Caused by: java.lang.ClassNotFoundException: com.sap.xss.hr.per.us.address.overview.wdp.InternalVcPerAddressUSOverview
    Loader Info -
    ClassLoader name: [sap.com/essusaddr]
    Parent loader name: [Frame ClassLoader]
    References:
       common:service:http;service:servlet_jsp
       service:ejb
       common:service:iiop;service:naming;service:p4;service:ts
       service:jmsconnector
       library:jsse
       library:servlet
       common:library:IAIKSecurity;library:activation;library:mail;library:tcsecssl
       library:ejb20
       library:j2eeca
       library:jms
       library:opensql
       common:library:com.sap.security.api.sda;library:com.sap.security.core.sda;library:security.class;library:webservices_lib;service:adminadapter;service:basicadmin;service:com.sap.security.core.ume.service;service:configuration;service:connector;service:dbpool;service:deploy;service:jmx;service:jmx_notification;service:keystore;service:security;service:userstore
       interface:resourcecontext_api
       interface:webservices
       interface:cross
       interface:ejbserialization
       sap.com/ess~per
       sap.com/pcui_gp~xssutils
       sap.com/tcwddispwda
       sap.com/pcui_gp~xssfpm
       sap.com/tcwdcorecomp
       service:webdynpro
       service:sld
       library:tcddicddicservices
       library:com.sap.aii.proxy.framework
       library:tcgraphicsigs
       library:com.sap.mw.jco
       library:com.sap.lcr.api.cimclient
       library:sapxmltoolkit
       library:com.sap.aii.util.rb
       library:com.sap.util.monitor.jarm
       library:tcddicddicruntime
       library:com.sap.aii.util.xml
       library:com.sap.aii.util.misc
       library:tc~cmi
    Resources:
       /usr/sap/DEP/JC41/j2ee/cluster/server0/apps/sap.com/essusaddr/webdynpro/public/lib/app.jar
    Loading model: {parent,references,local}
         at com.sap.engine.frame.core.load.ReferencedLoader.loadClass(ReferencedLoader.java:382)
         at com.sap.tc.webdynpro.progmodel.generation.ControllerHelper.createDelegate(ControllerHelper.java:65)
         ... 57 more
    ====================================================
    ====================================================
    Now, If I run it again its giving me a negative cache error.
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to create delegate for component com.sap.xss.hr.per.us.address.overview.VcPerAddressUSOverview. (Hint: Is the corresponding DC deployed correctly? Does the DC contain the component?)
         at com.sap.tc.webdynpro.progmodel.generation.ControllerHelper.createDelegate(ControllerHelper.java:110)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.<init>(DelegatingComponent.java:51)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:382)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.createComponent(ClientComponent.java:940)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.createComponent(ClientComponent.java:177)
         at com.sap.tc.webdynpro.progmodel.components.ComponentUsage.createComponentInternal(ComponentUsage.java:149)
         at com.sap.tc.webdynpro.progmodel.components.ComponentUsage.createComponent(ComponentUsage.java:141)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent$ComponentUsageManager.createVACComponentUsage(FPMComponent.java:747)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent.doProcessEvent(FPMComponent.java:563)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent.doEventLoop(FPMComponent.java:438)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent.wdDoInit(FPMComponent.java:196)
         at com.sap.pcuigp.xssfpm.wd.wdp.InternalFPMComponent.wdDoInit(InternalFPMComponent.java:110)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:108)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:430)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:362)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:756)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:291)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingPortal(ClientSession.java:733)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:668)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
         at com.sap.tc.webdynpro.clientserver.session.core.ApplicationHandle.doProcessing(ApplicationHandle.java:73)
         at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.sendDataAndProcessActionInternal(AbstractApplicationProxy.java:860)
         at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.create(AbstractApplicationProxy.java:220)
         at com.sap.portal.pb.PageBuilder.updateApplications(PageBuilder.java:1288)
         at com.sap.portal.pb.PageBuilder.createPage(PageBuilder.java:355)
         at com.sap.portal.pb.PageBuilder.init(PageBuilder.java:548)
         at com.sap.portal.pb.PageBuilder.wdDoRefresh(PageBuilder.java:592)
         at com.sap.portal.pb.PageBuilder$1.doPhase(PageBuilder.java:864)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processPhaseListener(WindowPhaseModel.java:755)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doPortalDispatch(WindowPhaseModel.java:717)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:136)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:321)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:684)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         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(AccessController.java:215)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
    Caused by: java.lang.ClassNotFoundException: com.sap.xss.hr.per.us.address.overview.wdp.InternalVcPerAddressUSOverview
    Found in negative cache
    Loader Info -
    ClassLoader name: [sap.com/essusaddr]
    Parent loader name: [Frame ClassLoader]
    References:
       common:service:http;service:servlet_jsp
       service:ejb
       common:service:iiop;service:naming;service:p4;service:ts
       service:jmsconnector
       library:jsse
       library:servlet
       common:library:IAIKSecurity;library:activation;library:mail;library:tcsecssl
       library:ejb20
       library:j2eeca
       library:jms
       library:opensql
       common:library:com.sap.security.api.sda;library:com.sap.security.core.sda;library:security.class;library:webservices_lib;service:adminadapter;service:basicadmin;service:com.sap.security.core.ume.service;service:configuration;service:connector;service:dbpool;service:deploy;service:jmx;service:jmx_notification;service:keystore;service:security;service:userstore
       interface:resourcecontext_api
       interface:webservices
       interface:cross
       interface:ejbserialization
       sap.com/ess~per
       sap.com/pcui_gp~xssutils
       sap.com/tcwddispwda
       sap.com/pcui_gp~xssfpm
       sap.com/tcwdcorecomp
       service:webdynpro
       service:sld
       library:tcddicddicservices
       library:com.sap.aii.proxy.framework
       library:tcgraphicsigs
       library:com.sap.mw.jco
       library:com.sap.lcr.api.cimclient
       library:sapxmltoolkit
       library:com.sap.aii.util.rb
       library:com.sap.util.monitor.jarm
       library:tcddicddicruntime
       library:com.sap.aii.util.xml
       library:com.sap.aii.util.misc
       library:tc~cmi
    Resources:
       /usr/sap/DEP/JC41/j2ee/cluster/server0/apps/sap.com/essusaddr/webdynpro/public/lib/app.jar
    Loading model: {parent,references,local}
         at com.sap.engine.frame.core.load.ReferencedLoader.loadClass(ReferencedLoader.java:360)
         at com.sap.tc.webdynpro.progmodel.generation.ControllerHelper.createDelegate(ControllerHelper.java:65)
         ... 57 more

    Resolved by addign the missing references

  • Error while creating WPC editor component...

    Hi,
    I was trying to create WPC editor component based on [Creating Editor Components for Composite Web Form Elements|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/30c46426-829b-2b10-4286-ec70189e5de5&overridelayout=true] tutorial.
    Basically i want to display the dropdown list component in WPC form. Please find below error  i am getting when i try to open the form.
    Error
    com.sapportals.portal.prt.component.PortalComponentException: Error in service call of Resource
    Component : com.sap.nw.wpc.designtime.EditorTool
    Component class : com.sap.nw.wpc.editor.EditorTool
    Thanks in advance,
    Vasu

    Hi,
    Any Suggestions?
    Regards
    Vasu

  • Failed to create delegate for component (Model Error)

    Dear All,
    I am getting exception while running one webdynpro application. Details of error is attached below.
    I am getting this error just after binding the Component controller node to Model Node, without writing any code for model execution. My model is created from one webservice, and that web service is perfectly fine.
    My server and IDE both running on same service pack SP12.
    I have tried with re-creating model and rebuild the project but still getting the same error.
    Kindly suggest.
    Thanks & Regards
    Manoj Sahoo
    <i><u><b>Root Cause
    The initial exception that caused the request to fail, was:</b></u></i>
    <b>
       java.lang.NoClassDefFoundError: com/sap/tc/webdynpro/model/webservice/gci/WSTypedModelClass -
    Loader Info -
    ClassLoader name: [chep.com/exchangeexchange_dynpro] Parent loader name: [Frame ClassLoader] References: common:service:http;service:servlet_jsp service:ejb common:service:iiop;service:naming;service:p4;service:ts service:jmsconnector library:jsse library:servlet common:library:IAIKSecurity;library:activation;library:mail;library:tcsecssl library:ejb20 library:j2eeca library:jms library:opensql common:library:com.sap.security.api.sda;library:com.sap.security.core.sda;library:security.class;library:webservices_lib;service:adminadapter;service:basicadmin;service:com.sap.security.core.ume.service;service:configuration;service:connector;service:dbpool;service:deploy;service:jmx;service:jmx_notification;service:keystore;service:security;service:userstore interface:resourcecontext_api interface:webservices interface:cross interface:ejbserialization sap.com/tcwddispwda sap.com/tcwdcorecomp chep.com/portglobalportfolio_common_dynpro service:webdynpro service:sld library:tcddicddicservices library:com.sap.aii.proxy.framework library:tcgraphicsigs library:com.sap.mw.jco library:com.sap.lcr.api.cimclient library:sapxmltoolkit library:com.sap.aii.util.rb library:com.sap.util.monitor.jarm library:tcddicddicruntime library:com.sap.aii.util.xml library:com.sap.aii.util.misc library:tccmi Resources: /usr/sap/MTD/JC00/j2ee/cluster/server0/apps/chep.com/exchangeexchange_dynpro/src.zip /usr/sap/MTD/JC00/j2ee/cluster/server0/apps/chep.com/exchangeexchange_dynpro/webdynpro/public/lib/chep.comportglobalportfolio_commonscommonsJAR.jar /usr/sap/MTD/JC00/j2ee/cluster/server0/apps/chep.com/exchangeexchange_dynpro/webdynpro/public/lib/chep.comexchange~exchange_dynpro.jar Loading model: {parent,references,local} -
    The error occurred while trying to load "com.chep.portfolio.exchange.dynpro.model.EMSSummaryTO".
        at com.sap.engine.frame.core.load.ReferencedLoader.loadClass(ReferencedLoader.java:401)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:141)
        at com.chep.portfolio.exchange.dynpro.summary.wdp.InternalExchangeManagementSummaryComp.class$(InternalExchangeManagementSummaryComp.java:25)
        ... 33 more</b>
    <u><b>Detailed Exception Chain</b></u>
    <b>
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to create delegate for component com.chep.portfolio.exchange.dynpro.summary.ExchangeManagementSummaryComp. (Hint: Is the corresponding DC deployed correctly? Does the DC contain the component?)
         at com.sap.tc.webdynpro.progmodel.generation.ControllerHelper.createDelegate(ControllerHelper.java:110)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.<init>(DelegatingComponent.java:51)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:382)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:362)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:748)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:283)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:759)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:712)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:261)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:46)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         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:387)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
         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:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Caused by: java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
         at com.sap.tc.webdynpro.progmodel.generation.ControllerHelper.createDelegate(ControllerHelper.java:74)
         ... 27 more
    Caused by: java.lang.NoClassDefFoundError: com/sap/tc/webdynpro/model/webservice/gci/WSTypedModelClass</b>

    hi,
    the problem is that you are missing a jar file called: webdynpromodel_webservice_default.jar
    which should be present inside:
    C:\Documents and Settings\<User Name>\.dtc\3\DCs\sap.com\tc\wd\wslib\_comp\gen\default\public\default\lib\java
    For this you need to add tc/wd/wslib(default) DC as used DC. Go to DC Metadata -> DC Definition and expand used DCs. check whether it is present or not. If not then add it.
    Just check this. Hope this will solve your problem
    thanks & regards,
    Manoj
    Message was edited by:
            Manoj Kumar

  • How to Create a Table Component Dynamically based on the Need

    Hello all,
    I have a problem i need to create dynamically tables based on the no of records in the database. How can i create the table object using java code.
    Please help.

    Winston's blog will probably be helpful:
    How to create a table component dynamically:
    http://blogs.sun.com/roller/page/winston?entry=creating_dynamic_table
    Adding components to a dynamically created table
    http://blogs.sun.com/roller/page/winston?entry=dynamic_button_table
    Lark
    Creator Team

  • Creating a custom component in multisim using *.lib and *.olb files

    i have  *.lib and *.olb files for a pspice model. which file i have to you while creating a custom component in multisim.

    Hello,
    Thanks for your question. In order to create simulatable custom components in Multisim you need a SPICE model (Multisim can also understand PSpice Models). The file format for SPICE model can be different according to the manufacturer, for instance: *.cir, *.lib, *.llb. At the end of the day these files are text files that you can open with a text editor, therefore, you can simply copy and paste the model in Multisim.
    Here are two good resources on component creation:
    Component Creation 101
    Creating a Custom Component in NI Multisim
    When you reach the step where you need to enter the SPICE model, simply open the *.lib or *.olb file with a text editor, and copy and paste the model.
    Hope this helps.
    Fernando D.
    National Instruments

  • How to create a new component in CRM 7.0?

    while creating a new component with search and result options... main window is not created automatically.
    when tried to create it manually its giving short dump. kindly let me know what could be the reason for this problem?
    thanks alot.

    Hi Vijay,
    could you please specify what kind of short dump you are getting? The short dumps can be looked at in the sapgui transaction st22.
    Best regards,
    Erika

  • WDRuntimeException : Failed to create delegate for component

    Hi Friends,
    I encountered the following error while deploying the application to local DC. Actually, i'm trying to create a new view 'HCFileUploadView' in the existing application.
    An error has occurred:
    "Failed to process the request."
    Please contact your system administrator.
    Hide details
    Web Dynpro client:
    HTML Client
    Web Dynpro client capabilities:
    User agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322), version: null, DOM version: null, client type: msie6, client type profile: ie6, ActiveX: enabled, Cookies: enabled, Frames: enabled, Java applets: enabled, JavaScript: enabled, Tables: enabled, VB Script: enabled
    Web Dynpro runtime:
    Vendor: SAP, Build ID: 6.4011.00.0000.20050217164947.0000 (release=630_VAL_REL, buildtime=2005-02-20:21:49:12[UTC], changelist=329752, host=PWDFM026)
    Web Dynpro code generators of DC local/CRRSRatingWDP:
    SapDictionaryGenerationCore: 6.4011.00.0000.20050127161623.0000 (release=630_VAL_REL, buildtime=2005-02-20:21:34:47[UTC], changelist=324383, host=PWDFM026.wdf.sap.corp)
    SapMetamodelWebDynpro: 6.4011.00.0000.20050121170001.0000 (release=630_VAL_REL, buildtime=2005-02-20:21:38:14[UTC], changelist=322883, host=PWDFM026.wdf.sap.corp)
    SapMetamodelCore: 6.4011.00.0000.20050121165648.0000 (release=630_VAL_REL, buildtime=2005-02-20:21:28:49[UTC], changelist=322878, host=PWDFM026.wdf.sap.corp)
    SapWebDynproGenerationTemplates: 6.4011.00.0000.20050217164947.0000 (release=630_VAL_REL, buildtime=2005-02-20:21:53:22[UTC], changelist=329752, host=PWDFM026)
    SapWebDynproGenerationCTemplates: 6.4011.00.0000.20050217164947.0000 (release=630_VAL_REL, buildtime=2005-02-20:21:53:22[UTC], changelist=329752, host=PWDFM026)
    SapGenerationFrameworkCore: 6.4011.00.0000.20041104141254.0000 (release=630_VAL_REL, buildtime=2005-02-20:21:28:00[UTC], changelist=298452, host=PWDFM026.wdf.sap.corp)
    SapIdeWebDynproCheckLayer: 6.4011.00.0000.20050215134310.0000 (release=630_VAL_REL, buildtime=2005-02-20:21:42:02[UTC], changelist=329103, host=PWDFM026.wdf.sap.corp)
    SapMetamodelDictionary: 6.4011.00.0000.20040609163924.0000 (release=630_VAL_REL, buildtime=2005-02-20:21:32:12[UTC], changelist=253570, host=PWDFM026.wdf.sap.corp)
    SapMetamodelCommon: 6.4011.00.0000.20050121165648.0000 (release=630_VAL_REL, buildtime=2005-02-20:21:28:59[UTC], changelist=322878, host=PWDFM026.wdf.sap.corp)
    SapWebDynproGenerationCore: 6.4011.00.0000.20050215134310.0000 (release=630_VAL_REL, buildtime=2005-02-20:21:42:32[UTC], changelist=329103, host=PWDFM026.wdf.sap.corp)
    SapDictionaryGenerationTemplates: (unknown)
    Web Dynpro code generators of DC sap.com/tcwddispwda:
    No information available
    Web Dynpro code generators of DC sap.com/tcwdcorecomp:
    No information available
    J2EE Engine:
    No information available
    Java VM:
    Java HotSpot(TM) Server VM, version: 1.4.2_06-b03, vendor: Sun Microsystems Inc.
    Operating system:
    Windows XP, version: 5.1, architecture: x86
    Error stacktrace:
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to create delegate for component com.mbb.crrs.web.webdynpro.component.DefaultRatingController. (Hint: Is the corresponding DC deployed correctly? Does the DC contain the component?)
         at com.sap.tc.webdynpro.progmodel.generation.ControllerHelper.createDelegate(ControllerHelper.java:110)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.<init>(DelegatingComponent.java:38)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.doInit(ClientComponent.java:775)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:329)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:349)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:599)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)
         at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:251)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:48)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:391)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:265)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:345)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:323)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:865)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:240)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
         at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
         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:94)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
    Caused by: java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
         at com.sap.tc.webdynpro.progmodel.generation.ControllerHelper.createDelegate(ControllerHelper.java:74)
         ... 26 more
    Caused by: java.lang.ExceptionInInitializerError
         at com.mbb.crrs.web.webdynpro.component.wdp.InternalDefaultRatingController.<init>(InternalDefaultRatingController.java:192)
         ... 31 more
    Caused by: com.mbb.crrs.common.exceptions.ApplicationConfigurationException: Cannot load System Properties.
         at com.mbb.crrs.common.SystemContext.<init>(SystemContext.java:39)
         at com.mbb.crrs.common.SystemContext.getInstance(SystemContext.java:47)
         at com.mbb.crrs.common.LoggerFactory.getLogger(LoggerFactory.java:60)
         at com.mbb.crrs.web.webdynpro.component.DefaultRatingController.<clinit>(DefaultRatingController.java:737)
         ... 32 more
    Please help me on this issue.
    Thanks && Regards,
    Vijay.

    Hello!
    I face the same problem with Failed to create delegate for component:
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to create delegate for component
    XXX.YYY.ZZZ..ume.Ume. (Hint: Is the corresponding DC deployed correctly? Does the DC contain the component?)
    Caused by: java.lang.reflect.InvocationTargetException
    Caused by: java.lang.NoClassDefFoundError: com.sap.tc.webdynpro.model.webservice.gci.WSTypedModelClass
    I think this started after upgrading from 7.01 SP3 to SP5, but I'm not sure.
    What was it that solved your issue?
    *I found the error. My ProjectProperties.wdProperties did not contain the references it needed.*
    Edited by: Richard Linnander on Nov 23, 2009 2:33 PM

  • Error create a software component

    I am trying to create a software component in SLD, but I am getting following error.
    <b>“Unknown reference instance in CIMPropertyReference key property” </b>.
    I am giving following parameters .
    Product  : TBIT40_WORKSHOP,1.0 of SAP
    Vendor :sap
    Name :  PRASHANTH
    Version: 1.0
    can any one please help me create a SWC and also let me know how to create Product in SLD <b>I am new to XI</b> .

    Hi Prashanth,
    More on -
    http://help.sap.com/saphelp_nw2004s/helpdata/en/a4/481955dc9e42c19d5a1bc3b8aead81/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/12/003479fa4c2d4aa9d175dcbb081d66/frameset.htm
    doubts in funda's of XI
    Hope this helps
    Regards,
    Moorthy

  • Create an Image Component that has a scale9Grid border

    Hello, I want to start the process of creating a custom Image
    Component that has a property of Scale9GridBorder, which upon
    setting, will use Scale9Grid to create a frame around an image. I
    was wondering if someone has any tips?
    I'm familiar with custom components, all written in
    Actionscript 3.0, and with the common createCHildren,
    commitPorperties, measure, updateDisplayLIst mehtods that Ill have
    to implement. I'm just not sure if classes like RectangleBorder,
    etc. will be of help for me.
    Maybe someone has already created a similar component?
    Thanks,
    Todd

    I guess, where I'm getting stuck is trying to use scale9Grid
    dynamically at runtime. Is this possible, or does scale9Grid only
    work with embeded images? (I can't find any samples of runtime
    setting a background image and then setting the innerRectangle of
    scale9Grid.
    THanks

  • How to create a text Component With Certain Properties

    I need to create a text component with the following properties:
    Has Capability to be italic, right/left aligned, have different background / foreground colors, and most importantly, the ability to have a fixed width and a height that is set by the amount of text in it (ie line wrapping expands the field vertically).
    It should be a simple exercise, but I cannot seem to figure out how to do it.

    Here is the correct syntax :
    private static JEditorPane constructPane(String text, int normWidth, int normHeight, boolean rightAlign, boolean italic,boolean isWhite) {
              JEditorPane pane = new JEditorPane();
              pane.setEditable(false);
              pane.setContentType("text/html");
              pane.setText(
                   "<html><head></head><body>"
                   + (italic?"<i>":"")
                   + "<table><COLGROUP><COL width=\""+normWidth+"\"><THREAD><tr><td valign=\"top\" align="+(rightAlign?"\"right\"":"\"left\"")+">"
                   + text+"</td></tr></table>"
                   + (italic?"</i>":"")
                   + "</body></html>");
              pane.setSize(normWidth,normHeight);
              if(isWhite)
                   pane.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createMatteBorder(1,0,1,0,Color.WHITE),BorderFactory.createEmptyBorder(0,1,0,1)));
                   pane.setForeground(Color.WHITE);
              else {
                   pane.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createMatteBorder(1,0,1,0,Color.BLACK),BorderFactory.createEmptyBorder(0,1,0,1)));
                   pane.setForeground(Color.BLACK);
              return pane;
         }

Maybe you are looking for

  • HELP- VISTA problem with div inside of div

    Hi all, I need some Dreamweaver CSS help. I put together a profile Web site, http://lizconnolly.com/index.html and in VISTA/IE the yellow bio box inside the gray box is being pushed down. The box looks fine in Firefox and Safari, and I am not sure wh

  • No warning when assigning to an unsigned char from unsigned int

    Is this an error in VC++, or am I missing something?  The following code should give two warnings for assigning to a smaller type, but only gives one: (compiled as 32 bit) unsigned char c; unsigned int i = 24; // 32 bit unsigned integer unsigned long

  • Headphone Jack doesn't work for all headphones

    I don't have apple haeadphones anymore and I realized that not all headphones work on my ipod4. I have to turn my headphones to a certain angle to get them to work all the time. help?

  • IMessages delivered despite not delivered error on Mountain Lion?

    Since I upgraded my MBP to mountain lion this past week and set it up to receive my imessages on the desktop, all iPhone 4s imessages are showing an error. Once I send an imessage on my phone, it says delivered and then quickly changes to "Not Delive

  • Creating Administration Groups using custom Target Properties?

    I've added a Target Property "Usage" to my 'host' Target type.  I would like to use this property when creating my Administration Groups.  When I try to create my Administration Group hierarchy, the only Target Property's available to use are the def