MDG-F Index Icon

Hello,
From an SAP issued MDG-F 7.0 Ramp Up document, I find out that there is a Index icon appearing on the upper left corner of screen which seems to allow end user to quickly jump back into the MDG-F main selection screen while end user is in the middle of something. Below please see the screenshot to where this Index icon is pointed.
Currently I first call up T code NWBC in an ECC client and it then takes me to MDG-F main selection screen. However if I decided to come out, I am then forced to get back in ECC and to get back in MDG-F main selection screen, i have to call transaction NWBC again.
I want to see this Index icon appearing on my screen. How can I make it?
Thanks,
LUO

Hi all,
Is there a way to go to Home Page for all roles, while we are in actual
transactional pages in Business Client?
How to navigate to NWBC Home page with roles”? Currently for example if we are in role “SAP_MDGF_ACC_MENU_04” and if we want to move to other role as
“SAP_MDGF_CO_MENU_04” – as of now we have close Business client window for
SAP_MDGF_ACC_MENU_04 and again go to ECC to type NWBC to bring in main window and then select SAP_MDGF_CO_MENU_04.
Is there a way or short cut to navigate between roles?

Similar Messages

  • Unable to Create database index

    Hello All,
    I have a table where I'm trying to define indexes.
    I make the additional entry for indexes via SE11.
    Call transaction SE11.
    Enter the table ..
    Choose "Change".
    Choose "Indexes ...".
    Choose the "Create Index" icon and enter the table name and the index name.
    However when I goto SE14 to create in the database,  ->
    Choose "Edit".
    Choose "Indexes ...".
    Select the index.
    Choose continue.
    -> Select 'Background' as the processing type.
      > Choose "Create database index".
    Here, I'm unable to te database index just because it is grayed out.
    I tried with user DDIC also.
    Can any one help with the reason that I am unable to create it.
    Thanks a lot in advance.
    Regards,
    Pradeep

    Hello Pradeep,
    Steps to create an Index
    1. Goto SE11
    2. Enter table name and F6(Change)
    3. Select "Indexes" from the Application Tool bar
    4. Select "Create Index" Option
    5. Select one option
            "Non-Unique index"
    or
            "Unique Index"
    In case of a Non-Unique Index, you can use the radio buttons to define whether the index should be created for all database systems, for selected database systems or not at all in the database.
    Check the proper Type of the Index in SE11 again. This should solve your problem.
    Regards,
    Subrahmanya P

  • How to add icons to JTabbedPane?

    hi, how to add an icon on each tabbed in JTabbedPane?

    Use JTabbedPane's setIconAt(...) method tabPane.setIconAt(int index, Icon icon) Please read the API a little more carefully.
    ICE

  • Change tab icon when you clicked

    is it possibleto change the icon of a tab in a JTabbedPane when it is selected ??
    and if so how can we do it??
    Thanks

    is it possibleto change the icon of a tab in a JTabbedPane when it is selected ??yes, it is
    and if so how can we do it??With JTabbedPane's setIconAt(int index, Icon icon) method
    Thanksthere you go!

  • Contents/Index/Search/Glossary toolbar

    The Contents/Index/Search/Glossary toolbar in my WebHelp
    project only displays the text for one tab at a time.
    For example, by default the project opens with the Contents
    tab displayed. You can see the word "Contents" with the blue
    background. However, for the rest of the tabs, you can only see the
    icons on a white background. If you click on an icon, for example,
    the Index icon, then the word "Index" and blue background display.
    I want all the tabs to display with their words and on a blue
    background at the same time. Can any of you help me? Thanks!

    Welcome to the forum.
    If you are using a skin, it is as simple as double clicking
    the skin and setting the colours and text to what you want.
    As described, there will no difference between the tab with
    focus and the other tabs. Some small difference does assist
    usability.

  • Dreamweaver crashed now all dw html icons faded out

    Help!
    My Dreamweaver (cs3)  crashed and when I opened up the folder to click on the  html index  icon of a project I am working on it changes to a faded folder icon!!! This is happening in all the dreamweaver projects I try and open! The dreamweaver icon shows for a second then changes to a faded folder icon. Gawd 'elp me!!
    Any help greatly appreciated.
    M

    Try some of the suggestions in the FAQ esp. deleting your config folder:
    http://forums.adobe.com/thread/429114

  • Update Jcombobox 's label in render

    hi ,everybody, i have a problem about combobox, any body can help me!
    thank you!
    I want to have a combobox with checkbox as item, I rewrite a render writen by ice, because the combobox has three state, when I click diferent checkbox in this combobox , the label of combobox will update rightly, but if I click one checkbox to change the checkbox state ,the label will no update , it seem that when I click one checkbox many times .the menthod
    getListCellRendererComponent(JList list, Object value, int index,
                        boolean isSelected, boolean cellHasFocus)
    will no update label
    my code :
    mainclass:
    import java.awt.BorderLayout;
    import java.awt.Component;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.util.Iterator;
    import java.util.Vector;
    import javax.swing.DefaultListCellRenderer;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JList;
    import javax.swing.JPanel;
    import javax.swing.plaf.basic.BasicComboBoxEditor;
    public class mainclass {
          public static void main(String[] args) {
                 final testbox myComboBox = new testbox();
                 myComboBox.addItem("SelectAll");
                 myComboBox.addItem("ClearAll");
                 myComboBox.addItem("GrayedAll");
                 for(int i = 0; i < 5; i++) {
                     myComboBox.addItem("Item " + i);
                 JFrame frame = new JFrame("My ComboBox");
                 frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
                 frame.setSize(150, 60);
                 frame.setLocation(300, 300);
                 //frame.setJMenuBar( menubar );
                 JPanel panel=new JPanel();
                 panel.setLayout(new BorderLayout());
                 panel.add(myComboBox,BorderLayout.NORTH);        
                 frame.getContentPane().add(panel);
                 frame.setVisible(true);
                 final IconedCellRendererField renderer = IconedCellRendererField.getCheckBoxRendererInstance();
                 myComboBox.setRenderer(renderer);
                 myComboBox.addActionListener(new ActionListener()
                     public void actionPerformed(ActionEvent e)
                          if(myComboBox.getSelectedItem().toString().equals("SelectAll")){
                               renderer.selectAll(true);                         
                          if(myComboBox.getSelectedItem().toString().equals("ClearAll")){
                               renderer.clearAll(true);
                          if(myComboBox.getSelectedItem().toString().equals("GrayedAll")){
                               renderer.grayedAll(true);
    }renderer:
    import java.awt.*;
    import java.awt.event.*;
    //import java.io.*;
    //import java.net.*;
    import java.util.*;
    import javax.swing.*;
    //import javax.swing.event.*;
    import javax.swing.border.*;
    //import javax.swing.table.*;
    public class IconedCellRendererField extends DefaultListCellRenderer implements MouseListener {
         public Icon icon, selIcon;
         Icon[] icons = null;
         public boolean useIconBackground = true, useIndexSensitiveIcons = false,
                   useCheckBoxAsIcon = false, useLinkState = false;
         Dimension labelDim = null;
         public JLabel iconLabel;
         public JCheckBox box = null;
         public JPanel noback;
         public SelectionStateHandler selStateHandler = null;     
         private JList theList = null;
         public boolean[] selState = null, enableState = null;
         int offset = 5;
         Rectangle rect = null;
         int currentLinkRow = -1;
         boolean isOnRow = false, paintDivider = false;
         private Icon dividerImage = null;     
         private Color linkColor = Color.blue, hoverColor = Color.red, selectedLinkColor = Color.green;
         /* Initialises the renderer with one icon that is displayed without the
          * cell background.
         public IconedCellRendererField(Icon icon) {
              this(icon,false);
         /* Initialises the renderer with two icons that provide a switch capability
          * when a row is selected/deselected
         public IconedCellRendererField(Icon icon, Icon selIcon) {
              this.icon = icon;
              this.selIcon = selIcon;
              //addMouseListener(this);
         /* Initialises the renderer with two icons that provide a switch capability
          * when a row is selected/deselected. The boolean argument enables the icon
          * to either use the renderer background or appear transparent.
         public IconedCellRendererField(Icon icon, Icon selIcon, boolean useIconBackground) {
              this(icon, selIcon);
              setIconHasBackground(useIconBackground);
              createNoBackgroundPanel();
         /* Initialises the renderer with a single no siwthing icon. The boolean
          * argument enables the icon to either use the renderer background
          * or appear transparent.
         public IconedCellRendererField(Icon icon, boolean useIconBackground) {
              this(icon, icon, useIconBackground);
         /* Initialises the renderer to load two icons from the provided image locations.
          * This enables icon switching on selection.
         public IconedCellRendererField(String iconLoc, String selIconLoc) {
              icon = new ImageIcon(iconLoc);
              selIcon = new ImageIcon(selIconLoc);
              //addMouseListener(this);
         /* Initialises the renderer to load a single icon from the provided image location.
          * The icon can either have the renderer background or not based on the
          * boolean property.
         public IconedCellRendererField(String iconLoc, boolean iconBackground) {
              this(iconLoc, iconLoc, iconBackground);
         /* Initialises the renderer to load two icons from the provided image locations.
          * This enables icon switching on selection. The icon can either have the renderer
          * background or not based on the boolean property.
         public IconedCellRendererField(String iconLoc, String selIconLoc, boolean iconBackground) {
              this(iconLoc, selIconLoc);
              setIconHasBackground(iconBackground);
              createNoBackgroundPanel();
         /* Initialises the renderer to load a single icon from the provided image location.
         public IconedCellRendererField(String iconLoc) {
              this(iconLoc, true);
         /* Initialises the renderer with an array of image icons that are repeated for
          * each row in the list.
         public IconedCellRendererField(Icon[] icons, boolean useIconBackground) {
              this(icons[0], icons[0], useIconBackground);
         public void createNoBackgroundPanel() {
              iconLabel = new JLabel((Icon)null, JLabel.CENTER);
              if(labelDim != null) {      iconLabel.setPreferredSize(labelDim); }
              iconLabel.setBorder( new EmptyBorder(1,5,1,5) );
              noback = new JPanel( new BorderLayout() ) {
                  * Overridden for performance reasons.
                  * See the <a href="#override">Implementation Note</a>
                  * for more information.
                  //public void validate() {}
                 // public void invalidate() {}          
                  public void repaint() {}
                  //public void revalidate() {}
                  public void repaint(long tm, int x, int y, int width, int height) {}
                  public void repaint(Rectangle r) {}
                  protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) {
                        // Strings get interned...
                        if (propertyName == "text"
                                   || ((propertyName == "font" || propertyName == "foreground")
                                       && oldValue != newValue)) {
                            super.firePropertyChange(propertyName, oldValue, newValue);
                  public void firePropertyChange(String propertyName, byte oldValue, byte newValue) {}
                  public void firePropertyChange(String propertyName, char oldValue, char newValue) {}
                  public void firePropertyChange(String propertyName, short oldValue, short newValue) {}
                  public void firePropertyChange(String propertyName, int oldValue, int newValue) {}
                  public void firePropertyChange(String propertyName, long oldValue, long newValue) {}
                  public void firePropertyChange(String propertyName, float oldValue, float newValue) {}
                  public void firePropertyChange(String propertyName, double oldValue, double newValue) {}
                  public void firePropertyChange(String propertyName, boolean oldValue, boolean newValue) {}
              if(useCheckBoxAsIcon()) {
                   box = new JCheckBox();
                   //box.addMouseListener(this);
                   box.setOpaque(false);
                   noback.add( box, BorderLayout.WEST );
                   //noback.addMouseListener(this);
                   rect = box.getBounds();
                   //list.addMouseListener(this);
              } else {
                   noback.add( iconLabel, BorderLayout.WEST );
              noback.add( this, BorderLayout.CENTER );
              noback.setBorder( new EmptyBorder(1,1,1,1) );
              noback.setOpaque(false);
         public Component getListCellRendererComponent(JList list, Object value, int index,
                        boolean isSelected, boolean cellHasFocus) {
              System.out.println(value+"+"+index+"+"+isSelected+"+"+cellHasFocus);
              if(theList == null || theList != list) {
                   theList = list;
                   if(useLinkState) {
                        attachLinkSimulationListener();
              setOpaque(true);
              setText( value == null ? "" : value.toString());
              if(useIndexSensitiveIcons) {
                   icon = getIcon(index);
              if(useIconBackground)
                   setIcon(icon);          
              setFont( list.getFont() );
              setToolTipText(value.toString() );
              if(list.isEnabled())
                   setEnabled( isEnabled(index) );
              else
                   setEnabled( list.isEnabled() );
              if(isSelected && isEnabled(index) ) {
                   setForeground( Color.black );
                   setBackground( new Color(223, 235, 245) );
                   if(useIndexSensitiveIcons) {
                        selIcon = getIcon(index);
                   if(useIconBackground)
                        setIcon(selIcon);
              } else {
                   setForeground(Color.black);
                   setBackground(Color.white);
                   setBorder(null);
              if(cellHasFocus) {
                   setBorder( new CompoundBorder( new LineBorder( new Color(150, 150, 220) ),
                                                      new EmptyBorder(2,2,2,2)  ) );
              } else {
                   setBorder( new EmptyBorder(2,2,2,2));
              if(useLinkState) {
                   if(currentLinkRow == index) {
                        setText("<html><u>" + value.toString()+"</u></html>" );     
                        setForeground( getHoverLinkColor() );               
                   } else {
                        setForeground( getLinkColor() );
                   if(isSelected) {
                        setForeground( getSelectedLinkColor() );
                   setBackground(Color.white);
                   setBorder( new EmptyBorder(1,1,1,1) );
              if( shdPaintDivider() ) {
                   Border border = null;
                   if(dividerImage != null) {
                        border = new MatteBorder(0,0,1,0, dividerImage);
                   } else {
                        border = new MatteBorder(0,0,1,0, getLinkColor() );
                   if(index < theList.getModel().getSize() - 1 ) {
                        setBorder( new CompoundBorder(getBorder(),border) );
                   } else {
                        setBorder( new EmptyBorder(1,1,1,1) );
              if(useIconBackground == false) {
                  if(isSelected)
                      iconLabel.setIcon(selIcon);
                  else
                      iconLabel.setIcon(icon);
                  if(useCheckBoxAsIcon()) {
                      if(selState == null) {
                          updateSelectionStateTrackers(list);
                      if(selStateHandler == null) {
                          list.addMouseListener( selStateHandler = new SelectionStateHandler(list) );
                      try {
                          box.setSelected( selState[index] );
                      } catch(Exception e) {}
                  if( shdPaintDivider() ) {              
                      //if(index < theList.getModel().getSize() - 1 ) {
                          noback.setBorder( getBorder() );
                          setBorder( new EmptyBorder(1,1,1,1) );
                      //} else {
                      //  noback.get
                  // this should cause a JComboBox to paint the Label instead of the
                  // check box + label combination
                  if(index == -1) {
                       Vector<Object> v=new Vector<Object>();
                       v=getSelectedObjects();
                        String val=generateString();
                       JLabel label=new JLabel(val);                    
                      if(iconLabel.getIcon() != null) {
                           label.setIcon( iconLabel.getIcon() );
                      System.out.println("label");
                      return label;
                  return noback;
              return this;
         public String generateString()
              String val = "";
              if(selState[0]==true&&selState[1]==false&&selState[2]==false){
                    for(int i = 3; i < theList.getModel().getSize(); i++) {
                           String curString=theList.getModel().getElementAt(i).toString();
                           if(val.length()==0){
                                  val=val+curString+"-1";
                           } else {                              
                                  val=val+"&"+curString+"-1";
               //clear all     
               if(selState[1]==true&&selState[0]==false&&selState[2]==false ){                                   
                      for(int i = 3; i < theList.getModel().getSize(); i++) {
                           String curString=theList.getModel().getElementAt(i).toString();
                           if(val.length()==0){
                                  val=val+curString+"-0";
                           } else {                              
                                  val=val+"&"+curString+"-0";
              //grayedall
               if(selState[2]==true&&selState[0]==false&&selState[1]==false ){                                   
                      val="";                      
               if(selState[0]==false&&selState[1]==false&&selState[2]==false ){
                    for(int i = 3; i < theList.getModel().getSize(); i++) {
                           String curString=theList.getModel().getElementAt(i).toString();
                           if(selState==true&&enableState[i]==false){
                             continue;
                        if(selState[i]==true&&enableState[i]==true){
                             if(val.length()==0){
                                       val=val+curString+"-1";
                             } else {                              
                                       val=val+"&"+curString+"-1";
                        if(selState[i]==false&&enableState[i]==true){
                             if(val.length()==0){
                                       val=val+curString+"-0";
                             } else {                              
                                       val=val+"&"+curString+"-0";
              return val;
         public void updateSelectionStateTrackers(JList list) {
              selState = new boolean[ list.getModel().getSize() ];
              enableState = new boolean[ list.getModel().getSize() ];
              for(int i = 0; i < selState.length; i++) {
                   selState[i] = false;
                   enableState[i] = true;
         public int[] getSelectedIndices() {
              if(!useCheckBoxAsIcon()) {
                   return new int[0];
              int length = 0;
              if(selState==null){
                   return null;
              for(int i = 0; i < selState.length; i++) {
                   if(selState[i]) {
                        length++;
              int[] indices = new int[length];
              for(int i = 0, n = 0; i < selState.length; i++) {
                   if(selState[i]) {
                        indices[n++] = i;
              //System.out.println("Selected Indices.length = " + indices.length);
              return indices;
         public Vector<Object> getSelectedObjects() {
              int[] indices = getSelectedIndices();
              Vector<Object> objects = new Vector<Object>();
              if(indices==null){
                   return null;
              for(int i = 0; i < indices.length; i++) {
                   objects.addElement( theList.getModel().getElementAt(indices[i]) );
              return objects;
         public void setIconHasBackground(boolean b) {
              useIconBackground = b;
         public Icon[] getIcons() {
              return icons;
         public Icon getIcon(int index) {
              if(icons != null && icons.length == 0) {
                   return icon;
              if(icons != null && index > icons.length) {
                   index = index - (icons.length - 1);
              return icons[index];
         public void setIcons(Icon[] icons) {
              if(icons != null) {
                   useIndexSensitiveIcons = true;
              this.icons = icons;
         public void setIcon(Icon icon, int index) {
              if(icons != null && icons.length > 0) {
                   icons[index] = icon;
         public void setIconLabelDimension(Dimension dim) {
              labelDim = dim;
         public static IconedCellRendererField getCheckBoxRendererInstance() {
              IconedCellRendererField cr = new IconedCellRendererField(new EmptyIcon());
                   cr.setUseCheckBoxAsIcon(true);
              return cr;
         public void setUseCheckBoxAsIcon(boolean use) {
              useCheckBoxAsIcon = use;
              createNoBackgroundPanel();
         public boolean useCheckBoxAsIcon() {
              return useCheckBoxAsIcon;
         public void paintComponent(Graphics g) {
              super.paintComponent(g);
         public void setDisplayItemsAsLinks(boolean use) {
              useLinkState = use;
         public void setLinkColor(Color color) {
              linkColor = color;
              if(theList != null) {
                   theList.repaint();
         public Color getLinkColor() {
              return linkColor;
         public void setHoverLinkColor(Color color) {
              hoverColor = color;
              if(theList != null) {
                   theList.repaint();
         public Color getHoverLinkColor() {
              return hoverColor;
         public void setSelectedLinkColor(Color color) {
              selectedLinkColor = color;
              if(theList != null) {
                   theList.repaint();
         public Color getSelectedLinkColor() {
              return selectedLinkColor;
         public void attachLinkSimulationListener() {
              theList.setCursor( Cursor.getPredefinedCursor(Cursor.HAND_CURSOR) );
              theList.addMouseListener( new MouseAdapter() {
                   public void mouseEntered(MouseEvent e) {
                        isOnRow = true;                    
                   public void mouseExited(MouseEvent e) {
                        isOnRow = false;
    currentLinkRow = -1;
    theList.repaint();
              theList.addMouseMotionListener( new MouseMotionAdapter() {
                   public void mouseMoved(MouseEvent e) {
    isOnRow = true;
    currentLinkRow = theList.locationToIndex( e.getPoint() );
    theList.repaint();
              /*table.addMouseListener(new MouseAdapter() {
    public void mouseEntered(MouseEvent e) {
    public void mouseExited(MouseEvent e) {
    isOnRow = false;
    currentHighlightRow = -1;
    table.repaint();
    table.addMouseMotionListener( new MouseMotionAdapter() {
    public void mouseMoved(MouseEvent e) {
    isOnRow = true;
    currentHighlightRow = table.rowAtPoint( e.getPoint() );
    table.repaint();
         public boolean shdPaintDivider() {
              return paintDivider;
         public void setPaintDivider(boolean paintDivider) {
              this.paintDivider = paintDivider;
         public void setDividerImage(Icon icon) {
              this.dividerImage = icon;
              setPaintDivider(true);
         private void dispatchEvent(MouseEvent me) {
    if(rect != null && box != null && rect.contains(me.getX(), me.getY())){
    Point pt = me.getPoint();
    pt.translate(0,0);
    box.setBounds(rect);
    box.dispatchEvent(new MouseEvent(box, me.getID()
    , me.getWhen(), me.getModifiers()
    , pt.x, pt.y, me.getClickCount()
    , me.isPopupTrigger(), me.getButton()));
    if(!box.isValid()) {
         repaint();
         System.out.println("Dispatch Event: Box.invalid called");
    System.out.println("Dispatch Event called");
    } else {
         System.out.println("Dispatch Event Called, rect null");
    public void mouseClicked(MouseEvent me){
    dispatchEvent(me);
    public void mouseEntered(MouseEvent me){
    dispatchEvent(me);
    public void mouseExited(MouseEvent me){
    dispatchEvent(me);
    public void mousePressed(MouseEvent me){
    dispatchEvent(me);
    public void mouseReleased(MouseEvent me){
    dispatchEvent(me);
    public class SelectionStateHandler extends MouseAdapter {
         JList list = null;
         public SelectionStateHandler(JList list) {
              this.list = list;
         public void mouseClicked(MouseEvent e)
              * Handles the checkbox selection process. Uses the bounds property of the
              * check box within the selected cell to determine whether the checkbox should
              * be selected or not
              public void mouseReleased(MouseEvent e) {
                   /*if(list == null || list.getSelectedIndex() == -1
         || !isEnabled( list.locationToIndex(e.getPoint()) ) ) {
         return;
              if(list == null || list.getSelectedIndex() == -1){
                   return;
         int[] indices = list.getSelectedIndices();
         // get the current relative position of the check box
         //rect = box.getBounds(rect);
         for(int i = 0; i < indices.length; i++) {
         // get the current relative position of the check box
         int loc = list.locationToIndex( e.getPoint() );
         rect = list.getCellBounds(loc,loc);
         // ensure the point clicked in within the checkBox
         if(e.getX() < (rect.getX() + 20) ) {
              Object obj=list.getModel().getElementAt(i);
              //if(!obj.equals("SelectAll")&&!obj.equals("ClearAll")&&!obj.equals("GrayedAll")){
                   if(indices[i]>2){
                        selState[0]=false;
                        selState[1]=false;
                        selState[2]=false;
                        //����
                        if(!this.isEnabled(indices[i])&&selState[indices[i]]==true){
                             this.setEnabled(indices[i],true);
                             selState[indices[i]]=false;
                        } else if(this.isEnabled(indices[i])&&selState[indices[i]]==true){
                             //����
                             selState[indices[i]]=true;
                             this.setEnabled(indices[i],false);                              
                        }else if(this.isEnabled(indices[i])&&selState[indices[i]]==false){
                             //����
                             selState[indices[i]]=true;
                             this.setEnabled(indices[i],true);
                   } else {
                        selState[indices[i]] = !selState[indices[i]];
         list.revalidate();
         list.repaint();
         public void selectAll(boolean b) {
              for(int i = 0; i < list.getModel().getSize(); i++) {
                   try {
                        this.enableAll(true);
                        Object obj=list.getModel().getElementAt(i);
                        if(!obj.equals("ClearAll")&&!obj.equals("GrayedAll")){
                             selState[i] = b;
                        } else{
                             selState[i]=!b;
                        selState[0]=false;
                   } catch(ArrayIndexOutOfBoundsException aie) {
                        updateSelectionStateTrackers(list);
                        selectAll(b);
                        return;
              if(list != null) {
                   list.revalidate();
                   list.repaint();
         public void clearAll(boolean b){
              for(int i = 0; i < list.getModel().getSize(); i++) {
                   try {
                        Object obj=list.getModel().getElementAt(i);
                        this.enableAll(true);
                        if(!obj.equals("ClearAll")){
                             selState[i] = !b;
                        } else{
                             selState[i]=b;
                        selState[1]=false;
                   } catch(ArrayIndexOutOfBoundsException aie) {
                        updateSelectionStateTrackers(list);
                        selectAll(b);
                        return;
              if(list != null) {
                   list.revalidate();
                   list.repaint();
         public void grayedAll(boolean b){
              for(int i = 0; i < list.getModel().getSize(); i++) {
                   try {
                        Object obj=list.getModel().getElementAt(i);
                        if(!obj.equals("SelectAll")&&!obj.equals("ClearAll")){
                             if(i==2){
                                  selState[i] = !b;
                             }else{                             
                                  selState[i] = b;
                             this.setEnabled(i,false);
                        } else{
                             selState[i]=!b;                          
                   } catch(ArrayIndexOutOfBoundsException aie) {
                        updateSelectionStateTrackers(list);
                        selectAll(b);
                        return;
              if(list != null) {
                   list.revalidate();
                   list.repaint();
         public void setSelectedIndex(int index) {
              for(int i = 0; i < list.getModel().getSize(); i++) {
                   selState[i] = false;
              selectIndex(index);
         public void selectIndex(int index) {
              try {
                   selState[index] = true;
              } catch(ArrayIndexOutOfBoundsException aie) {
                   updateSelectionStateTrackers(list);
                   selectIndex(index);
                   return;
              if(list != null) {
                   list.revalidate();
                   list.repaint();
         public void setEnabled(int index, boolean b) {
              try {
                   enableState[index] = b;
              } catch(ArrayIndexOutOfBoundsException aie) {
                   updateSelectionStateTrackers(list);
                   setEnabled(index, b);
         public boolean isEnabled(int index) {
              if(index == -1) {
                   return true;
              boolean isEnabled = true;
              try {
                   isEnabled = enableState[index];
              } catch(ArrayIndexOutOfBoundsException aie) {
                   updateSelectionStateTrackers(list);
                   return isEnabled(index);
              return isEnabled;
         public void enableAll(boolean b) {
              for(int i = 0; i < enableState.length; i++) {
                   enableState[i] = b;
    public void selectAll(boolean b) {
         if(selStateHandler == null) {
              return;
         selStateHandler.selectAll(b);
    public void clearAll(boolean b){
         if(selStateHandler == null) {
              return;
         selStateHandler.clearAll(b);
    public void grayedAll(boolean b){
         if(selStateHandler == null) {
              return;
         selStateHandler.grayedAll(b);
    public void setSelectedIndex(int index) {
         if(selStateHandler == null) {
              return;
         selStateHandler.setSelectedIndex(index);
    public void selectIndex(int index) {
         if(selStateHandler == null) {
              return;
         selStateHandler.selectIndex(index);
    public void enableAll(boolean b) {
         if(selStateHandler == null) {
              return;
         selStateHandler.enableAll(b);
    public void setEnabled(int index, boolean enable) {
         if(selStateHandler == null) {
              return;
         selStateHandler.setEnabled(index, enable);
    public boolean isEnabled(int index) {
         if(selStateHandler == null) {
              return true;
         return selStateHandler.isEnabled(index);
    public boolean isEnabledAll() {
         if(enableState == null) return true;
         for(int i = 0; i < enableState.length; i++) {
              if(!isEnabled(i)) {
                   return false;
         return true;
    // EmptyIcon implementation
    public static class EmptyIcon implements Icon {
         int width = 16, height = 16;
         public EmptyIcon() {
         setSize(16,16);
         public EmptyIcon(int width, int height) {
         setSize(width, height);
         public void setSize(int width, int height) {
         this.width = width;
         this.height = height;
         public int getIconWidth() {  return width; }
         public int getIconHeight() { return height; }
         public void paintIcon(Component c, Graphics g, int x, int y) {}
    public int getItemCount(){
         if(theList!=null){
              return theList.getModel().getSize();
         } else {
              return 0;
         public boolean[] getEnableState() {
              return enableState;
         public boolean[] getSelState() {
              return selState;
         public JList getTheList() {
              return theList;
    testbox :import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JFrame;
    import javax.swing.JComboBox;
    import javax.swing.JMenu;
    import javax.swing.JMenuBar;
    public class testbox extends JComboBox
    * @param args
    JComboBox myComboBox;
    public testbox()
    myComboBox = new JComboBox();
    public void setPopupVisible(boolean b)
         if(b)
              myComboBox.showPopup();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             

    You are updating the label value when (index == -1), let change into (index<=0).
    like below
    // this should cause a JComboBox to paint the Label instead of the
                // check box + label combination
                if (index <= 0) {
                    Vector v = new Vector();
                    v = getSelectedObjects();
                    String val = generateString();
                    JLabel label = new JLabel(val);
                    if (iconLabel.getIcon() != null) {
                        label.setIcon(iconLabel.getIcon());
                    System.out.println("label");
                    return label;
                }

  • IWeb '08 Album Issue

    I've placed the new IWeb '08 Albums page on my website (web.mac.com/geopence.) Yesterday it was working just fine, but today I accessed the site and both the "play slide show" and "subscribe" functions are no longer working. The "slide show", "subscibe" and "index" icons now all display a question mark and while the "index" icon does work, the "slide show" and "subscribe" icons do not. When you click on the "slide show" icon a page comes up that says, "Sorry, we can't find the IWeb page that you've requested." When the "subscribe" button is invoked up pops a page with html code.
    Anyone have an idea what's wrong?

    Hi Laura,
    I get a "The page can not be found" message clicking on both links.
    You might try to republish/re-upload the whole page
    A. If publishing to .mac go to File=>Publish All. Or try to publish to a folder and open it from there to see if it works.
    B. If publishing to a folder: do they work when opening from the folder? If so reupload everything.
    Regards,
    Cédric

  • Components getting cut off on resizing

    I have a custom panel that sits within a JViewport that sits within a JScrollPane. As I increase the size of the panel, the scrollbars allow me to scroll up and down to see the new area. However, anything I try to put in the area below the original 200 pixels is cut off, and I just scroll into a gray area. Any ideas on whats wrong and can be done?
    * Write a description of class DetailsPanel here.
    * @author (your name)
    * @version (a version number or a date)
    import javax.swing.JPanel;
    import java.awt.GridLayout;
    import java.awt.BorderLayout;
    import java.awt.Insets;
    import javax.swing.border.EtchedBorder;
    import java.awt.Dimension;
    import java.util.ArrayList;
    public class DetailsPanel extends JPanel
        final static int ICON_WIDTH     = 16;
        final static int MSGTABLE_WIDTH = 350;
    /*The original height. After increasing the height, I can still do things
    within the original area. Everything below it is cut off.*/
        final static int MSGTABLE_HEIGHT = 200;
        final static String check   = "check.jpg";
        final static String redx    = "redx.jpg";
        IconPanel iconPanel;
        JPanel textPanel;
        MessageTable textTable;
        GridLayout iconLayout;
        GridLayout textLayout;
        ArrayList<Icon> icons;
        Insets      insets;
        Dimension   size;
        int         rowHeight;
        public DetailsPanel()
            super();
            icons = new ArrayList<Icon>();
            textPanel = new JPanel();
            textTable = new MessageTable(0, new Dimension(MSGTABLE_WIDTH, MSGTABLE_HEIGHT));
            rowHeight = textTable.getRowHeight();
            iconPanel = new IconPanel(rowHeight, 1);
                iconPanel.setPreferredSize(new Dimension(ICON_WIDTH, 0));
                insets = iconPanel.getInsets();
            iconPanel.setLayout(null);
            textPanel.setLayout(new GridLayout(1, 1));
            textPanel.setBorder(new EtchedBorder(EtchedBorder.RAISED));
            setLayout(new BorderLayout());
            textPanel.add(textTable);
            add(iconPanel, BorderLayout.WEST);
            add(textPanel, BorderLayout.CENTER);  
        public void sizeToTable()
             Dimension tableDimension = new Dimension(MSGTABLE_WIDTH, (textTable.getRows()*rowHeight) + rowHeight);
                setPreferredSize(tableDimension);
        public int getRows()
            return textTable.getRows();
        public void setDetail(int index, String message, int icon)
            textTable.setValueAt(index, message);
            iconPanel.setIcon(index, icon);
            sizeToTable();
    }

    Maybe you should be using a JTable if you are adding dynamic data in a row/column format.
    The code you posted isn't executable. I don't understand your description of the problem and can't see the behaviour.
    If you need further help then you need to create a [url http://homepage1.nifty.com/algafield/sscce.html]Short, Self Contained, Compilable and Executable, Example Program (SSCCE) that demonstrates the incorrect behaviour, because I can't guess exactly what you are doing based on the information provided.
    And don't forget to use the [url http://forum.java.sun.com/help.jspa?sec=formatting]Code Formatting Tags so the code retains its original formatting.

  • Pagination on ADF DVT Bar graph

    Hi
    I am using ADF 11.1.1.5. I am trying to do pagination on dvt bar graph component. The pagination is like << 1 2 3 >>. The default range size in page definition is suppose 5.The things are working fine on all links except 2. I get 1-5 record on first link. On 3 its 11-15 and so on. But n 2 i get 1-5 only. I am using setRangeStart() and setRangeSize methd to get next record. If range size is 6 then on firsti get 1-6, on 3 its 13-18 but 2 doesn't works. The range is setting only from one place. So nothing seems wrong in code. Please suggest.
    Thanks

    Hi,
    the easiest way to build pagination in is
    1. Drag the bar graph onto a page
    2. On the PageDef file, change the RangeSize property to 5 (in your case)
    3. From the DataControl panel, drag and drop the NextSet and PreviousSet operations of the View Object
    4.Configure the af:graph PartialTriggers property to point to the two buttons
    5. Ensure the buttons have their PartialSubmit property set to "true"
    Its not identical to having index icons, but its declarative and works out of the box
    Frank

  • Squished JButtons

    I'm trying to make a JFrame that will cycle through several Images (VCR-like).
    I've tried various methods, all with the same basic results. The image comes up fine, but the 4 buttons (first, previous, next, last) are all squished at the bottom (should be 36x36 icons - gifs really - but are displaying as about 25x10) and are unreadable. They are coming up in the correct order and work properly, it's just impossible for the operator to know what they do without the icon.
    I've tried making a BorderLayout JPanel on the content pane, put the image in the CENTER and the 4 buttons in the SOUTH.
    I've tried making a BoxLayout JPanel (Y-Axis) on the content pane with the image added first and the button panel (built on a BoxLayout (X-Axis)) second.
    I've tried forcing the size of the buttons by setting the minimum size to the size of the GIF files.
    I've run out of ideas.
    Below is what I currently have, which builds the main panel with a BoxLayout in the Y-Axis then adds the image as a JLabel, builds another JPanel for the buttons (which is a BoxLayout in the X-Axis) which is added to the main panel.
    public class ImageReview
                 extends JFrame
       private int index = 0;
       private int numImages = 0;
       private ImageIcon[] images = null;
       private JLabel imageLabel = null;
       private JPanel mainPanel = null;
       private String FIRST_BUTTON = "firstArrowIcon.gif";
       private String PREV_BUTTON = "previousArrowIcon.gif";
       private String NEXT_BUTTON = "nextArrowIcon.gif";
       private String LAST_BUTTON = "lastArrowIcon.gif";
       public ImageReview (ImageIcon[] images)
          super ("Image Review");
          setSize (640, 550);
          Container contentPane = getContentPane();
          mainPanel = new JPanel ();
          mainPanel.setLayout (new BoxLayout (mainPanel, BoxLayout.Y_AXIS));
          numImages = images.length;
          this.images = new ImageIcon[numImages];
          for (int i=0 ; i<numImages ; i++)
             this.images[i] = images;
    JPanel imagePanel = new JPanel ();
    imageLabel = new JLabel (this.images[0]);
    imagePanel.add (imageLabel);
    mainPanel.add (imagePanel, BorderLayout.CENTER);
    mainPanel.add (Box.createVerticalStrut (10));
    index=0;
    JPanel buttonPanel = new JPanel();
    buttonPanel.setLayout (new BoxLayout (buttonPanel, BoxLayout.X_AXIS));
    buttonPanel.add (createButton (FIRST_BUTTON));
    buttonPanel.add (createButton (PREV_BUTTON));
    buttonPanel.add (createButton (NEXT_BUTTON));
    buttonPanel.add (createButton (LAST_BUTTON));
    mainPanel.add (buttonPanel);
    mainPanel.add (Box.createVerticalStrut (20));
    contentPane.add (mainPanel);
    private JButton createButton (String buttonType)
    JButton button = new JButton ();
    ImageIcon imageIcon = new ImageIcon (buttonType);
    Image image = imageIcon.getImage();
    button.setIcon (imageIcon);
    Dimension preferredSize = new Dimension (imageIcon.getIconWidth (),
    imageIcon.getIconHeight());
    button.setMinimumSize (preferredSize);
    button.setAction (new imageReviewAction (buttonType));
    String tooltip = "Press to go to ";
    if (buttonType == FIRST_BUTTON)
    tooltip += "First";
    else if (buttonType == PREV_BUTTON)
    tooltip += "Previous";
    else if (buttonType == NEXT_BUTTON)
    tooltip += "Next";
    else if (buttonType == LAST_BUTTON)
    tooltip += "Last";
    tooltip += " Image in List";
    button.setToolTipText (tooltip);
    return button;
    class imageReviewAction
    extends AbstractAction
    private Button button = null;
    public imageReviewAction (Button button)
    this.button = button;
    public void actionPerformed (ActionEvent e)
    if (button == FIRST_BUTTON)
    index = 0;
    else if (button == PREV_BUTTON)
    if (index > 0)
    index--;
    else if (button == NEXT_BUTTON)
    if (index < numImages - 1)
    index++;
    else if (button == LAST_BUTTON)
    index = numImages - 1;
    else
    // No other buttons, can't do anything.
    imageLabel.setIcon (images[index]);

    Had to make a lot of changes to your app to get it squared away. It compiles and runs okay; you can have a look.
    I think the central problem of the button size is in this line:
    button.setAction (new imageReviewAction (buttonType));
    Setting the action removes the icon. One way around it is to change your AbstractAction class to an ActionListener.
    import java.awt.*;
    import java.awt.event.*;
    import java.net.URL;
    import javax.swing.*;
    public class ImageReviewRx extends JFrame
        private ImageIcon[] icons = null;
        private JLabel imageLabel = null;
        private JPanel mainPanel = null;
        ImageReviewAction action;
        public ImageReviewRx ()
            super ("Image Review");
            setDefaultCloseOperation(EXIT_ON_CLOSE);
            setSize (640, 550);
            createIcons();
            action = new ImageReviewAction();
            mainPanel = new JPanel ();
            mainPanel.setLayout (new BorderLayout ());
            JPanel imagePanel = new JPanel ();
            imageLabel = new JLabel (icons[0]);
            imagePanel.add (imageLabel);
            mainPanel.add (imagePanel, BorderLayout.CENTER);
            JPanel buttonPanel = new JPanel();
            for(int j = 0; j < icons.length; j++)
                buttonPanel.add (createButton (j));
            mainPanel.add (buttonPanel, "South");
            Container contentPane = getContentPane();
            contentPane.add (mainPanel);
        private JButton createButton (int iconIndex)
            JButton button = new JButton ();
            int w = icons[iconIndex].getIconWidth();
            int h = icons[iconIndex].getIconHeight();
    //        button.setPreferredSize(new Dimension(w,h));  // an option
            button.setIcon (icons[iconIndex]);
            button.addActionListener (action);
            String ac = "";
            switch(iconIndex)
                case 0:
                    ac = "First";
                    break;
                case 1:
                    ac = "Previous";
                    break;
                case 2:
                    ac = "Next";
                    break;
                case 3:
                    ac = "Last";
            String tooltip = "Press to go to " + ac + " Image in List";
            button.setToolTipText (tooltip);
            button.setActionCommand(ac);
            return button;
        private void createIcons()
            String[] fileNames = {
                "firstArrowIcon.gif", "previousArrowIcon.gif",
                "nextArrowIcon.gif",  "lastArrowIcon.gif"
            icons = new ImageIcon[fileNames.length];
            for(int j = 0; j < icons.length; j++)
                URL url = getClass().getResource(fileNames[j]);
                icons[j] = new ImageIcon(url);
        class ImageReviewAction implements ActionListener
            int index = 0;
            public void actionPerformed (ActionEvent e)
                JButton button = (JButton)e.getSource();
                String ac = button.getActionCommand();
                if (ac.equals("First"))
                    index = 0;
                if (ac.equals("Previous"))
                    index--;
                    if(index < 0)
                        index = icons.length - 1;
                if (ac.equals("Next"))
                    index++;
                    if(index > icons.length - 1)
                        index = 0;
                if (ac.equals("Last"))
                    index = icons.length - 1;
                imageLabel.setIcon(icons[index]);
        public static void main(String[] args)
            ImageReviewRx rx = new ImageReviewRx();
            rx.setVisible(true);
    }

  • Object Object displaying in my tree control

    I verified that my arrarycollection is being returned from
    the database correctly but my tree control displays object Object.
    Can anyone offer any suggestions?

    "madhooper" <[email protected]> wrote in
    message
    news:ghrctr$egn$[email protected]..
    >I attached the code for the tree and below is a sample of
    the array that is
    > returned.
    > Object)#0
    > hierarchy = (Object)#1
    > 0000001 = (Object)#2
    > id = "0000001"
    > image = "0000001.png"
    > label = "ENGINE GROUP (1/2)"
    > level = "1"
    > sections = (Object)#3
    > 1101 = (Object)#4
    > id = "1101"
    > image = "1101.png"
    > label = "1101 ENGINE ASSY"
    > level = "2"
    > sections = (Object)#5
    > 1101002A = (Object)#6
    > id = "1101002A"
    > image = "1101002A.gif"
    > label = "1101002A 1101 ENGINE ASSY (9202-9704)5K [ASSY]"
    > level = "3"
    > sections = (Array)#7
    > 1101006 = (Object)#8
    > id = "1101006"
    > image = "1101006.gif"
    > label = "1101006 1101 ENGINE ASSY (9202-9704)5K [SHORT
    BLOCK
    > ASSY]"
    > level = "3"
    > sections = (Array)#9
    > 1101078B = (Object)#10
    > id = "1101078B"
    > image = "1101078B.gif"
    > label = "1101078B 1101 ENGINE ASSY (9202-9704)5K [KIT]"
    > level = "3"
    > sections = (Array)#11
    > 1101093 = (Object)#12
    > id = "1101093"
    > image = "1101093.gif"
    > label = "1101093 1101 ENGINE ASSY (8104-9704)"
    > level = "3"
    > sections = (Array)#13
    >
    >
    > <mx:Panel label="Index"
    >
    icon="@Embed(source='../assets/images/icons/Alpha_Index.png')">
    > <mx:Canvas label="Index" width="100%" height="100%"
    > backgroundColor="0xbFFFFFF"
    > borderColor="0xFFFFFF" borderThickness="5"
    > borderStyle="solid">
    > <mx:RadioButton x="8" y="3" label="Expand All"/>
    > <mx:RadioButton x="104" y="2" label="Collapse"/>
    > <mx:RadioButton x="202" y="3" label="Restore"/>
    > <mx:Label x="0" y="30" text="Filter by Section"/>
    > <mx:TextInput x="101" y="28" width="219"/>
    > <mx:Tree id="partsTree" labelField="sections" x="10"
    y="56"
    > width="354" height="239" dataProvider="{tree}">
    > </mx:Tree>
    > </mx:Canvas>
    > </mx:Panel>
    Since sections always seems to be an array in your hierarchy,
    exactly what
    label did you think you were going to see by specifying that
    field as a
    labelField?

  • Disable Navigation Features for printing

    Hello,
    I would like to print a PDF file, but when I do the navigation icon buttons appear in the printout.  I was wondering how to disable the icons so they don't appear on the printout.  The buttons include the index icon, introduction icon, table of contents icon, ect.
    Thank you for your help.
    John

    Hello,
    Thank you for the information.  When I go into "Forms", 2 from the top is
    "Edit Form in Acrobat" which is grayed out.  Do I need to select or enable
    it?
    Thank you for your time.
    You have to edit their properties. Use the Select Object tool (or go into
    forms editing mode: Forms > Add or Edit Fields), select the buttons, double
    click, and the field properties window will appear. On the General tab you'll
    see in the Common Properties area where you can set this property.
    >

  • Lost SMS Icon and get error message Uncaught exception Index 20 = 20

    Dear All
    I have lost my SMS Icon and looking at previous forums have carried out the following techniques which do not work
    1. I have gone to Messages - Options - SmS & Email Inboxes - Seperate but this does not solve anything
        Within this step i have switched off phone taken out battery etc...
    2. I have gone to Applications - menu - "show all" but my SMS icon cannot be found
    Just to note even when i go to Messages - View Folder - SMS Inbox .....i get the error message again  
    Uncaught exception Index 20 > = 20
    Anyone able to help ? Would be greatly appreciated.
    Thanks

    You may have already figured out your fix - but yesterday I went thru the same thing with my son's phone.  Overnight he lost his SMS & MMS Icon and was receiving Uncaught Exception Index 28 >= 28.  I called Verizon Tech Support and was told there was a corrupt file in the calendar. 
    We backed up the phone using the Desktop Manager - performed a security wipe and restored his phone. 
    His phone is back up and running as it should be.  Hope this helps.
     Laura

  • IPhoto took a dive, photos gone? not indexed...some come up as icons? HELP

    Completely frustrated. My battery ran out as Iphoto was downloading from my camera. Result? My photos are no longer indexed and worse, it looks like some have been changed to ICONS? How is this possible? It is a mess. Help!

    Make a temporary, backup copy (if you don't already have a backup copy) of the library and apply the two fixes below in order as needed:
    Fix #1
    Launch iPhoto with the Command+Option keys held down and rebuild the library.
    Select the options identified in the screenshot. 
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    Download iPhoto Library Manager and launch.
    Click on the Add Library button, navigate to your Home/Pictures folder and select your iPhoto Library folder.
    Now that the library is listed in the left hand pane of iPLM, click on your library and go to the File ➙ Rebuild Library menu option
    In the next  window name the new library and select the location you want it to be placed.
    Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments but not books, calendars or slideshows. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
    Was it the camera battery or the laptop battery? If it was the camera battery it is one of the prime reasons many recommend using a card reader to upload the photos from a camera.
    OT

Maybe you are looking for