Problems with focus traversal after moving to j2sdk_1.4.1_02

Hi,
Just moved to j2sdk_1.4.1_02 and we are having problems where
focus stays on wrong UI component e.g. a user(user2) is taking edit/write permissions from another user(user1) that has write permissions. User1 is told that they will lose write permissions in
the next 15 minutes ( information dialog displayed on their screen ) while at the same time on user2's window a text label is updated
every 5 seconds to say how long before they will have write permissions,
however, the information dialog displayed on user1 hangs and
the user can't remove this dialog. Control seems to stay with user2.
This used to work with the previous java version we used.
Hope someone can help,
Thanks

Didn't say what version you came FROM, but I'm guessing if
you're having focus related problems it was from PRIOR to 1.4
when focus handling was revamped.
You probably need to make sure you are using requestFocusInWindow()
everywhere instead of requestFocus().
Check here and possibly search for 1.4 and KeyboardFocusManager
for new focus handling tutorials.

Similar Messages

  • Problem with missing files after moving folders around

    Hi,
    I keep my music files manually organized. This is mostly because I have a LOT of music and I don't want to take up all the space on my MBP HD. So my music is split up between 2 external drives and the MBP drive.
    I was moving around some folders since I wanted to reorganize my music folders, and iTunes can't seem to find the files anymore, and in order to fix it I see I need to find each and every file I moved (which is really not practical).
    I tried editing the "iTunes Music Library.xml" file, but it seems to get rebuilt from some other place where this information is stored.
    I also tried putting aliases in the old folders' locations pointing to the new ones (iTunes kept saying the files are missing)
    Is there any way to simplify the process of moving folders?? This is really strange that such a feature is missing.
    Thanks
    Yaron

    If you have the 'keep' option enabled and let iTunes do the work - take a sound track album as an example - that has various artists and you didn't tell iTunes that the album was a compilation album - then iTunes will put all the tunes into into the iTunes Music folder as Artist>Album>Song - if you have the compilation option enabled for the tunes on that same album - iTunes will nest it as iTunes Music>Compilation>Album>Song. This helps reduce the clutter in the iTunes Music folder with a thousand artists and only one tune for that artist.
    With the 'keep' option selected iTunes will move tunes automatically within the iTunes Music folder. Since iTunes moved the files it can keep track of the links.
    To create a second library launch iTunes with the 'option' key down and follow the dialog box instructions. I have a 'Master iTunes Library' on my internal HD and several ext HD's with other libraries which I give unique names i.e.: Really Big Music. I give the library data base file its' own unique name so I don't accidentally erase the wrong file. I also keep all the files that you would normally see for an iTunes library on the ext HD (iTunes library. .xml, art work etc.,). If you are into lots of movies and TV Shows you could create a library on and ext HD with only video content and name it accordingly. You would keep all the files for that library including the library 'management' files on the ext HD in the same nesting as you would find on your internal HD.
    This strategy works for me. I tried to manage the files by myself at one point and just had to many problems so I decided to not fight City Hall and go with the flow and it works for me.
    MJ

  • Problems with design view after moving to new imac

    Moved CS4 Dreamweaver from my Mac Mini intel duo to a new i5 Imac last night: suddenly design view is not showing various CSS styles, especially certain links.
    For example, instead of this:
    HOME | ABOUT | CONTACT | HELP
    it will show this in design view:
    |||
    Meanwhile, in a browser live on the web, everything is fine.
    I did a fresh install of dreamweaver CS4 last night from original install disks to new i5 Imac.
    Help!

    Culprit is the classic MS Windows font ARIEL. I installed it one at a time from two different sources (a 1999 TT build and a 2001 TT build) and both immediately caused problems, particularly in Dreamweaver with vanishing text in design view for any fonts setting sassigned the "ariel, helvetica sans serif family").
    Since problem only is happening on the 2011 i5 Imac (but not on my old Mac Mini 1.6 or emac G4) I will guess the dilemma resides with fontbook or something peculiar to font management on the iMac.
    Removing font of course solved all problems.

  • Problem with external editors after moving photos

    I moved my photos from an external HD to the drive in my new iMac.  I did not change the names of the folders or files.  Lightroom still works.  The problem is that external editors, such as OneOne Perfect Photo and Color Efex, no longer work.  I can't open photos from Lightroom to be edited in those programs.  OneOne suggested fixing the disk permissions in Utilities.  I tried that but it didn't work.  I'm not sure the iMac even fixed the permissions, and the photos will won't open with an external editor.  Any suggestions?

    Reload the firmware update and make sure it completes.

  • Problem with phone line after moving flats

    I have moved to a new flats 3 months ago.  We transferred our BT line (BT is our phone and internet provider) to our new flat, internet works fine, but the phone line doesn't! We are not able to call anyone, or receive any calls. Is it something we can do to fix it on our own or should we call an engineer? Will it cost us anything if we call a BT engineer?
    THank you in advance!
    Elen

    Try the self help guide first
    Fixing phone faults
    If you are sure the fault is not within your premises, then you can report the fault here
    Reporting Phone Faults
    Provided that the fault is external to your house, then you should not be charged.
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

  • Problem with junkmail folders after moving gwia from netware to linux

    Recently moved our gwia that handles internet email from Netware to Sles
    11 GW8.0.3 hp3. Email is moving in and out ok, but I'm getting some
    really weird strangeness with Junkmail settings. Just like the old
    gwia, this gwia has it's own domain/mta. Postoffices are under
    different domains/mta's.
    1. Email flagged with "x-spam-flag: yes" is no longer automatically
    being moved to the junkmail folder. Yes the box is checked for this
    particular's gwia settings, and I've even uncommented it in the gwia.cfg
    file to to be sure it's enabled.
    2. With the "view" column enabled in the client I can see that normal
    email coming in gets set with the tag "internet" Email coming in with
    "x-spam-flag: yes" in the header gets set with the tag "IPM.Novell.ND"
    If I right click on one these to try to manually set it as junkmail, I
    get a message that the message is "Not Eligible for Junk Mail Handling"
    and when I click on that a window pops up saying "This is a POP message.
    Only internet mail sent to your Groupwise account is eligible for Junk
    Mail Handling"
    For whatever reason instead of moving the email to the junkmail folder
    when the x-spam-flag is set, it changes it to type IPM.Novell.ND and
    then the client thinks that it's some sort of POP message instead of an
    internet email. If I redirect incoming email back through the old
    Netware gwia instead, everything works fine.
    What could possibly be going on?

    Originally Posted by Mike
    Recently moved our gwia that handles internet email from Netware to Sles
    11 GW8.0.3 hp3. Email is moving in and out ok, but I'm getting some
    really weird strangeness with Junkmail settings. Just like the old
    gwia, this gwia has it's own domain/mta. Postoffices are under
    different domains/mta's.
    Did you create a new Gateway ( gwia ) object? Or recycle the old one ( which is usually a huge no-no. ) I suspect you created a new one, as you refer to the old NetWare GWIA. But you never know.
    Originally Posted by Mike
    1. Email flagged with "x-spam-flag: yes" is no longer automatically
    being moved to the junkmail folder. Yes the box is checked for this
    particular's gwia settings, and I've even uncommented it in the gwia.cfg
    file to to be sure it's enabled.
    Its only enabled if the run-time config says it is. ;-) Look at the settings listed in the HTTP console for the GWIA or the GWIA logs, which dumps the settings actually being used. You may find the setting is not really effective. Check for differences between the two GWIAs effective config.... something may stick out.
    In the message properties there is a junk mail handling section, can you give us an example of working / non-working versions?
    Note also:
    Support | Junk mail delivered to Inbox <-- buggy or unexpected behavior
    and
    Novell Doc: GroupWise 8 Administration Guide - Blocking Unwanted E-Mail from the Internet <-- xspam.cfg
    -- Bob

  • Problems with iPhone 5 after moving country

    I have an iPhone 5 and have recently moved from Australia to New Zealand. I have a new simcard but the phone automatically puts Australian international dialling codes on every call or text I make, so nothing can go through. I think the issue is because my iTunes account still 'thinks' it's in Australia, even when I change my location. Any ideas of what I can do to fix this?

    You can change in Settings > iTunes & App Store > Apple ID: > View Apple ID > sign in and change Country/ Region.

  • Problem with focus on applet  - jvm1.6

    Hi,
    I have a problem with focus on applet in html page with tag object using jvm 1.6.
    focus on applet work fine when moving with tab in a IEbrowser page with applet executed with jvm 1.5_10 or sup, but the same don't work with jvm1.6 or jvm 1.5 with plugin1.6.
    with jvm 1.5 it's possible to move focus on elements of IEbrowser page and enter and exit to applet.
    i execut the same applet with the same jvm, but after installation of plugin 1.6, when applet gain focus don't release it.
    instead if i execute the same applet with jvm 1.6, applet can't gain focus and manage keyevent, all keyevent are intercepted from browser page.
    (you can find an example on: http://www.vista.it/ita_vista_0311_video_streaming_accessibile_demo.php)
    Any idea?
    Thanks

    Hi piotrek1130sw,
    From what you have described, I think the best approach would be to restore the original IDT driver, restart the computer, test that driver, then install the driver update, and test the outcome of installing the newest driver.
    Use the following link for instructions to recovery the ITD driver using Recovery Manager. Restoring applications and drivers.
    Once the driver is restored, restart the computer and test the audio. If the audio is good you can continue to use this driver, or you can reinstall the update and see what happens. IDT High-Definition (HD) Audio Driver.
    If installing the newest driver causes the issue to occur but the recovered driver worked, I suggest recovering again.
    If neither driver works I will gladly follow up and provide any assistance I can.
    Please let me know the outcome.
    Please click the Thumbs up icon below to thank me for responding.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Sunshyn2005 - I work on behalf of HP

  • Reception / Battery problems with iPhone 3GS after upgrading to iOS 4.2.1

    There are major reception and battery problems with iPhone 3GS after upgrading to iOS 4.2.1.
    I can not believe that Apple did not test this for major bugs like this one is.
    I am a business user and can not effort to have bad reception. Apple wants to gain in the business clients... I never had this with my former BlackBerrys!
    I need a reliable phone not a play thing like this is right now, it just needs it to work propely. And if a major bug like this comes along, fix it immediately. After the iPhone4 story, now this...incredible! Going back to my reliable BlackBerry! It just ain't reliable and takes forever to fix a problem.

    I have the same issue after iOS 4.2.1 update. I am using iPhone 3GS officially unlocked by Apple. I tried using different SIM cards and both carriers show same problem when using phone in 3G mode. Phone falls back to EDGE mode showing 'E' from '3G' at start. I have reset the phone and rebooted several times and moved to different cell areas in the city just to verify the problem.
    I had no such issues earlier. I also have Nokia E71 which shows full signal and has no such issues.
    I have posted the bug on apple iphone feedback page. I hope they Apple will fix the problem and test the release properly on all models before releasing to public.

  • Problems with Airport setup after buying Version 7 models, (older ones will not upgrade)

    Problems with Airport setup after buying Version 7 models, (older ones will not upgrade)
    I re set up my Airport network , having had 4 expresses for years doing a good job. I bought another and an express, but then a time capsule after my external drive died. .Problems with Airport setup after buying Version 7 models, (older ones will not upgrade)
    I moved house and have fibre network so 38mb/s - they all look ok on the utility, but its not till I saw the App version that they are not compatible as mac will not upgrade the version 6 ones, leaving me with 2 disjointed networks and 7 appliances, 4 of the old , 3 of the new.
    my new house is expansive so i wanted the extended range and airplay in each room.
    This is not told to customers, and utility doesnt show any issues.
    I do not seem to get any range from either network now, - and I'm quite experienced with airport (6 yrs of setting up & using & extending)
    Any advice ?
    LJx
    Message was edited by: LJLDN
    Message was edited by: LJLDN

    Sorry couldn't change the detonations to Airport and am new so cant delete!

  • Problem with focus border and ListCellRenderer in custom listbox

    I have a bug in some code that I adapted from another posting on this board -- basically what I've done is I have a class that implements a custom "key/value" mapping listbox in which each list item/cell is actually a JPanel consisting of 3 JLabels: the first label is the "key", the second is a fixed "==>" mapping string, and the 3rd is the value to which "key" is mapped.
    The code works fine as long as the list cell doesn't have the focus. When it does, it draws a border rectangle to indicate focus, but if the listbox needs to scroll horizontally to display all the text, part of the text gets cut off (i.e. "sometex..." where "sometext" should be displayed).
    The ListCellRenderer creates a Gridlayout to lay out the 3 labels in the cell's JPanel.
    What can I do to remedy this situation? I'm not sure what I'd need to do in terms of setting the size of the panel so that all the text gets displayed OK within the listbox. Or if there's something else I can do to fix this. The code and a main() to run the code are provided below. To reproduce the problem, click the Add Left and Add Right buttons to add a "mapping" -- when it doesn't have focus, everything displays fine, but when you give it focus, note the text on the right label gets cut off.
    //======================================================================
    // Begin Source Listing
    //======================================================================
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.Collection;
    import java.util.Iterator;
    import java.util.Vector;
    import java.util.Enumeration;
    public class TwoColumnListbox extends JPanel
    private JList m_list;
    private JScrollPane m_Pane;
    public TwoColumnListbox(Collection c)
         DataMapListModel model = new DataMapListModel();
         if (c != null)
         Iterator it = c.iterator();
         while (it.hasNext())
         model.addElement(it.next());
         m_list = new JList(model);
         ListBoxRenderer renderer= new ListBoxRenderer();
              m_list.setCellRenderer(renderer);
              setLayout(new BorderLayout());
              m_list.setVisibleRowCount(4);
              m_Pane = new JScrollPane(m_list);
              add(m_Pane, BorderLayout.NORTH);
    public JList getList()
    return m_list;
    public JScrollPane getScrollPane()
    return m_Pane;
    public static void main(String s[])
              JFrame frame = new JFrame("TwoColumnListbox");
              frame.addWindowListener(new WindowAdapter() {
              public void windowClosing(WindowEvent e) {System.exit(0);}
    final DataMappings dm = new DataMappings();
    final TwoColumnListbox lb = new TwoColumnListbox(dm.getMappings());
              final DataMap map = new DataMap();
              JButton leftAddBtn = new JButton("Add Left");
              leftAddBtn.addActionListener(new ActionListener() {
              public void actionPerformed(ActionEvent e)
              map.setSource("JButton1");
              DefaultListModel model = new DefaultListModel();
              model.addElement(map);
              lb.getList().setModel(model);
              JButton leftRemoveBtn = new JButton("Remove Left");
              leftRemoveBtn.addActionListener(new ActionListener() {
              public void actionPerformed(ActionEvent e)
              map.setSource("");
              DefaultListModel model = new DefaultListModel();
              model.addElement(map);
              lb.getList().setModel(model);
              JButton rightAddBtn = new JButton("Add Right");
    rightAddBtn.addActionListener(new ActionListener() {
              public void actionPerformed(ActionEvent e)
              map.setDestination("/getQuote/symbol[]");
              DefaultListModel model = new DefaultListModel();
              model.addElement(map);
              lb.getList().setModel(model);
              JButton rightRemoveBtn = new JButton("Remove Right");
    rightRemoveBtn.addActionListener(new ActionListener() {
              public void actionPerformed(ActionEvent e)
              map.setDestination("");
              DefaultListModel model = new DefaultListModel();
              model.addElement(map);
              lb.getList().setModel(model);
              JPanel leftPanel = new JPanel(new BorderLayout());
              leftPanel.add(leftAddBtn, BorderLayout.NORTH);
              leftPanel.add(leftRemoveBtn, BorderLayout.SOUTH);
    JPanel rightPanel = new JPanel(new BorderLayout());
              rightPanel.add(rightAddBtn, BorderLayout.NORTH);
              rightPanel.add(rightRemoveBtn, BorderLayout.SOUTH);
    frame.getContentPane().add(leftPanel, BorderLayout.WEST);
              frame.getContentPane().add(lb,BorderLayout.CENTER);
    frame.getContentPane().add(rightPanel, BorderLayout.EAST);
              frame.pack();
              frame.setVisible(true);
         class ListBoxRenderer extends JPanel implements ListCellRenderer
              private JLabel left;
              private JLabel arrow;
              private JLabel right;
              private Color clrForeground = UIManager.getColor("List.foreground");
    private Color clrBackground = UIManager.getColor("List.background");
    private Color clrSelectionForeground = UIManager.getColor("List.selectionForeground");
    private Color clrSelectionBackground = UIManager.getColor("List.selection.Background");
              public ListBoxRenderer()
                   setLayout(new GridLayout(1, 2, 10, 0));
                   //setBorder(BorderFactory.createEmptyBorder(4, 4, 4, 4));
                   left = new JLabel("");
                   left.setForeground(clrForeground);               
                   arrow = new JLabel("");
                   arrow.setHorizontalAlignment(SwingConstants.CENTER);
                   arrow.setForeground(clrForeground);
                   right = new JLabel("");
                   right.setHorizontalAlignment(SwingConstants.RIGHT);
                   right.setForeground(clrForeground);
                   add(left);
                   add(arrow);
                   add(right);
              public Component getListCellRendererComponent(JList list, Object value,
                        int index, boolean isSelected, boolean cellHasFocus)
                   if (isSelected)
                        setBackground(list.getSelectionBackground());
                        setForeground(list.getSelectionForeground());
                        left.setForeground(clrSelectionForeground);
                        arrow.setForeground(clrSelectionForeground);
                        right.setForeground(clrSelectionForeground);
                   else
                        setBackground(list.getBackground());
                        setForeground(list.getForeground());
                   left.setForeground(clrForeground);
                        arrow.setForeground(clrForeground);
                        right.setForeground(clrForeground);               
                   // draw focus rectangle if control has focus. Problem with focus
    // and cut off text!!
                   if (cellHasFocus)
                   // FIXME: for Windows LAF I'm not getting the correct thing here for some reason.
                   // Looks OK on Metal though.
                   setBorder(BorderFactory.createLineBorder(UIManager.getColor("focusCellHighlightBorder")));
                   else
                   setBorder(BorderFactory.createEmptyBorder());               
    DataMap map = (DataMap) value;
                   String displaySource = map.getSource();
                   String displayDest = map.getDestination();
                   left.setText(displaySource);
                   arrow.setText("=>to<=");
                   right.setText(displayDest);
                   return this;
    /** Interface for macro editor UI
    * @version 1.0
    class DataMappings
    private Collection mappings;
    public DataMappings()
    setMappings(new Vector(0));
    public DataMappings(Collection maps)
    setMappings(maps);
    /** gets mapping value of a specified source object
    * @param src -- the "key" or source object, what is mapped.
    * @return what the source object is mapped to
    * @version 1.0
    public Object getValue(String src)
    if (src != null)
    Iterator it = mappings.iterator();
    while (it.hasNext());
    DataMap thisMap = (DataMap) it.next();
    if (thisMap.getSource().equals(src))
    return thisMap.getDestination();
    return null;
    /** sets mapping value of a specified source object
    * @param src -- the "key" or source object, what is mapped.
    * @param what the source object is to be mapped to
    * @version 1.0
    public void setValue(String src, String dest)
    if (src != null)
    // see if the value is in there first.
    Iterator it = mappings.iterator();
    while (it.hasNext())
    DataMap thisMap = (DataMap) it.next();
    if (thisMap.getSource().equals(src))
    thisMap.setDestination(dest);
    return;
    // not in the collection, add it
    mappings.add(new DataMap(src, dest));
    /** gets collection of mappings
    * @return a collection of all mappings in this object.
    * @version 1.0
    public Collection getMappings()
    return mappings;
    /** sets collection of mappings
    * @param maps a collection of src to destination mappings.
    * @version 1.0
    public void setMappings(Collection maps)
    mappings = maps;
    /** adds a DataMap
    * @param map a DataMap to add to the mappings
    * @version 1.0
    public void add(DataMap map)
    if (map != null)
    mappings.add(map);
    class DataMap
    public DataMap() {}
    public DataMap(String source, String destination)
    m_source = source;
    m_destination = destination;
    public String getSource()
    return m_source;
    public void setSource(String s)
    m_source = s;
    public String getDestination()
    return m_destination;
    public void setDestination(String s)
    m_destination = s;
    protected String m_source = null;
    protected String m_destination = null;
    /** list model for datamaps that provides ways
    * to determine whether a source is already mapped or
    * a destination is already mapped.
    class DataMapListModel extends DefaultListModel
    public DataMapListModel()
    super();          
    /** determines whether a source is already mapped
    * @param src -- the source property of a datamapping
    * @return true if the source is in the list, false if not
    public boolean containsSource(Object src)
    Enumeration enum = elements();
    while (enum.hasMoreElements())
    DataMap dm = (DataMap) enum.nextElement();
    if (dm.getSource().equals(src))
    return true;
    return false;
    /** determines whether a destination is already mapped
    * @param dest -- the destination property of a datamapping
    * @return true if the destination is in the list, false if not
    public boolean containsDest(Object dest)
    Enumeration enum = elements();
    while (enum.hasMoreElements())
    DataMap dm = (DataMap) enum.nextElement();
    if (dm.getDestination().equals(dest))
    return true;
    return false;
    public DataMappings getDataMaps()
    DataMappings maps = new DataMappings();
    // add all the datamaps in the model
    Enumeration enum = elements();
    while (enum.hasMoreElements())
    DataMap dm = (DataMap) enum.nextElement();
    maps.add(dm);
    return maps;
    //======================================================================
    // End of Source Listing
    //======================================================================

    I did not read the program, but the chopping looks like a layout problem.
    I think it's heavy to use a panel + 3 components in a gridlayout for each cell. look at this sample where i draw the Cell myself,
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    import java.util.*;
    public class Jlist3 extends JFrame 
         Vector      v  = new Vector();
         JList       jc = new JList(v);
         JScrollPane js = new JScrollPane(jc);
    public Jlist3()
         addWindowListener(new WindowAdapter()
        {     public void windowClosing(WindowEvent ev)
              {     dispose();
                   System.exit(0);}});
         for (int j=0; j < 70; j++)     v.add(""+j*1000+"a  d"+j);
           setBounds(1,1,400,310);
         getContentPane().add(js);
         js.setPreferredSize(new Dimension(230,259));
         jc.setSelectedIndex(1);
         jc.setCellRenderer(new MyCellRenderer());
         getContentPane().setLayout(new FlowLayout());
         setVisible(true);
    public class MyCellRenderer extends JLabel implements ListCellRenderer
         String  txt;
         int     idx;
         boolean sel;
    public Component getListCellRendererComponent(JList list,
                             Object  value,           // value to display
                             int     index,           // cell index
                             boolean isSelected,      // is the cell selected
                             boolean cellHasFocus)    // the list and the cell have the focus
         idx = index;
         txt = value.toString();
         sel = isSelected;
         setText(txt);
         return(this);
    public void paintComponent(Graphics g)
         if (idx%2 == 1) g.setColor(Color.white);
              else        g.setColor(Color.lightGray);
         if (sel)        g.setColor(Color.blue);
         g.fillRect(0,0,getWidth(),getHeight());
         StringTokenizer st = new StringTokenizer(txt.trim()," ");
         g.setColor(Color.black);
         if (st.hasMoreTokens())     g.drawString(st.nextToken(),1,14);
         g.setColor(Color.red);
         g.drawString("===>",70,14);
         g.setColor(Color.black);
         if (st.hasMoreTokens())     g.drawString(st.nextToken(),110,14);
    public static void main (String[] args) 
         new Jlist3();
    Noah
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    import java.util.*;
    public class Jlist3 extends JFrame
         Vector v = new Vector();
         JList jc = new JList(v);
         JScrollPane js = new JScrollPane(jc);
    public Jlist3()
         addWindowListener(new WindowAdapter()
    {     public void windowClosing(WindowEvent ev)
              {     dispose();
                   System.exit(0);}});
         for (int j=0; j < 70; j++)     v.add(""+j*1000+"a d"+j);
         setBounds(1,1,400,310);
         getContentPane().add(js);
         js.setPreferredSize(new Dimension(230,259));
         jc.setSelectedIndex(1);
         jc.setCellRenderer(new MyCellRenderer());
         getContentPane().setLayout(new FlowLayout());
         setVisible(true);
    public class MyCellRenderer extends JLabel implements ListCellRenderer
         String txt;
         int idx;
         boolean sel;
    public Component getListCellRendererComponent(JList list,
                             Object value, // value to display
                             int index, // cell index
                             boolean isSelected, // is the cell selected
                             boolean cellHasFocus) // the list and the cell have the focus
         idx = index;
         txt = value.toString();
         sel = isSelected;
         setText(txt);
         return(this);
    public void paintComponent(Graphics g)
         if (idx%2 == 1) g.setColor(Color.white);
              else g.setColor(Color.lightGray);
         if (sel) g.setColor(Color.blue);
         g.fillRect(0,0,getWidth(),getHeight());
         StringTokenizer st = new StringTokenizer(txt.trim()," ");
         g.setColor(Color.black);
         if (st.hasMoreTokens())     g.drawString(st.nextToken(),1,14);
         g.setColor(Color.red);
         g.drawString("===>",70,14);
         g.setColor(Color.black);
         if (st.hasMoreTokens())     g.drawString(st.nextToken(),110,14);
    public static void main (String[] args)
         new Jlist3();
    }

  • Problem with the workbook after upgrade

    Hi all,
    We are facing some problems with the workbooks after BW 3.5 Upgrade.e.g. some templates are disturbed, some variables have been affected. So I have few doubts --
    1. What could be the possible reason behind this?
    2. What exactly got changed in the system which reflected this problems?
    3. What other problems might have occurred which we may not have noticed?
    4. How can I find out the number of workbooks affected due to this?

    Dear ,
    This is known issue:
    Please implement the below mentioned note as this will solve your issue,
    Note 1609237 :  Subsequent correction to 1567679
    Regards,
    Arvind

  • Problem with iWeb 09, after the publication in a local file.

    *Subject: problem with iWeb 09, after the publication in a local file, i can't see my blog, nor my photos, but before that all was working fine.*
    After the publication in the local file, I see all my pages, but there is a mistake on the page "Blog" where I just can see the top of my page, it's cut and I can't see it entirely, so I can't see the inputs while I should see 3 news or 3 inputs. And it's the same for the "Photos" page where the page is cut, I can't see the photos, and it's just written : "Put the slide show and subscribe".To finish, when I want to activate the comments, it doesn't work neither.
    Please help me.

    I want to activate the comments, it doesn't work neither.
    The comments feature is only available when you publish to the MobileMe server, so I don't think you can use it when you publish to a local file.

  • Has anyone had a problem with CS3 crashing after downloading OS 10.8.1 on a imac?

    Has anyone had a problem with CS3 crashing after downloading OS 10.8.1 on a imac? 

    Peggy
    You are probably correct. I tried all different variations to test it. As long as I quit each document separately, i.e., red dot it, I seem to bring up only one document after that whether I click on the document itself or open it within pages. The same is true with numbers.
    Two more questions:
    1) can you turn off the "resume" feature? If so, how? I could not find a way to do it.
    2) why the "save a version" feature in pages? What happened to the old "save" and "save as" features?
    Thanks so much, you saved me a lot of frustration but I am still going to install MS Office for Mac.
    Daveben

  • I have a problem with my iphone,after upgrade software ios 6.0.1,  is not possible to use the wi-fi, used until now, because is not possible to have the login, i find this message " the requested URL  was not found

    I have a problem with my iphone,after upgrade software ios 6.0.1,  is not possible to use the wi-fi, used until now, because is not possible to have the login, i find this message " the requested URL  was not found

    You have to go to autherized iPhone agent.

Maybe you are looking for

  • CLOB datatype is PSP

    I want to upload a file to a clob field in the database and also I want to save the data in a clob field to a file using PSP. Is this possible. any body has done any work on this. Please help. Mohan

  • I am locked out of my internal hard drives.

    Sorry if I am breaking protocol. This question is for V.K. Ihad been locked out of my internal drives with the exception of my start updrive. All the drives icons had a small lock on them. You had posted how tounlock them. run the following commands

  • Creating a user with "create user" privilege using PL/SQL?

    I have managed to use the PL/SQL DBMS_LDAP package to create and modify OID users (DBMS_LDAP.add_s and DBMS_LDAP.modify_s). The question is: How can I use DBMS_LDAP to assign privileges to OID users? By "privileges" I mean options like the following

  • Implementing own algorithms in  SignatureMethod for XML Digital Signature

    Is it possible to implement own algorithms in SignatureMethod (other than DSA_SHA1, RSA_SHA1 and HMAC_SHA1)? Thanks.

  • BPC 7.5 SP09 - Dimension Not Found

    Hi Everyone, Since installing SP09 on BPC 7.5 we have not been able to maintain any dimension members or open the excel client. A dump is generated when you open admin console click on any dimension and go into the maintain dimension member area (exc