Jtabbed panel as a container for a frame

Is it possible for a tabbed pane to contain a frame and if so are there any quirks or specifics that i need to know?

Can I ask why you think you need to add a Frame to the tabbed pane?
Normally, you'd add JComponents (or descendents of JComponent), which Frame is not.
A Frame is a top-level window with a title and a border (http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Frame.html).
Can you tell us anything about exactly what you're trying to achieve?
Chris.

Similar Messages

  • Panels resizable contained in a frame resizable

    Hello to all,
    I have the following question, how is it possible to make resizable the panels contained in the frame when frame's resized by the user?
    I had already a look at the swing tutorial but I didn't find the solution :( (may be I didn't understand )
    Can anybody help me?
    I attach here bellow my code
    Thansk in advance
    Mandy
    ublic class SecondClass  extends JFrame{     
         JTextArea cfgArea;
         JTextArea relArea;
         JTextArea resultArea;
         JComboBox searchModeCB;
         public SecondClass(){
             JFrame frame = new JFrame("title");
             frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
             frame.setResizable(true);
             JPanel mainPanel = new JPanel();
             mainPanel.setBackground(Color.cyan);
             mainPanel.setSize(600,400);
             mainPanel.setLayout(null);
             JPanel  cfgPane = new JPanel ();
             cfgPane.setLayout(null);
             cfgPane.setBackground(Color.red);
             cfgPane.setBounds(10,10,370,280);
             mainPanel.add(cfgPane);
             cfgArea = new JTextArea();
             cfgArea.setBorder(BorderFactory.createEtchedBorder());
             cfgArea.setDragEnabled(true);
             cfgArea.setTransferHandler(new CustomedTransferHandler());
             cfgArea.setDropMode(DropMode.INSERT);
             JScrollPane cfgScrollPane = new JScrollPane(cfgArea);
             cfgScrollPane.setBounds(10, 20, 350, 200);
             cfgPane.add(cfgScrollPane);
             JButton clearCfgButton = new JButton("Clear");
             clearCfgButton.setBounds(70, 230, 70, 20);
             cfgPane.add(clearCfgButton);
             JButton addCfgButton = new JButton("Add");
             addCfgButton.setBounds(200, 230, 60, 20);
             cfgPane.add(addCfgButton);
             mainPanel.add(cfgPane);
             JPanel relPane =  new JPanel();
             relPane.setLayout(null);
             relPane.setBackground(Color.blue);
             relPane.setBounds(10,300,370,280);
             mainPanel.add(relPane);
             relArea = new JTextArea();
             relArea.setBorder(BorderFactory.createEtchedBorder());
             relArea.setDragEnabled(true);
             relArea.setTransferHandler(new CustomedTransferHandler());
             relArea.setDropMode(DropMode.INSERT);
             JScrollPane relScrollPane = new JScrollPane(relArea);
             relScrollPane.setBounds(10, 20, 350, 200);
             relPane.add(relScrollPane);
             JButton clearRelButton = new JButton("Clear");
             clearRelButton.setBounds(20, 230, 70, 20);
             relPane.add(clearRelButton);
             JButton addRelButton = new JButton("Add");
             addRelButton.setBounds(110, 230, 60, 20);
             relPane.add(addRelButton);
             String[] items = {"Something"};
             searchModeCB = new JComboBox(items);
             searchModeCB.setBounds(180, 230, 180, 20);
             searchModeCB.setSelectedItem("Something");
             relPane.add(searchModeCB);
             JButton okRelButton = new JButton("Ok");
             okRelButton.setBounds(300, 255, 60, 20);
             relPane.add(okRelButton);
             JPanel resultPane = new JPanel();
             resultPane.setLayout(null);
             relPane.setBackground(Color.yellow);
             resultPane.setBounds(390,10,580,570);
             resultArea = new JTextArea();
             resultArea.setBorder(BorderFactory.createEtchedBorder());
            mainPanel.add(resultPane);
             JScrollPane resultScrollPane = new JScrollPane(resultArea);
             resultScrollPane.setBounds(10, 20, 560, 490);
             resultPane.add(resultScrollPane);
             JButton clearResButton = new JButton("Clear");
             clearResButton.setBounds(120, 520, 80, 20);
             resultPane.add(clearResButton);
             JButton saveResultButton = new JButton("Save");
             saveResultButton.setBounds(380, 520, 80, 20);
             resultPane.add(saveResultButton);
             JButton exitButton = new JButton("Exit");
             exitButton.setBounds(495, 550, 80, 15);
             resultPane.add(exitButton);
             frame.add(mainPanel);
             frame.setLocation(200,200);
             int width = 980;
             int height = 650;
             frame.setSize(width, height);
             frame.setVisible(true);
         public static void main(String[] args) {
              // TODO Auto-generated method stub
              SecondClass main = new SecondClass();
    }

    ok did some modifications.
    Now it works as I want
         public SecondClass(){
             JFrame frame = new JFrame("title");
             frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
             frame.setResizable(true);
             JPanel  mainPanel = new JPanel ();
             mainPanel.setSize(600,400);
             mainPanel.setLayout(new GridLayout(0,2));
             JPanel sxPanel = new JPanel();
             sxPanel.setBackground(Color.blue);
             sxPanel.setLayout(new GridLayout(2,0));
             mainPanel.add(sxPanel);
             JPanel dxPanel = new JPanel();
             dxPanel.setLayout(new BorderLayout());
             mainPanel.add(dxPanel);
             // Create cfgArea
              JPanel  cfgPane = new JPanel ();
              cfgPane.setLayout(new BorderLayout());
             sxPanel.add(cfgPane);
             cfgPane.add(new JLabel("  "),BorderLayout.NORTH);
             cfgPane.add(new JLabel("  "),BorderLayout.EAST);
             cfgPane.add(new JLabel("  "),BorderLayout.WEST);
             cfgArea = new JTextArea();
             cfgArea.setBorder(BorderFactory.createEtchedBorder());
             cfgArea.setDragEnabled(true);
             cfgArea.setTransferHandler(new CustomedTransferHandler());
             cfgArea.setDropMode(DropMode.INSERT);
             JScrollPane cfgScrollPane = new JScrollPane(cfgArea);
             cfgPane.add(cfgScrollPane,BorderLayout.CENTER);
             JPanel southCfgPanel = new JPanel();
             cfgPane.add(southCfgPanel, BorderLayout.SOUTH);
             JButton clearCfgButton = new JButton("Clear");
             southCfgPanel.add(clearCfgButton);
             JButton addCfgButton = new JButton("Add");
             southCfgPanel.add(addCfgButton);
             //end og cfg Area
             // Create relArea     
             JPanel relPane =  new JPanel();
             relPane.setLayout(new BorderLayout());
             sxPanel.add(relPane);
             relPane.add(new JLabel("  "),BorderLayout.NORTH);
             relPane.add(new JLabel("  "),BorderLayout.EAST);
             relPane.add(new JLabel("  "),BorderLayout.WEST);
             relArea = new JTextArea();
             relArea.setBorder(BorderFactory.createEtchedBorder());
             relArea.setDragEnabled(true);
             relArea.setTransferHandler(new CustomedTransferHandler());
             relArea.setDropMode(DropMode.INSERT);
             JScrollPane relScrollPane = new JScrollPane(relArea);
             relPane.add(relScrollPane,BorderLayout.CENTER);
             JPanel southRelPanel = new JPanel();
             relPane.add(southRelPanel, BorderLayout.SOUTH);
             JButton clearRelButton = new JButton("Clear");
             southRelPanel.add(clearRelButton);
             JButton addRelButton = new JButton("Add");
             southRelPanel.add(addRelButton);
             String[] items = {"Something"};
             searchModeCB = new JComboBox(items);
             searchModeCB.setSelectedItem("Something");
             southRelPanel.add(searchModeCB);
             JButton okRelButton = new JButton("Ok");
             southRelPanel.add(okRelButton);
            //RESULT PANEL
             JPanel resultPane = new JPanel();
             resultPane.setLayout(new BorderLayout());
             dxPanel.add(new JLabel("  "),BorderLayout.NORTH);
             dxPanel.add(new JLabel("  "),BorderLayout.EAST);
             dxPanel.add(new JLabel("  "),BorderLayout.WEST);
             dxPanel.add(resultPane,BorderLayout.CENTER);
             resultArea = new JTextArea();
             resultArea.setBorder(BorderFactory.createEtchedBorder());
             resultPane.add(resultArea,BorderLayout.CENTER);
             JScrollPane resultScrollPane = new JScrollPane(resultArea);
             resultPane.add(resultScrollPane);
             JPanel southPanel = new JPanel();
             resultPane.add(southPanel, BorderLayout.SOUTH);
             JButton clearResButton = new JButton("Clear");
             southPanel.add(clearResButton);
             JButton saveResultButton = new JButton("Save");
             southPanel.add(saveResultButton);
             JButton exitButton = new JButton("Exit");
             southPanel.add(exitButton);
             frame.add(mainPanel);
             frame.setLocation(200,200);
             // Show the frame
             int width = 980;
             int height = 650;
             frame.setSize(width, height);
             frame.setVisible(true);
         }

  • How do i use jbutton for mutiple frames(2frames)???

    im an creating a movie database program and i have a problem with the jButtons on my second frame i dont know how to make them work when clicked on. i managed to make the jButtons work on my first frame but not on the second....
    here is that code so far----
    import java.awt.Container;
    import java.awt.Dimension;
    import java.awt.GridBagConstraints;
    import java.awt.GridBagLayout;
    import java.awt.Insets;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.event.KeyEvent;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.JTextField;
    * real2.java
    * Created on December 7, 2007, 9:00 AM
    * To change this template, choose Tools | Template Manager
    * and open the template in the editor.
    * @author J
    public class real2 extends JPanel  implements ActionListener{
        private JButton addnew;
        private JButton help;
        private JButton exit;
        private JFrame frame1;
        private JButton save;
        private JButton cancel;
        private JButton save2;
        private JLabel moviename;
        private JTextField moviename2;
        private JLabel director;
        private JTextField director2;
        private JLabel year;
        private JTextField year2;
        private JLabel genre;
        private JTextField genre2;
        private JLabel plot;
        private JTextField plot2;
        private JLabel rating;
        private JTextField rating2;
        /** Creates a new instance of real2 */
        public real2() {
            super(new GridBagLayout());
            //Create the Buttons.
            addnew = new JButton("Add New");
            addnew.addActionListener(this);
            addnew.setMnemonic(KeyEvent.VK_E);
            addnew.setActionCommand("Add New");
            help = new JButton("Help");
            help.addActionListener(this);
            help.setActionCommand("Help");
            exit = new JButton("Exit");
            exit.addActionListener(this);
            exit.setActionCommand("Exit");
           String[] columnNames = {"First Name",
                                    "Last Name",
                                    "Sport",
                                    "# of Years",
                                    "Vegetarian"};
            Object[][] data = {
                {"Mary", "Campione",
                 "Snowboarding", new Integer(5), new Boolean(false)},
                {"Alison", "Huml",
                 "Rowing", new Integer(3), new Boolean(true)},
                {"Kathy", "Walrath",
                 "Knitting", new Integer(2), new Boolean(false)},
                {"Sharon", "Zakhour",
                 "Speed reading", new Integer(20), new Boolean(true)},
                {"Philip", "Milne",
                 "Pool", new Integer(10), new Boolean(false)}
            final JTable table = new JTable(data, columnNames);
            table.setPreferredScrollableViewportSize(new Dimension(600, 100));
            table.setFillsViewportHeight(true);
            //Create the scroll pane and add the table to it.
            JScrollPane scrollPane = new JScrollPane(table);
            //Add the scroll pane to this panel.
            add(scrollPane);
            GridBagConstraints c = new GridBagConstraints();
            c.weightx = 1;
            c.gridx = 0;
            c.gridy = 1;
            add(addnew, c);
            c.gridx = 0;
            c.gridy = 2;
            add(help, c);
            c.gridx = 0;
            c.gridy = 3;
            add(exit, c);
        public static void addComponentsToPane(Container pane){
            pane.setLayout(null);
            //creating the components for the new frame
            JButton save = new JButton("Save");
            JButton save2 = new JButton("Save and add another");
            JButton cancel = new JButton("Cancel");
            JLabel moviename= new JLabel("Movie Name");
            JTextField moviename2 = new JTextField(8);
            JLabel director = new JLabel("Director");
            JTextField director2 = new JTextField(8);
            JLabel genre = new JLabel("Genre");
            JTextField genre2 = new JTextField(8);
            JLabel year = new JLabel("year");
            JTextField year2 = new JTextField(8);
            JLabel plot = new JLabel("Plot");
            JTextField plot2 = new JTextField(8);
            JLabel rating = new JLabel("Rating(of 10)");
            JTextField rating2 = new JTextField(8);
            //adding components to new frame
            pane.add(save);
            pane.add(save2);
            pane.add(cancel);
            pane.add(moviename);
            pane.add(moviename2);
            pane.add(director);
            pane.add(director2);
            pane.add(genre);
            pane.add(genre2);
            pane.add(year);
            pane.add(year2);
            pane.add(plot);
            pane.add(plot2);
            pane.add(rating);
            pane.add(rating2);
            //setting positions of components for new frame
                Insets insets = pane.getInsets();
                Dimension size = save.getPreferredSize();
                save.setBounds(100 , 50 ,
                         size.width, size.height);
                 size = save2.getPreferredSize();
                save2.setBounds(200 , 50 ,
                         size.width, size.height);
                 size = cancel.getPreferredSize();
                cancel.setBounds(400 , 50 ,
                         size.width, size.height);
                 size = moviename.getPreferredSize();
                moviename.setBounds(100 , 100 ,
                         size.width, size.height);
                size = moviename2.getPreferredSize();
                moviename2.setBounds(200 , 100 ,
                         size.width, size.height);
                 size = director.getPreferredSize();
                director.setBounds(100, 150 ,
                         size.width, size.height);
                 size = director2.getPreferredSize();
                director2.setBounds(200 , 150 ,
                         size.width, size.height);
                size = genre.getPreferredSize();
                genre.setBounds(100 , 200 ,
                         size.width, size.height);
                 size = genre2.getPreferredSize();
                genre2.setBounds(200 , 200 ,
                         size.width, size.height);
                 size = year.getPreferredSize();
                year.setBounds(100 , 250 ,
                         size.width, size.height);
                size = year2.getPreferredSize();
                year2.setBounds(200 , 250 ,
                         size.width, size.height);
                 size = plot.getPreferredSize();
                plot.setBounds(100 , 300 ,
                         size.width, size.height);
                 size = plot2.getPreferredSize();
                plot2.setBounds(200 , 300 ,
                         size.width, size.height);
                size = rating.getPreferredSize();
                rating.setBounds(100 , 350 ,
                         size.width, size.height);
                 size = rating2.getPreferredSize();
                rating2.setBounds(200 , 350 ,
                         size.width, size.height);
        private static void createAndShowGUI() {
            //Create and set up the window.
            JFrame frame = new JFrame();
            frame.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
            frame.add(new real2());
            //Display the window.
            frame.setSize(600, 360);
            frame.setVisible(true);
            frame.pack();
        public static void main(String[] args) {
            //Schedule a job for the event-dispatching thread:
            //creating and showing this application's GUI.
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    createAndShowGUI();
        public void actionPerformed(ActionEvent e) {
            if ("Add New".equals(e.getActionCommand())){
               frame1 = new JFrame("add");
               frame1.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
               addComponentsToPane(frame1.getContentPane());
               frame1.setSize(600, 500);
               frame1.setVisible(true);
                //disableing first frame etc:-
                if (frame1.isShowing()){
                addnew.setEnabled(false);
                help.setEnabled(false);
                exit.setEnabled(true);
                frame1.setVisible(true);
               }else{
                addnew.setEnabled(true);
                help.setEnabled(true);
                exit.setEnabled(true);           
            if ("Exit".equals(e.getActionCommand())){
                System.exit(0);
            if ("Save".equals(e.getActionCommand())){
                // whatever i ask it to do it wont for example---
                help.setEnabled(true);
            if ("Save" == e.getSource()) {
                //i tried this way too but it dint work here either
                help.setEnabled(true);
    }so if someone could help me by either telling me what to type or by replacing what iv done wrong that would be great thanks...

    (1)Java class name should begin with a capital letter. See: http://java.sun.com/docs/codeconv/
            JButton save = new JButton("Save");
            JButton save2 = new JButton("Save and add another");
            // ... etc. ...(2)Don't redeclare class members in a method as its local variable. Your class members become eternally null, a hellish null.
    how to make them work when clicked on(3)Add action listener to them.

  • I've created a photo book in iPhoto on my iPad.  When I go to order it, it says that "Your Book contains Empty Photo Frames" but when I check each page, they all have photos.  How to I order the book?

    I've created a photo book in iphoto on my ipad.  When I try to order it (by clicking the price of the book in the top right corner) it says that Your book contains empty photo frames - add photos to the empty frames, or change the page layout to include fewer photos" but when I look at each page, there are photos in all the frames.  What do I need to do to order this book??????
    Thanks so much for any help offered!

    It doesn't appear under the iPad device on the left-hand sidebar of iTunes, you need to select the iPad device on the sidebar and then select the Photos tab on the right-hand side of iTunes e.g.
    And then on the right-hand side :

  • Updating a panel within a container

    I am attempting to update a panel within a container. I have tried to search the forum but couldn't find a solution. The codes are listed below. What am I doing wrong?
    package test;
    import java.awt.*;
    import java.awt.Graphics;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.border.*;
    import javax.swing.plaf.FontUIResource;
    import javax.swing.plaf.ColorUIResource;
    class Template1 extends JFrame {     
         private static final Dimension screenSize = Toolkit.getDefaultToolkit ().getScreenSize ();
         private JLabel numLockKey, capsLockKey, mode;
         protected Container pane;
         protected JPanel buttonPanel, basePanel;
         public Template1() {
              super("Soybean Candles -- Authorized Personnel Only");                
            buildLayout();       
              setSize(screenSize.width, screenSize.height);                    
                 setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                 setResizable(false);             
              show();                              
         private void buildLayout() {
              pane = getContentPane();
              pane.setLayout(new BorderLayout());          
              basePanel = new JPanel(new BorderLayout());
              basePanel.add(new JLabel(new ImageIcon("C:/GUI/Images/plogo.jpg")), BorderLayout.CENTER);
                pane.add(panel_1(), BorderLayout.NORTH);
                pane.add(basePanel, BorderLayout.CENTER);            
         private JPanel panel_1() {
              buttonPanel = new JPanel(new FlowLayout(FlowLayout.LEFT, 20, 10));          
              buttonPanel.setBackground(Color.decode("#526dad"));
              JButton buttons[] = new JButton[3];
              buttonPanel.add(createButton(buttons[0], "TIME CLOCK", new TestAction()));
              buttonPanel.add(createButton(buttons[1], "LOGIN", new LoginAction()));
              buttonPanel.add(createButton(buttons[2], "EXIT", new TestAction()));
              return buttonPanel;
         private JButton createButton(JButton btn, String displayTxt, AbstractAction action) {
              Dimension dim = new Dimension(100, 40);
              btn = new JButton(action);
              btn.setText(displayTxt);          
              btn.setPreferredSize(dim);
              btn.setMaximumSize(dim);
              btn.setMinimumSize(dim);
              btn.setBorder(BorderFactory.createLineBorder(Color.white, 2));
              btn.setBackground(Color.decode("#3e4b84"));
              btn.setForeground(Color.white);          
              btn.setFocusPainted(false);
              btn.setActionCommand(displayTxt);
              return btn;          
         private JPanel panel_2() {          
              basePanel = new JPanel(new BorderLayout());
              basePanel.add(new JLabel(new ImageIcon("C:/GUI/Images/plogo.jpg")), BorderLayout.CENTER);
              return basePanel;
         public static void main(String args[]) {
              UIManager.put("Label.font", new FontUIResource(new Font("Arial", Font.PLAIN, 12)));
              UIManager.put("Button.font", new FontUIResource(new Font("Arial", Font.PLAIN, 12)));
              Template1 tpl = new Template1();
         class TestAction extends AbstractAction {             
                 public void actionPerformed(ActionEvent e) {
                      System.out.println("button pressed");
            class LoginAction extends AbstractAction {
                 public void actionPerformed(ActionEvent e) {
                      basePanel.invalidate();
                    basePanel = new JPanel();
                   basePanel.add(new JLabel("test"));
                   basePanel.repaint();               
    }

    You're creating a new panel every time an action is performed. That panel is never going to be visible unless you add it to the frame.
    Either remove the old panel and add the new panel or add the label to the panel you already have without creating a new one. Then call validate on the whole frame, and it should work.

  • Set anchor yoffset value for inline frame

    Hi everyone!,
    In my document having the one story and it contains the two inline frames.
    then set the anchor yoffset value for inline frame to -5 mm.
    my coding is given by below, what's wrong in my code.
    Please tell me.
    tell application "Adobe InDesign CC 2014"
        set ofset to -5
        tell active document
               tell story 1
            set anchor yoffset of anchored object settings of parent of item 1 of inline frame 1 to ofset
               end tell
          end tell
    end tell

    Hi
    This snippet works ...
    tell application "Adobe InDesign CC 2014"
        set ofset to -5
        tell active document
            tell story 1
                tell text frame 1
                    set anchor yoffset of anchored object settings to ofset
                end tell
            end tell
        end tell
    end tell

  • Loud static on speakers which disappear when I mute Plugin Container for Firefox on Volume Mixer

    When I started my laptop this problem appeared. There is no static when I mute the speakers on Volume Mixer, which mutes Speakers, Windows Sounds and Plugin Container for Firefox.
    When I only mute Plugin Container for Firefox it also silences the static.
    Could the problem be here?

     Welcome to the HP Support Forums!  JohnWhite, 
    I understand that your speakers on your HP Pavilion g7-2325dx Notebook PC continues to emit sound when you plug your headphones in and that you got an error stating "audio device isn't set as default". I will try my best to help you with this.
    Try the following steps. 
    1. Click Start 
    2. Go to Control Panel 
    3. Select "Hardware and Sound"
    4. Select "Sound" 
    5. Right click the box and choose "Show Disabled Devices" 
    6. Make sure that your audio device is enabled for your notebook. It should have a green check mark.
    7. Then in your Audio system under the Enhancements tab, check the box for "disable all enhancments".
    If this does not resolve your issue, then I suggest reinstalling the audio software and driver Using Recovery Manager to Restore Software and Drivers (Windows 8).
    I hope this information helps, please let me know how it goes.
    Take care and have a great day!
    I worked on behalf of HP.

  • To use one SessionInfo for multiple frames

    how to use one SessionInfo for master frame and other frame the detail
    Thanks for your reply.

    You can instantiate the SessionInfo and other dataproducer objects in frame1 and bind them to controls in the first and second frames.
    If you plan to change/execute queries pass the sessionInfo instance to the second frame.
    Hope this helps.
    Sathish
    null

  • OIM 11g R1 - Container for Roles

    Hi,
    is it possible to create container for roles?
    For Example:
    Container1: RoleA, RoleB, RoleC
    Container2: RoleV, RoleY, RoleZ
    The reason is, i want to create authorization policies, which allows the user to assign specials roles. The problem is, that a lot of roles will be added during the operation. This means, if a new role will be created, i have to edit the authorization policy
    The best way is, i assign a Role-Container to the authorization policy. If i create a new role, i add the role to the special container.
    Is this possible in OIM 11g R1?
    Edited by: 960944 on Apr 3, 2013 5:18 AM

    Yes, you can do that using authorization policy.
    Try this:
    Create a Role called 'X'
    Create a Authorization Policy of Role Management Entity Type called 'X Role Authz Policy' and under the Permission tab:
    Grant Modify Role Membership, Search for ROle, View Role Detail and View Role Membership
    Under Data Constraints: Add all the roles that a user can self assign except SYS ADMIN role.
    Under Assignemnt: Add Role 'X'
    Save and apply to test it.
    You can have a look at the default Role Management All Users Policy for reference.
    Regards,
    Sunny

  • Error during gen of subscren container for screens [BP sales,shipping data]

    Hi,
    during the intial download from ECC to CRM ,sales,shipping data is not comming with BP.
    i found one solution for this problm through BUSP transaction to genarate subscrenn container for screens.
    I have genarated everything .But it throws error.
    The error message is
    "Client 101 appl.object BUPA screen $00001:Error during subscreen container gener
    Message no. R11520
    Diagnosis
    Errors have occurred during screen generation. The reasons for this could be:
    The maximum length of the screen was exceeded. There may be no more than 199 lines per subscreen container.
    The maximum number of lines for the header-data area was exceeded. There may be no more than 15 lines in the header-data section.
    Procedure
    Check both of these potential sources of errors in the relevant screen, and make the necessary changes."
    Plz anyone help me to solve this problem.
    regards
    geetha.g

    Hi,
    Even i am facing similar problem like this..
    in my case,
    its working in one clinet and its not able to regenerate successfullu in another client.
    its showing the same above error.
    I tried removing the error by running the report  BDT_VCT_CORR_001 and again generating the screens... but it was of no use..
    can any one sugesst me some other points
    with regards,
    Sumanth

  • Urgent clearing data in container for free text

    I HAVE A CONTAINER FOR FREE TEXT.
    I HAVE A CREATE BUTTON IN MY SCREEN EWHEN I PRESS CREATE IT ASKD FOR ID AND FREE TEXT THEN I SAVE  AND IT GETS SAVED IN A ZTALE TABLE.
    WHEN AFTER SAVING IT I GO TO INITIAL SCREEN AND PRESS CREATE AGAIN THEN IT ASKS FOR ID AND IN THE CONTAINER I SEE THE FPREVIOUS TEXT.
    CAN YOU GUYS LET ME KNOW AS TO WHAT I NEED TO DO.
    I TREID CLEARING AND REFRESHING MYTABLE WHICH I HAVE USED IN THE FOLLOWING CODE.
    pbo
    if editor is initial.
    CREATE OBJECT TEXTEDIT_CUSTOM_CONTAINER
    EXPORTING
    CONTAINER_NAME = 'TEXTEDITOR1'
    EXCEPTIONS
    CNTL_ERROR = 1
    CNTL_SYSTEM_ERROR = 2
    CREATE_ERROR = 3
    LIFETIME_ERROR = 4
    LIFETIME_DYNPRO_DYNPRO_LINK = 5.
    IF SY-SUBRC NE 0.
    add your handling
    ENDIF.
    CREATE OBJECT EDITOR
    EXPORTING
    PARENT = TEXTEDIT_CUSTOM_CONTAINER
    WORDWRAP_MODE = CL_GUI_TEXTEDIT=>WORDWRAP_AT_FIXED_POSITION
    WORDWRAP_TO_LINEBREAK_MODE = CL_GUI_TEXTEDIT=>FALSE
    EXCEPTIONS
    OTHERS = 1.
    refresh mytable.
    call METHOD editor->SET_TOOLBAR_MODE
    EXPORTING TOOLBAR_MODE = 0.
    *call METHOD editor->SET_ENABLE
    *EXPORTING ENABLE = ' '.
    CALL METHOD editor->set_readonly_mode
    EXPORTING
    readonly_mode = 1.
    ENDIF.
    CLEAR MYTABLE.
    FREE MYTABLE.
    endif.
    IF SY-SUBRC NE 0.
    CALL FUNCTION 'POPUP_TO_INFORM'
    EXPORTING
    TITEL = V_REPID "--> program name
    TXT2 = SPACE
    TXT1 = 'Error in flush'.
    ENDIF.
    tHANKS
    let me know
    swathi

    For example, this program works really well with saving long text using the SAVE_TEXT function.  Here you need to create the object/id in SE75.  For this program you enter the id on the right like 999999 and enter the text on the left, execute and the text is saved, now change the id to 999998 and hit enter, notice the text is blank, now enter 999999 again, notice the text for this id has come back,  this is because the program uses READ_TEXT to retrieve the text.
    report zrich_0001.
    data:
          dockingleft  type ref to cl_gui_docking_container,
          text_editor    type ref to cl_gui_textedit,
          repid type syrepid.
    data: begin of header.
            include structure thead.
    data: end of header.
    data: begin of lines occurs 0.
            include structure tline.
    data: end of lines.
    data: textlines type table of tline-tdline,
          wa_text type tline-tdline.
    data: xthead type thead.
    parameters: p_id(10) type c.
    at selection-screen.
      if p_id is initial.
        message e001(00) with 'Enter an ID'.
      endif.
    at selection-screen output.
      repid = sy-repid.
      if dockingleft is initial.
        create object dockingleft
                    exporting repid     = repid
                              dynnr     = sy-dynnr
                              side      = dockingleft->dock_at_left
                              extension = 300.
        create object text_editor
                    exporting
                         parent     = dockingleft.
      endif.
      if p_id <> space.
        xthead-tdobject = 'ZPT_DET'.
        xthead-tdid     = 'Z001'.
        xthead-tdname = p_id.
        clear lines. refresh lines.
        call function 'READ_TEXT'
          exporting
            id                            = xthead-tdid
            language                      = sy-langu
            name                          = xthead-tdname
            object                        = xthead-tdobject
          tables
            lines                         = lines
         exceptions
           id                            = 1
           language                      = 2
           name                          = 3
           not_found                     = 4
           object                        = 5
           reference_check               = 6
           wrong_access_to_archive       = 7
           others                        = 8.
        clear textlines.
        loop at lines.
          wa_text = lines-tdline.
          append wa_text to textlines.
        endloop.
      endif.
      call method text_editor->set_text_as_r3table
         exporting
               table              = textlines
         exceptions
               others             = 1.
    start-of-selection.
      call method text_editor->get_text_as_r3table
         importing
               table              = textlines
         exceptions
               others             = 1.
    * Set SAPscript Header
      clear header.
      header-tdname =  p_id .         "Name
      header-tdobject = 'ZPT_DET'.       "Object
      header-tdid = 'Z001'.              "Id
      header-tdspras = sy-langu.
    * Move text from container to function module table
      clear  lines.  refresh lines.
      loop at textlines into wa_text .
        lines-tdline = wa_text.
        append lines .
      endloop.
      call function 'SAVE_TEXT'
           exporting
                client   = sy-mandt
                header   = header
           tables
                lines    = lines
           exceptions
                id       = 1
                language = 2
                name     = 3
                object   = 4
                others   = 5.
    Yes, this is implemented using a selection screen, but the same principals apply and this can  be easily converted to a dynpro application.
    Regards,
    Rich Heilman

  • PDF as a container for PDF files

    I have seen some PDF files that appear to be acting as a container for other PDF files. For example, the PDF Reference and Related Documentation ("pdf_reference.pdf") contains "pdf_reference.pdf", "pdf_reference_addendum_redaction.pdf" and a couple of other pdf files. I am new to the PDF specification and cannot find the section of the format specification that explains how this is done. Are these just embedded files? It seems like they are being handled differently as they are shown in an index when the parent PDF is displayed.

    b About Collections (PDF packages).
    Beginning with PDF 1.7, PDF documents can specify how a viewer applications user interface presents collections of file attachments, where the attachments are related in structure or content. Such a presentation is called a portable collection. The intent of portable collections is to present, sort, and search collections of related documents, such as email archives, photo collections, and engineering bid sets. There is no requirement that files in a collection have an implicit relationship or even a similarity; however, showing differentiating characteristics of related documents can be helpful for document navigation.
    Attachment annotations typically represent files that are embedded in the PDF document.
    For more information, see section 3.10.5 "Collection Items" on page 189 and section 8.2.4, "Collections" on page 588 in the PDF Reference, version 1.7. This reference is available from
    www.adobe.com/go/acrobatsdk_pdf_reference

  • Container for alert category could not be loaded

    Hi All,
    I am having very strange issue with container(Variables).
    I defined Alert category, created container elements and I was using them in long and short text. They were working fine, but now if I open Alert category and click on container tab, its says: Container for alert category could not be loaded and I dont see container elements that I created before. Same thing happened before and I re-created those container variables. But now I have many Alert categories. Is this an existing issue? or does any body having similar situaltion? Can anybody please provide information on this.
    Thank you,
    Indrasena

    Hi Moorthy,
    Thanks for your quick reply . We are on WAS 6.40,SP16, but SAP note 656488 is released on 01.09.2003 for 620, it should have been implemented alreay. Do you think we still need to implement that???
    Thank you,
    Indrasena

  • Top Organization Classification as a Container for All Employees

    Hi All,
    I hope someone will be able to help me on this.
    From what I gathered in Oracle Documentation, the Employer is represented in HRMS as an enterprise structure and the Business Group is the highest Organization classification that serves as a container for all Organizations, Employees and other objects within it.
    However, I observed an Organization Classification "Employer" in the Define Organizations Screen.
    Does this mean that in fact the organization classification of the topmost organization in Oracle HRMS that serves as the container for ALL of the employees, is in the fact the "Employer" Organization Classification?
    Thks
    Ravi

    To determine the purpose and use of each organization you create, you give it one or more classifications. The setup information you enter for an organization depends in large part on its classification.
    Question : Does this mean that in fact the organization classification of the topmost organization in Oracle HRMS that serves as the container for ALL of the employees, is in the fact the "Employer" Organization Classification?
    No, organization classification of the topmost organization in Oracle HRMS that serves as the container should be "Business Group" Organization Classification.
    Thanks

  • How can i add one field in the container for the standard task-90310004?

    Hi,
    Please let me know thw steps to add one field in the container for the standard task-90310004.
    Usefull suggestions will be rewarded.
    Regards,
    Neslin.

    <b>Hi,
    Containers are used for holding Application data for Workflow purposes.
    Event container
    Task container
    Workflow container
    Role container
    Binding is the linking of data from one container to the other for making data available all across the workflow.
    But you can get values from one container to another container like this
    Container(Con)
    1. WF Con to Role, Wf con to task con, Wf con to event
    and
    2. Event con to wf con, task con to wof con
    and
    3. Method con to task con
    and
    4. Task con to method con
    So, we don't have direct possible binding from task con to task con.
    Thanks and Regards,
    Prabhakar Dharmala</b>
    Message was edited by:
            Prabhakar Dharmala
        But you can do pass values from first task con to wf con and again from wf con to another task con

Maybe you are looking for