Click an item twice or more in JList

Hy,
I have create a JList with some animal's name in it. When I click on one of the animal's
name for the FIRST time, it appears in a JTextArea.
What I want is that when I click on that same name consecutively, it appears again in that
JTextArea. Can anyone please send me the code for doing that. Its very urgent.
Here are my code:
import javax.swing.*;
import javax.swing.text.*;
import javax.swing.event.*;
import java.awt.*;
import java.awt.event.*;
import java.util.*;
public class PropertyWindow extends JFrame implements ListSelectionListener, ActionListener {
     private JList list;
     private JScrollPane scrollTextArea;
     private JTextArea textArea;
     private String text;
     private Vector imageNames;
     private JLabel picture;
     private DefaultListModel listModel;
     public PropertyWindow () {
          super("Property Window");
          //create a text area
          textArea = new JTextArea();
          textArea.setFont(new Font("Arial", Font.PLAIN, 16));
          textArea.setLineWrap(true);
          textArea.setWrapStyleWord(true);
          //create a scrollpane and add it to the text area
          scrollTextArea = new JScrollPane(textArea);
          scrollTextArea.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
          scrollTextArea.setPreferredSize(new Dimension(200,35));
          //create a list of button and add it to the JPanel
          JButton addButton = new JButton("+");
          JButton subtractButton = new JButton("-");
          JButton multiplyButton = new JButton("x");
          JButton divideButton = new JButton("/");
          JButton assignButton = new JButton("=");
          JButton equalButton = new JButton("= =");
          JButton greaterButton = new JButton(">");
          JButton G_EqualButton = new JButton("> =");
          JButton lessButton = new JButton("<");
          JButton L_EqualButton = new JButton("< =");
          JButton notEqualButton = new JButton("! =");
          JButton oneButton = new JButton("1");
          JButton twoButton = new JButton("2");
          JButton threeButton = new JButton("3");
          JButton fourButton = new JButton("4");
          JButton fiveButton = new JButton("5");
          JButton sixButton = new JButton("6");
          JButton sevenButton = new JButton("7");
          JButton eightButton = new JButton("8");
          JButton nineButton = new JButton("9");
          JButton zeroButton = new JButton("0");
          addButton.setActionCommand ("+");
          subtractButton.setActionCommand("-");
          multiplyButton.setActionCommand("x");
          divideButton.setActionCommand ("/");
          assignButton.setActionCommand ("=");
          equalButton.setActionCommand ("= =");
          greaterButton.setActionCommand (">");
          G_EqualButton.setActionCommand ("> =");
          lessButton.setActionCommand ("<");
          L_EqualButton.setActionCommand ("< =");
          notEqualButton.setActionCommand("! =");
          oneButton.setActionCommand ("1");
          twoButton.setActionCommand ("2");
          threeButton.setActionCommand ("3");
          fourButton.setActionCommand ("4");
          fiveButton.setActionCommand ("5");
          sixButton.setActionCommand ("6");
          sevenButton.setActionCommand ("7");
          eightButton.setActionCommand ("8");
          nineButton.setActionCommand ("9");
          zeroButton.setActionCommand ("0");
          JPanel buttonPane = new JPanel();
          buttonPane.setBorder(
                                        BorderFactory.createCompoundBorder(
                                   BorderFactory.createCompoundBorder(
                              BorderFactory.createTitledBorder("Arithmetic/Logical Operations"),
                              BorderFactory.createEmptyBorder(5,5,5,5)),
                                   buttonPane.getBorder()));
          buttonPane.setLayout(new GridLayout (3,7));
          buttonPane.add(addButton);
          buttonPane.add(subtractButton);
          buttonPane.add(multiplyButton);
          buttonPane.add(divideButton);
          buttonPane.add(assignButton);
          buttonPane.add(equalButton);
          buttonPane.add(greaterButton);
          buttonPane.add(G_EqualButton);
          buttonPane.add(lessButton);
          buttonPane.add(L_EqualButton);
          buttonPane.add(notEqualButton);
          buttonPane.add(oneButton);
          buttonPane.add(twoButton);
          buttonPane.add(threeButton);
          buttonPane.add(fourButton);
          buttonPane.add(fiveButton);
          buttonPane.add(sixButton);
          buttonPane.add(sevenButton);
          buttonPane.add(eightButton);
          buttonPane.add(nineButton);
          buttonPane.add(zeroButton);
          addButton.addActionListener(this);
          subtractButton.addActionListener(this);
          multiplyButton.addActionListener(this);
          divideButton.addActionListener(this);
          assignButton.addActionListener(this);
          equalButton.addActionListener(this);
          greaterButton.addActionListener(this);
          G_EqualButton.addActionListener(this);
          lessButton.addActionListener(this);
          L_EqualButton.addActionListener(this);
          notEqualButton.addActionListener(this);
          oneButton.addActionListener(this);
          twoButton.addActionListener(this);
          threeButton.addActionListener(this);
          fourButton.addActionListener(this);
          fiveButton.addActionListener(this);
          sixButton.addActionListener(this);
          sevenButton.addActionListener(this);
          eightButton.addActionListener(this);
          nineButton.addActionListener(this);
          zeroButton.addActionListener(this);
          //create the 'ok' and 'cancel' button
          JButton okButton = new JButton("Ok");
          JButton cancelButton = new JButton("Cancel");
          okButton.setActionCommand("Ok");
          okButton.addActionListener(this);
          cancelButton.setActionCommand("Cancel");
          cancelButton.addActionListener(this);
          JPanel controlPane = new JPanel();
          controlPane.setLayout(new FlowLayout());
          controlPane.add(okButton);
          controlPane.add(cancelButton);
          //create a Jlist where to insert variables
          listModel = new DefaultListModel();
listModel.addElement("dog");
listModel.addElement("cat");
listModel.addElement("rat");
listModel.addElement("rabbit");
listModel.addElement("cow");
          list = new JList(listModel);
          list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
          //list.setSelectedIndex(0);
          list.addListSelectionListener(this);
          JScrollPane scrollList = new JScrollPane(list);
          scrollList.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
          scrollList.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
scrollList.setPreferredSize(new Dimension(200,300));
          scrollList.setBorder(
                                        BorderFactory.createCompoundBorder(
                                   BorderFactory.createCompoundBorder(
                    BorderFactory.createTitledBorder("Variables"),
                    BorderFactory.createEmptyBorder(5,5,5,5)),
                                   scrollList.getBorder()));
          //create a pane and put the scroll list and ok/cancel button in it
          JPanel rightPane = new JPanel();
          BoxLayout rightBox = new BoxLayout(rightPane, BoxLayout.Y_AXIS);
          rightPane.setLayout(rightBox);
          rightPane.add(scrollList);
          rightPane.add(controlPane);
          //create a pane and put the scroll text area and arithmetic button in it
          JPanel leftPane = new JPanel();
          BoxLayout leftBox = new BoxLayout(leftPane, BoxLayout.Y_AXIS);
          leftPane.setLayout(leftBox);
          leftPane.add(scrollTextArea);
          leftPane.add(buttonPane);
          //add both pane to the container
          JPanel contentPane = new JPanel();
          BoxLayout box = new BoxLayout(contentPane, BoxLayout.X_AXIS);
          contentPane.setLayout(box);
          contentPane.add(leftPane);
          contentPane.add(rightPane);
setContentPane(contentPane);
     public void valueChanged(ListSelectionEvent e) {
     if (e.getValueIsAdjusting() == false) {
     if (list.getSelectedIndex() == -1) {
          //No selection, disable fire button.
     else {
          //Selection, update text field.
     String name = list.getSelectedValue().toString();
     textArea.append(" " + name + " ");
     public void actionPerformed(ActionEvent e) {
          String cmd = e.getActionCommand();
          if (cmd.equals("Ok")) {
               // save current textarea
               text = textArea.getText();
               System.out.println(text);
               dispose();
               setVisible(false);
          if (cmd.equals("Cancel")) {
               dispose();
               setVisible(false);
          if (cmd.equals("+")) {
               textArea.append(" + ");
          if (cmd.equals("-")) {
               textArea.append(" - ");
          if (cmd.equals("x")) {
               textArea.append(" x ");
          if (cmd.equals("/")) {
               textArea.append(" / ");
          if (cmd.equals("=")) {
               textArea.append(" = ");
          if (cmd.equals("= =")) {
               textArea.append(" == ");
          if (cmd.equals(">")) {
               textArea.append(" > ");
          if (cmd.equals("> =")) {
               textArea.append(" >= ");
          if (cmd.equals("<")) {
               textArea.append(" < ");
          if (cmd.equals("< =")) {
               textArea.append(" <= ");
          if (cmd.equals("! =")) {
               textArea.append(" != ");
          if (cmd.equals("1")) {
               textArea.append("1");
          if (cmd.equals("2")) {
               textArea.append("2");
          if (cmd.equals("3")) {
               textArea.append("3");
          if (cmd.equals("4")) {
               textArea.append("4");
          if (cmd.equals("5")) {
               textArea.append("5");
          if (cmd.equals("6")) {
               textArea.append("6");
          if (cmd.equals("7")) {
               textArea.append("7");
          if (cmd.equals("8")) {
               textArea.append("8");
          if (cmd.equals("9")) {
               textArea.append("9");
          if (cmd.equals("0")) {
               textArea.append("0");
     public static void main(String args []) {
     JFrame frame = new PropertyWindow();
     frame.addWindowListener(new WindowAdapter() {
     public void windowClosing(WindowEvent e) {
     System.exit(0);
     frame.pack();
     frame.setVisible(true);
     frame.setResizable(false);
}

Morten,
I have since found that the problem is related to the .DS_store files. If you delete it from the parent folder, the ghost disapears. I found a little application that does this and is easy to use, it's called "DS_Store cleaner" and it's free. It doesn't solve the problem for the future though, but it might illimenate any corrupted .DS_Store files on the server.
Another thing I read, but didn't implement because of the side effects is to set the clients to NOT write the DS_Store on the server. This of corse means that they won't have their settings kept when reopening the folder, that's why I didn't implement it yet, still need to see if it's worth it.
Here is the URL from Apple tech note
http://docs.info.apple.com/article.html?artnum=301711
Keep me posted
Jeff

Similar Messages

  • No exact match was found. Click the item(s) that did not resolve for more options. You can also use Select button to choose External Data.

    HI,
    I have SharePoint Online 2013 environment, i have created a external content type from wcf service. I want to use this as External Data column in document library. When i look for values in content type it populates and when i click any values and adds and
    then click saves it shows the below error
    No exact match was found. Click the item(s) that
    did not resolve for more options. You can also use Select button to choose External Data
    __fkc000950056003700kc000950056003700kc000e400f2001400kc000950056003700k830035004700160027004700d20057000700020064009600870056004600:
    No Matching Items
    Please help on this.
    varinder

    I don't understand the question exactly, could you restate it.  Sorry mate, I might just be braindead.
    But, as far as the issue, it is by design.  the column is a lookup columns which essentially ties to the external data.  if that data is removed, the column on your simple list becomes invalid and any edits of the simple list item will require
    it to be changed.
    are you wanting to make the ECT read only?  that's simple enough.  you can pop open SPD and edit the ECT, then remove the C/E/D operations (create/update/delete).  That will not, however make it read-only in any other systems that access that
    external data, as I assume its not just SP or else it wouldn't be external
    Christopher Webb | MCM: SharePoint 2010 | MCSM: SharePoint Charter | MCT | http://christophermichaelwebb.com

  • How to display line items twice in a single page in sap script

    HI,
      I am working on check printing. I copied the standard driver program and form to Zprogram and ZForm. Which are RFFOUS_C(print program) and F110_PRENUM_CHECK(Form Name).
    I want to display the line items twice in the same page and sub sequent pages.
    Currently I am able to display line items only once.
    Example:
    PAGE1.
    line item1
    line item2
    line item3
    line item4
    line item5
    line item1
    line item2
    line item3
    line item4
    line item5
    line items 1 to 5 which are in main window.
    How to achive this problem.
    Regards,
    vinod

    Hi
    I had the same request for a check form in Canada. I solved it by writing the line item output into variables and print these variables in a second window. It was ~10 hours of effort, not a real nice technical solution but it worked.
    If you require I can send you a PDF of the sap script form definition. You can contact me at [email protected] Answers can take 1 week or more. 
    Best regards
    JD

  • EtreCheck version: 2.1.5 (108) Report generated 4 January 2015 14:29:26 GMT  Click the [Support] links for help with non-Apple products. Click the [Details] links for more information about that line. Click the [Adware] links for help removing adware

    My Mac is very slow and applications take a long time to load, especially Safari and iTunes.  Please help.    I have run the Etrecheck report and these are results.
    Thanks Pat
    EtreCheck version: 2.1.5 (108)
    Report generated 4 January 2015 14:29:26 GMT
    Click the [Support] links for help with non-Apple products.
    Click the [Details] links for more information about that line.
    Click the [Adware] links for help removing adware.
    Hardware Information: ℹ️
      iMac (21.5-inch, Mid 2011) (Verified)
      iMac - model: iMac12,1
      1 2.7 GHz Intel Core i5 CPU: 4-core
      4 GB RAM Upgradeable
      BANK 0/DIMM0
      2 GB DDR3 1333 MHz ok
      BANK 1/DIMM0
      2 GB DDR3 1333 MHz ok
      BANK 0/DIMM1
      empty empty empty empty
      BANK 1/DIMM1
      empty empty empty empty
      Bluetooth: Old - Handoff/Airdrop2 not supported
      Wireless:  en1: 802.11 a/b/g/n
    Video Information: ℹ️
      AMD Radeon HD 6770M - VRAM: 512 MB
      iMac 1920 x 1080
    System Software: ℹ️
      OS X 10.10.1 (14B25) - Uptime: 0:32:50
    Disk Information: ℹ️
      ST31000528AS disk0 : (1 TB)
      EFI (disk0s1) <not mounted> : 210 MB
      Macintosh HD (disk0s2) / : 999.35 GB (717.51 GB free)
      Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB
      OPTIARC DVD RW AD-5690H 
    USB Information: ℹ️
      Apple Inc. FaceTime HD Camera (Built-in)
      Seagate Expansion Desk 2 TB
      EFI (disk1s1) <not mounted> : 210 MB
      Seagate Expansion Drive (disk1s2) /Volumes/Seagate Expansion Drive : 2.00 TB (1.66 TB free)
      Apple Inc. BRCM2046 Hub
      Apple Inc. Bluetooth USB Host Controller
      Apple Inc. iPhone
      Apple Internal Memory Card Reader
      Apple Computer, Inc. IR Receiver
    Thunderbolt Information: ℹ️
      Apple Inc. thunderbolt_bus
    Gatekeeper: ℹ️
      Mac App Store and identified developers
    Kernel Extensions: ℹ️
      /Library/Application Support/Avast/components/fileshield/unsigned
      [loaded] com.avast.AvastFileShield (2.1.0 - SDK 10.9) [Support]
      /Library/Application Support/Avast/components/proxy/unsigned
      [loaded] com.avast.PacketForwarder (2.0 - SDK 10.9) [Support]
    Problem System Launch Agents: ℹ️
      [failed] com.apple.syncservices.SyncServer.plist
    Launch Agents: ℹ️
      [loaded] com.avast.userinit.plist [Support]
      [running] com.epson.Epson_Low_Ink_Reminder.launcher.plist [Support]
      [loaded] com.epson.esua.launcher.plist [Support]
      [running] com.epson.eventmanager.agent.plist [Support]
      [loaded] com.oracle.java.Java-Updater.plist [Support]
      [running] com.trusteer.rapport.rapportd.plist [Support]
    Launch Daemons: ℹ️
      [loaded] com.adobe.fpsaud.plist [Support]
      [loaded] com.avast.init.plist [Support]
      [loaded] com.avast.uninstall.plist [Support]
      [failed] com.avast.update.plist [Support]
      [loaded] com.microsoft.office.licensing.helper.plist [Support]
      [loaded] com.oracle.java.Helper-Tool.plist [Support]
      [running] com.trusteer.rooks.rooksd.plist [Support]
    User Launch Agents: ℹ️
      [loaded] com.adobe.ARM.[...].plist [Support]
      [invalid?] com.avast.home.userinit.plist [Support]
      [running] com.microsoft.LaunchAgent.SyncServicesAgent.plist [Support]
    User Login Items: ℹ️
      iTunesHelper ApplicationHidden (/Applications/iTunes.app/Contents/MacOS/iTunesHelper.app)
    Internet Plug-ins: ℹ️
      FlashPlayer-10.6: Version: 16.0.0.235 - SDK 10.6 [Support]
      Default Browser: Version: 600 - SDK 10.10
      AdobePDFViewerNPAPI: Version: 11.0.07 - SDK 10.6 [Support]
      AdobePDFViewer: Version: 11.0.07 - SDK 10.6 [Support]
      DivXBrowserPlugin: Version: 2.2 [Support]
      Flash Player: Version: 16.0.0.235 - SDK 10.6 [Support]
      OVSHelper: Version: 1.1 [Support]
      QuickTime Plugin: Version: 7.7.3
      JavaAppletPlugin: Version: Java 8 Update 25 Check version
    Safari Extensions: ℹ️
      wrc [Installed]
    3rd Party Preference Panes: ℹ️
      DivX  [Support]
      Flash Player  [Support]
      Flip4Mac WMV  [Support]
      GoToMyPC Preferences  [Support]
      Java  [Support]
      Trusteer Endpoint Protection  [Support]
    Time Machine: ℹ️
      Skip System Files: NO
      Auto backup: YES
      Volumes being backed up:
      Macintosh HD: Disk size: 999.35 GB Disk used: 281.84 GB
      Destinations:
      Seagate Expansion Drive [Local]
      Total size: 2.00 TB
      Total number of backups: 78
      Oldest backup: 2013-07-28 18:09:06 +0000
      Last backup: 2015-01-04 14:29:38 +0000
      Size of backup disk: Adequate
      Backup size 2.00 TB > (Disk used 281.84 GB X 3)
    Top Processes by CPU: ℹ️
          2% WindowServer
          1% mds
          0% fontd
          0% mds_stores
          0% com.avast.daemon
    Top Processes by Memory: ℹ️
      120 MB Safari
      112 MB com.avast.daemon
      94 MB com.apple.WebKit.WebContent
      56 MB spindump
      52 MB mds_stores
    Virtual Memory Information: ℹ️
      479 MB Free RAM
      1.56 GB Active RAM
      1.11 GB Inactive RAM
      904 MB Wired RAM
      5.37 GB Page-ins
      75 MB Page-outs
    Diagnostics Information: ℹ️
      Jan 4, 2015, 01:57:18 PM Self test - passed
      Standard users cannot read /Library/Logs/DiagnosticReports.
      Run as an administrator account to see more information.

    patbythesea wrote:
    Can I assume that with my Mac I do not need any additional virus protection software?  If I do, what should I use?
    See my Mac Malware Guide for help on protecting yourself from malware. You generally don't need anti-virus software.
    (Fair disclosure: I may receive compensation from links to my sites, TheSafeMac.com and AdwareMedic.com, in the form of buttons allowing for donations. Donations are not required to use my site or software.)

  • Can TOC close automaticaly on clicking an item in the TOC?

    Would be nice if the TOC closes when a user is making a selection from that TOC by clicking an item.
    The current behavior is that after clicking the chosen page is opened and the user has to close the TOC manually....
    Version CP 6.0.1.240

    I'm sorry, maybe that variable was not yet available in the dropdown list for Assign in simple actions in your version, which I no longer have installed (have 6.1).
    I have been pleading to add more variables to that simple action dropdown list, and probably that has been done only in 7. My bad.
    Lieve

  • Post Submit Twice Or More

    Hi Everyone!
              We have this problem
              - user claims to click/submit once
              - access.log shows the same form submitted twice or more at the same exact time
              I don't know whether it is due to firewall or any other settings in Weblogic 8.1 SP3 which I am not aware of. Also, could it be also because of the hyperlink we're using instead of "input" submission? Please advise. Any help would be appreciated!
              Attached below is the snipplets of code.
              Thanks in advance,
              Hardy
              <P>
              <p>Load File <br><br>
              function SubmitUploadForm() <br>
              { <br>
                  if(!isSubmit)<br>
                  {<br>
                      isSubmit = true;<br>
                      var inputFileTextBox =
              document[getNetuiTagName("uploadForm")][getNetuiTagName("inputbox")];<br>
                      <br>
                      if (inputFileTextBox.value == '')<br>
                      {<br>
              disableProcessing();<br>
                      }<br>
                      else<br>
                      {<br>
              enableProcessing();<br>
                      }<br>
                  document[getNetuiTagName("uploadForm")].submit();<br>
                  }<br>
              }</p>
              <p>function disableProcessing()<br>
              {<br>
                  document.getElementById ("processing").style.display =
              'none';<br>
                  document.getElementById ("button_disabled").style.display =
              'none';<br>
              }</p>
              <p>function enableProcessing()<br>
              {<br>
                  document.getElementById ("processing").style.display =
              'inline';<br>
                  document.getElementById ("button_disabled").style.display =
              'inline';<br>
                  document.getElementById ("button_enabled").style.display =
              'none';<br>
              }</p>

    Hi
              Check at www.javaranch.com ( search for double request )
              Jin

  • Java Exception during we click the item short description in search result

    Hi Experts,
    We are in SRM-MDM Catalog 3.0.
    When we click a item's short description in catalog search result list to open the item detail, the new screen opened with a internal server error. And the error summary is "java.lang.NullPointerException: The relationship ID is not an optional parameter." I have validated the XML mapping, I can not find any fields which were used for the "relationship ID".
    The SAP notefound  in a forum is for SRM MDM Catalog 3.0 SP02 but we are using SRM MDM Catalog 3.0 SP09.Can anyone
    please advise.
    Below is error
    500 Internal Server Error
    SAP NetWeaver Application Server 7.00/Java AS 7.00
    Failed to process request. Please contact your system administrator.
    Hide
    Error Summary
    While processing the current request, an exception occured which could not be handled by the application or the framework.
    If the information contained on this page doesn't help you to find and correct the cause of the problem, please contact your system administrator. To facilitate analysis of the problem, keep a copy of this error page. Hint: Most browsers allow to select all content, copy it and then paste it into an empty document (e.g. email or simple text file).
    Root Cause
    The initial exception that caused the request to fail, was:
    java.lang.NullPointerException: The relationship ID is not an optional parameter. at com.sap.mdm.data.commands.RetrieveRelationshipsCommand.execute(RetrieveRelationshipsCommand.java:91)
    at com.sap.mdm.extension.data.commands.RetrieveRelationshipsExCommand.execute(RetrieveRelationshipsExCommand.java:43)
    at com.sap.srm.mdm.Model.getRelationships(Model.java:3510)
    at com.sap.srm.mdm.Model.updateRecordRelationships(Model.java:3683)
    at com.sap.mdm.srmcat.uiprod.ItemDetails.displayFixedItemDetails(ItemDetails.java:6047)
    ... 34 more
    Regards
    Sunil

    Hi Sunil,
    There is only one cause for Nullpointer exception. The connectivity between the source and target system no longer exist .
    Please restart the MDM server once this might help .
    Regards,
    Vignesh

  • Folders appear twice or more in finder

    I'm having trouble with a couple of macs that I just freashly installed Tiger 10.4.6. These machines are all dual 2ghz G5, they connect to the same server, which is a dual 2.3Ghz G5 running OS X server 10.4.6. I have other macs with the same software version with all the same patch applied, including the last security update, but none with the Quicktime 7.1 update. The problem is that they sometime see the same folder twice or more on the server. They can change from list view to icon view to column view with no change on that behavior. If they click on either of the folder, they see the same content, this is basicly a ghost, or a twin, or whatever you want to call it. If you delete one, all folders with the same name are gone (it's a good thing we have good backups, because it happened a couple of times).
    I've restated the server and ran Cocktail and repaired permission with the disk utility. Done the same thing on all 3 macs having this problem, and they still see the problem. The only mean to eliminate this duplicate is via an application and saving a document in one of the folder, which will then realise has a double and will appear has just one folder. Some other time, the opposite appends. From Illustrator CS2, if you save as pdf in a folder, it will duplicate it has often has you have exported pdf to it. So if you export 6 different document to pdf in the same folder, it will appear 6 times in the finder! Very annoying and confusing for the users.
    Anybody seen this? I've looked everywhere but couldn't find anything.
    TIA
    Jeff

    Morten,
    I have since found that the problem is related to the .DS_store files. If you delete it from the parent folder, the ghost disapears. I found a little application that does this and is easy to use, it's called "DS_Store cleaner" and it's free. It doesn't solve the problem for the future though, but it might illimenate any corrupted .DS_Store files on the server.
    Another thing I read, but didn't implement because of the side effects is to set the clients to NOT write the DS_Store on the server. This of corse means that they won't have their settings kept when reopening the folder, that's why I didn't implement it yet, still need to see if it's worth it.
    Here is the URL from Apple tech note
    http://docs.info.apple.com/article.html?artnum=301711
    Keep me posted
    Jeff

  • How to find out if a long String has a "subString" twice or more.

    I need to find out if a long String has the same number twice or more.
    I need to look matches for numbers running from 000, 001....999 and if a number is found twice or more, return that number and lines there were found.
    example String:
    -;000 ; 1 ; 2006-12-11 ; -; job;
    x;001 ; 2 ; 2006-12-11 ; 2006-12-12; do this
    -;002 ; 3 ; 2006-12-11 ; -; work
    -;003 ; 0 ; 2006-12-11 ; -; some
    -;004 ; 2 ; 2006-12-11 ; -; thing
    x;005 ; 1 ; 2006-12-11 ; 2006-12-11; reads
    -;003 ; 0 ; 2006-12-11 ; -; here
    Should return from example String:
    003 at lines 4 and 7
    Any ideas?

    So there are newlines in the String?
    You could use a StringTokenizer to break the String into lines, then searching on each line if it contains any of the search strings. (You need to clarify if a line can contain more than one search string).
    Probably you should use a Map<String, Integer> to record the searchcounts.
    Or an int[] Array if you are really sure that the Strings you search for really are numbers.
    Another option is to use:
    LineNumberReader lnr = new LineNumberReader(new StringReader(searchString));This will save you from explicitly having to take care for the line number.
    In any case your example looks like the individual lines are semicolon separated fields and the numbers you search for always are in column two.
    So after breaking up the original String in lines, you could use another StringTokenizer to break up the line in fields.

  • Cannot click on items on the fringe of a webpage

    I have Firefox 14.0. I have att.net with Yahoo mail, classic. When I open a webpage either through mail or browser, I cannot click on items on the fringe of the page. I have no problem when I use Google Chrome. What am I doing wrong?

    That problem can be caused by an extension like the Yahoo! Toolbar or a Babylon extension that extents too much downwards and covers the top part of the browser window and thus makes links and buttons in that part of the screen not clickable.
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode

  • Click selectlist item then call a procedure

    Hi
    Please
    Can you advice for click selectlist item then call a procedure?
    selectlist-> create dynamic action ->standart->
    selection type=items
    items= P2_SP
    then I am confused .

    Did you mean "click" Select list or "change" select list ?
    I am guessing that its "change" (click doesn't necessarily change anything in the page)
    <li>Create Dynamic Action -> Advanced
    <li>Name,Sequence
    <li>Event:Change
    <li> Selection Type : Item
    Item Name
    <li>Action : PLSQL
    PLSQL Code
    BEGIN
      procedure_name(<parameters>);
    END;Use the Items to submit field for any item that you use in the PLSQL code.

  • User Status automatically checked when a order is scheduled twice or more

    Hello Friends
    We created a User Status called "Rescheduled" for Work Orders
    We want that the system flag this status automatically when a order is scheduled twice or more in CM33
    Is that possible?
    Edited by: Davison Tadeu Avigo on Jul 14, 2011 4:23 PM

    Davison Tadeu Avigo
    Yes it would be possible, but you would need to develop a solution for this..
    PeteA

  • How to display images for right click menu items

    I am trying to display some image to the left of my right click menu items.I have searched the help but did't find anything wich can add an image to the menu items. If anyone knows how to do it, Please share 
    Thank to all.
    If you are young work to Learn, not to earn.

    Hi Mr,
    you should have searched the topic 'Programming with Menu Bars'
    Use the ATTR_SHOW_IMAGES attribute to add a column in the menu in which images can be placed. Then use the ATTR_ITEM_BITMAP attribute to specify an image to use for a submenu or menu item

  • ADF_FACES-60098 when clicking navigation item in UIShell for the first time

    Hi all,
    I have created a page based on dynamic tabs, in the navigation pane when I click any item for the first time I get the error below, but the second click is working correctly, I am trying to lunch one of fragments on page load and because of this error it doesn't work,
    I am using jdeveloper 11.1.2.2, and my navigation launcher bean is in request scope and I have tested the default launcher in both request and backing scope.
    I also implemented beforePhase listener and loaded it as : <af:clientListener method="initialize" type="load" />.
    error stack in log:
    <LifecycleImpl> <_handleException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase INVOKE_APPLICATION 5
    java.lang.NullPointerException: UIComponent is null
    at org.apache.myfaces.trinidad.component.UIXComponent.addPartialTarget(UIXComponent.java:751)
    at org.apache.myfaces.trinidadinternal.context.RequestContextImpl.addPartialTarget(RequestContextImpl.java:539)
    at oracle.adfinternal.view.faces.context.AdfFacesContextImpl.addPartialTarget(AdfFacesContextImpl.java:661)
    at oracle.ui.pattern.dynamicShell.TabContext._refreshTabContent(TabContext.java:504)
    at oracle.ui.pattern.dynamicShell.TabContext.setSelectedTabIndex(TabContext.java:339)
    at oracle.ui.pattern.dynamicShell.TabContext.addTab(TabContext.java:210)
    at oracle.ui.pattern.dynamicShell.TabContext.setMainContent(TabContext.java:114)
    at oracle.ui.pattern.dynamicShell.TabContext.setMainContent(TabContext.java:88)
    at com.enlogix.view.backing.MainTabShellLauncherBean._launchActivity(MainTabShellLauncherBean.java:181)
    at com.enlogix.view.backing.MainTabShellLauncherBean.launchDefaultActivity(MainTabShellLauncherBean.java:62)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.sun.el.parser.AstValue.invoke(Unknown Source)
    at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
    at oracle.adf.view.rich.event.ClientListenerSet.invokeCustomEventListeners(ClientListenerSet.java:174)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl$DeliverClientEvent.invokeContextCallback(LifecycleImpl.java:1881)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1735)
    at org.apache.myfaces.trinidad.component.UIXDocument.invokeOnComponent(UIXDocument.java:106)
    at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:1321)
    at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:678)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeCustomEvents(LifecycleImpl.java:550)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:436)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:207)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:508)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.share.http.ServletADFFilter.doFilter(ServletADFFilter.java:65)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
    at com.enlogix.view.security.ENGLPBindingFilter.doFilter(ENGLPBindingFilter.java:381)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:125)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Does anybody have workaround about it?
    thank you in advance
    Alireza

    Not sure why you wanted to implement beforePhase listener, but did you try commenting out your custom code and check? All the refreshTabContent does is to refresh the components that comes along with the template. It works fine for me. So, as Timo said, check your custom code or try commenting the code and narrow down the issue.
    private void _refreshTabContent()
    AdfFacesContext.getCurrentInstance().addPartialTarget(getTabsNavigationPane());
    AdfFacesContext.getCurrentInstance().addPartialTarget(getContentArea());
    AdfFacesContext.getCurrentInstance().addPartialTarget(getToolbarArea());
    AdfFacesContext.getCurrentInstance().addPartialTarget(getInnerToolbarArea());
    }

  • How can I open the browser on clicking a item in my JMenu

    How can I open the IE with a webpage on clicking a item in my "Help" context menu in my application.
    *. I have a Help menu with different help topics
    *. In one of the item of the menu I want to provide a URL link which should open in the Default browser (IE/ Mozilla)
    Any solution would be appreciated.
    Thanks

    try these:
    http://forum.java.sun.com/thread.jspa?forumID=57&threadID=718184
    http://www.croftsoft.com/library/tutorials/browser/
    Message was edited by:
    dberansky

Maybe you are looking for

  • HT3529 why is the phone number for imessage grayed out

    When I sign in with my apple ID and then click next, it grays out the phone number and i'm unable to use it. I don't want to use my email but it won't let me have access to my phone number. Please Help! Thanks.

  • Access from wireless client

    I want to access an application built up using XSQL Pages with a wireless client (Nokia). How do I configure my server to recognize the MIME type?

  • C3 - 00 ovi chat

    I can send chat messages to another Nokia user, they receive them, but I can't receive or see what they send back - it seems like it must be something simple to change but I've tried everything!

  • ESS  Quick Links

    1)Does anyone know how to change the description of a Quick Link in Homepage Framework from "Quick LInk Services" to "Quick Link" 2) Is it possible to make the text which says "Quick Link Services" completely disappear. 3) if I want to make the link

  • Personalization server & Sybase.

    Did anyone try to run the WebLogic Personalization server against Sybase instead of Cloudscape? How easy is it to install the configuration tables in Sybase? Do I need to make any changes to the installation scripts that come with the product? Thanks