JTextArea doesn't loose the focus

Hi everybody,
I programmed a graphical interface with two JTextAreas and six JTextFields. Using the program
means that I delete the text of both JTextAreas and paste new text. An algorithm calculates
the results. After that I insert new text and start the algorithm again. After two or three deletions
and insertions one of the JTextAreas doesn't loose the focus and I can't write on it, but I can
click to another field or area and then I have got two mouse pointer.
I hope someone has an idea.
Thank you for your help. Katja

Please post your code so that somebody may check for
you.Here the source code of one JTextArea.
seq1label = new JLabel("Target sequence:");
     sequence1 = new JTextArea("MAEPFSTILGTDGSGGRCKYLNKGIVGLGSYG", 10, 100);
     sequence1.setFont(fontplain);
     sequence1.setBackground(general.BACKCOLOR);
     JScrollPane scrollpane1 = new JScrollPane(sequence1);
     JPanel panelseq1 = general.makePanel();
     panelseq1.setLayout(new BorderLayout());
     panelseq1.add(introduction, BorderLayout.NORTH);
     panelseq1.add(seq1label, BorderLayout.CENTER);
     panelseq1.add(scrollpane1, BorderLayout.SOUTH);
I hope it is enough.

Similar Messages

  • Adobe CC Updated disappears, if it loose the focus!

    Hi!
    I updated the Adobe CC Updater, but I've still this issue:
    If the Adobe Updater loose the focus, it disappears. Then I've to open it again via the Systray.
    That is a little bit annoying, especially if you want just to use your password manager to login again, as the updater continues to forget the login credentials.
    Could you please disable this "feature", that the Adobe CC Updater disappears, if it loose the focus?
    The only positive thing is: It really just disappears and does not close! So the entered information are still there, but the window is not available until you reopen it. But still it's a little bit annoying!
    Thanks

    https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform for bugs or feature requests

  • How do you make a portrait view that doesn't loose the pictures?

    I'm trying to layout a portrait view book in iBooks Author and I don't understand why Apple doesn't include a template that doesn't lose the pictures when you change screen orientation. Seeing that 99.9% percent of all paper books in the world are in portrait view I would have expected this to be the default view rather than landscape view. Has anybody been able to make a portrait view book that retains the graphics and other bells and whistles or am I just banging my head against the wall?

    In portrait mode the figures and things are always links down the side of the text. The only way I found to stop them disappearing was to insert them in portrait mode. They don't disappear when you change back to landscape, you just have to move them to wherever it is you want them to be. The best workflow is edit in portrait, then switch to landscape for formatting.

  • Open URL Ivew in a new window without loosing the current session in Portal

    Hi All ,
    I have a requirement in which there are two tabs in portal which are two roles A and B
    Where each tabs(role) has an URL Iview attached to it.
    Current I am in Window 1 - Tab A
    When I click on Tab B, it has to open in a new window (Window2) with Tab B content , where as the previous session (Window1)is not lost and Window1 has to show Tab A only.
    Kindly help me out on how to implement it .
    Thanks in Advance

    Hi All ,
    Thanks for the reply and sorry for the late response. 
    As per Prashant  I made the setting .. When I click Tab 2 in Window 1,  opens  a new window 2 with Tab 2 iview .but the window 1 is hilighted with Tab B and the current session on Tab A is lost . As per the reqiirement I should not loose the focus on Tab A in Window1.
    also Kindly let me know how and where can I sent the EPCM paramenter for the URL Iview .
    Thanks in Advance
    Edited by: Prasanna Kumar on Feb 21, 2012 12:42 PM

  • Problem: who has the focus when a comp lost the focus

    I've a JPanel with textfields. When I loose the focus of the textfield I validate the input. So far so good. When I click outside the panel the validation shouldn't be made. But I can't add Listeners to all the other panels, because it should be dynamic. I know in java1.4 there is the possibility to get to know who the owner of the Focus is.
    I use jdk1.3.1.04.
    Thanks.
    christian

    Hi,
    We had same problem.
    Maybe its not the best idea, but its working.
    We made managed bean,which can requery, and focus row on iterator.
    We force to requery the iterator like this:
    FacesContext fc = FacesContext.getCurrentInstance();
    ValueBinding vb =
    fc.getApplication().createValueBinding("#{data." + iteratorName+ "}");
    DCIteratorBinding ib = (DCIteratorBinding)vb.getValue(fc);
    ib.executeQuery();
    Later we force iterator to focus on key on which it was:
    ib.setCurrentRowWithKeyValue(KEY);
    KEY is String and is passed before commit.

  • LR does not take the focus

    LR doesn't take the focus when a pre-launch windows opens first--i.e. the 'backup catalog window' or the 'choose catalog' window.
    This is frustrating because LR sits in front of all other windows and therefore looks to have the focus, but to get the actual focus on LR I have to cycle to the LR window (alt+tab) or click on LR in the task bar.
    OS=Vista
    Taskbar set to autohide.

    There are still broken links with backslashes in that frame (right-click context menu: This Frame > Reload Frame).<br />
    Only the first two have a forward slash.<br />
    I have a bookmarklet to fix such links (86 originally, still 84 links left) and that makes the images show.
    It is amazing that the pages with the backslashes also were uploaded (you may want to remove those!):
    *http://www.autogamma.com/FastSP/pompe%5CPL103.html
    *http://www.autogamma.com/FastSP/pompe/PL103.html

  • How can i get the content of JTextArea with out loosing Indentation.

    I am developing one mail sending application. I am getting mailid , from address, mail body from one Swing. In one JTextArea i am typing i have typed some matter. When i call the content of JTextArea using
    jtx.getText() method, i am getting all the content as one paragraph. That means there is no indentation which was there in TextArea.
    Please provide me some solution how can i get the content of JTextArea wiht out loosing indentation.

    And it was you who asked the question!

  • Moving the Focus with the TAB key in a JTextArea Component

    Dear Friends,
    I have exhausted all options of moving focus from JTextArea to next component. I have also tried all suggestions available in this forum. But i'm not able to solve my problem. Can any one help me.
    Thanx in advance.

    I had the same problem before. Here is what i did.
    JTextArea txtArea = new JTextArea(2,15);
    Set forwardTraversalKeys = new HashSet();     
    forwardTraversalKeys.add(KeyStroke.getKeyStroke(KeyEvent.VK_TAB, 0));          
    txtArea.setFocusTraversalKeys(KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS,forwardTraversalKeys);          
    Set backwardTraversalKeys = new HashSet();          
    backwardTraversalKeys.add(KeyStroke.getKeyStroke(KeyEvent.VK_TAB, InputEvent.SHIFT_MASK));          
    txtArea.setFocusTraversalKeys( KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS, backwardTraversalKeys);
    JScrollPane scrollPane = new JScrollPane(
         txtArea,
            JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
            JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
    // the scrollbar of the JScrollPane is focusable that's why it requires
    // another TAB key to transfer the focus.
    scrollPane.getVerticalScrollBar().setFocusable(false);

  • Unable to use the focus feature on a field

    hi,
    I have the need to manipulate the focus event of a field. This is my pdf body structure :
    form1 ----> form
    |_ a ----> page
    |_b ----> textfield
    |_c ----> textfield
    The idea is to test if the user pressed the key "ESC", "TAB" or "ENTER" when exiting from field "b". If so, and after testing the content of the field, i wanted to set the focus on that same field "b" to let the user proceed with the correction.
    I tried with the "xfa.event.commitKey" to see if the "ESC", "TAB" or "ENTER" keys where pressed while exiting the field. I then redirected the focus to different fields named "ESC", "TAB" and "ENTER" just to be sure that i was getting the correct keys.
    This feature works if i set the focus in a different field than the one i'm exiting.
    Then, i tried a different approach. On the exit event of the field, i placed the following code :
    app.setTimeOut("this.getField('form1[0].a[0].b[0]').setFocus()", 1000);
    This would do the same as the setFocus after a while.
    For what i could see, catching the events with the "xfa.event.commitKey" for the "ESC", "TAB" or "ENTER" key works alright. The problem is to set the focus to the current field ( the one where the exit event is being analyzed ). However, if i change the destination field to any other field on the form, all the scripts work.
    Following the structure that i have on top, it the exit event is being analyzed on field "b" and the "setFocus" or the "app.setTimeOut" scripts indicate field "b" as destination, it doesn't work.
    If i change the destination field to be "c", all the scripts work as expected. It seems like there is a problem with setting the focus on the field that i'm exiting from.
    Any ideas on this ???
    Thanks.

    Does anyone have a solution to this problem?
    I'm urgently trying to find a workaround, but nothing seems to work.
    The focus on the current field works in acrobat reader versions above 8.0, but in 8.0 it just doesn''t work...
    To reiterate:
    On the exit event of a textbox I need to display a validation message if a certain condition is met. I then need to refocus on the same textbox after the "ok" button is clicked in the validation warning.
    My setFocus code is correct, but it just doesn't work in 8.0.
    Thoughts?

  • How do I fix my mac so that the window I am looking at has the focus?

    I am a new mac user and at present beyond comprehension of how people cope with mac if they are not primarily mouse oriented.
    Current problem.
    I close an app using apple key W
    It closes
    I am looking at a window of another app. I want to close that too. Apple key W. Nothing. This window does not have the focus. No keyboard actions will make it do anything. And the bar at the top of the screen is still the bar for the app I have just closed, but that does not respond to the keyboard either. At this point, no keyboard action will affect either app.
    As a one time developer I have to say that in any context I am familiar with this would be considered a major show stopping bug, and the programmer would get into a lot of trouble if the software went out in this condition.
    Certainly, for a user who lives by the keyboard coming from linux / windows, both of which do what I consider sane and sensible things in all places and at all times, this is a major *** situation!
    Please can someone tell me how to get my mac to behave more 'sensibly'.
    I want the window I am looking at, the only window visible on the screen, to have the focus. Always. No matter what! Which I think is entirely reasonable.

    Thank you for all your points.
    It can't automatically be the one you want without some instruction from you - the cmputer is not a mind reader, can not seenwhat holds your attention.
    Darn!
    In Windows and Linux it is automatically the last one in use before you closed the window(s) that have been closed. This is the window naturally lying topmost in the stack of windows on the screen. It is this window which is exposed in the circumstance I am describing. And it is this window which I expect to have the focus in this circumstance.
    More to the point, and has been mentioned several times - unlike Windows, when you close the last window of a Mac app, the program is not quit (usually - there are exceptions). The program is still running, as is indicated by the 'running light' on the Dock (the small bluish oval underneath the app's icon in the Dock), even though it has no windows open.
    It is not running with an invisible window being the focus - it has no windows at this point, not even an invisible one.
    Yes, understood - naturally enough after a few hours exposure to the mac interface. And I would assume that none of the quitted windows in that app will have the focus, which would be nonsensical.
    The overall 'focus' is still on that program, because it is still running (you closed its windows, but did not quit the program) and will remain so until you instruct the Mac to switch to a different program in the stack (or queue, or rotation, however you choose to consider it).
    Yes. WHY?
    Whether program closes when you close the last window is an interesting point. Mac do it different to the others. OK. But this program should not have the focus, unless there is something useful you can do with it. I would have thought obviously.
    Why have a program quit when you close its last window? Doesn't make sense to me - can't tell you how many times that behavior with a PC has irked me. Consider this scenario - you're writing a memo to someone in TextEdit. You print the memo off. You're done with that doc, but then want to write a letter to someone. So you close the window for that file, which happens to be the last window open for TextEdit. If TextEdit should quit at that point, you'd need to restart it again before you can write the letter. But - it doesn't quit; it's still running. So instead of restarting it, all you need do after closing the memo's window is press Command-N for a new, blank doc in which you can write the letter.
    I agree. This is very useful - once you are used to it. Certainly, this is an excellent option, though it seems crazy that it is not a readily settable option. Equally though, if I was going from mac to windows or linux, I would be totally peeved if this behaviour was not a settable option.
    Regardless, this is the way it is in the Mac world, and has always been as far back as I can remember it (and I go back to OS 1 on a MacPlus). As far as 'industry standards' go, there are many who feel that Macs set the GUI standards a long time ago, and that those wo have imitated it have not done a good job of their implementations.
    I totally take your point. And I am ready and willing to learn a new interface, naturally, though I had no idea the journey would be so extensive. [] "More ruddy stairs" says the elderly ghost of the recently deceased David Emery grumpy old git character, who hobbles along with a cane, confronted with a loooong flight of stairs up to heaven []
    - elsewise I'm going to cause myself an inordinate amount of frustration when my impossible-to-meet expectations aren't met.
    Of course I have impossible-to-meet expectations, I got a mac, the doyen of computers. I thought a faint mysterious hint of a sound might be present in the faint whirr of the fans at start up, like far off angelic choirs, and that everything would be easy and wonderful, as well as beautifully easy on the eye.
    But I still think that the focus shoud go somewhere useful. And if it stays with the app running with no windows, then at the very least it should be one keyboard shortcut to open a window for that app, or reopen the last window of that app. Or, gasp, it should go to the last window in use before the windows of the app that just got closed, the one on top of the stack, the one straight in front of you, currently impervious to any and all keyboard strokes. And, given the price and sophisication of macs, and the significant gap between the GUI standards of the major players, however long they have respectively been in business, I think it is the kind of thing which should be settable. Indeed, confident that this was settable or 'fixable', I embarked on this thread in the first place.
    EOL

  • How can I surrend the focus of Jcombobox in Jtable?

    There are a jcombobox for each row of a jtable. I can click each cell to choose some value from the item list of jcombobox.
    The problem is, when I import data into the table by changing the values of tablemodel, if some cell still hold the focus, the table won't show the new imported data for this specific cell, but keep the old one. Others cells without focus work well.
    For example, originally I choose a "Monday" from the combobox with focus. When I import new data (by clicking some button), for instance "Tuesday", the new data doesn't show in the focused cell.
    So, how can I surrend the focus of this specific cell to other components, for instance, some button?

    In your action for your button, before you update your table with the imported information do the following:
    if (myTable.isEditing())
        myTable.getCellEditor().stopCellEditing();
    }

  • How to get the focus in a Table Control

    Hello Experts,
                         I have a simple Table control in my screen . I want to know under which column my cursor is ? Basically i want to get the focus the table control . How can i achieve this  ?
    Thanks
    Vivek

    >
    Vivek Joshi wrote:
    > Hello Router ,
    >                      I do not want to set the focus , I want to get focus . User can click on any cell in the table and then press a button in the toolbar . Now in the event handler of the button i want to under which column User has set the focus .
    > I hope , I am clear now .
    > Thanks for your help
    > Regards
    > Vivek
    An yet you keep getting suggestions of how to set the focus.   I looked through the API documentation and I don't see anything that would suggest you can request to see where the current focus is.  Perhaps someone might still come along with a solution, but my hopes wouldn't be too high at this point.  I can pass the requirement onto Product Definition, as the use case does seem interesting.  Perhaps it is something we have even considered in the past. 
    But for now, there might be a better way to solve your problem.  It will probably mean redesign the interaction.  What exactly are your requirements?  Do you need to be able to get the data in a particular cell of table when a button is clicked?  Just throwing out some ideas here, but maybe just use the lead selection to select the row, but then have a button choice to choose the action associated with the column you want. A hack for sure - but it might work.  Also it doesn't help you right now, but in the near future update to NetWeaver 7.0, WDA does have a onColSelect event for the table.

  • How to keep the focus in a table cell as long as it is invalid?

    Hello,
    if you run the following code and enter some alphabetic characters in the Integer column,
    you can't get out of the cell as long as focus transfer is within the table. But if you click in the textfield,
    the cell is left invalid. (If you click in the textfield immediately after the false edit, the cell even doesn't
    show the red border)
    I tried to attach a focusListener to the table, but that makes editing the table impossible.
    I also could attach a focusListener to each and every other component of the form,
    and checking the table there in focusGained - but that looks rather awkward.
    How would you proceed?
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.table.*;
    public class InvalidInput extends JFrame {
      public InvalidInput() {
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        setLayout(new FlowLayout());
        setSize(200, 200);
        setTitle("InvalidInput");
        final String HEADER[] = {"Integer", "String"};
        DefaultTableModel dtm= createTableModel(HEADER);
        dtm.addRow(new Object[] {new Integer(100), "Item 1"});
        dtm.addRow(new Object[] {new Integer(200), "Item 2"});
        final JTable table= new JTable(dtm);
        table.addFocusListener(new FocusAdapter() {
          public void focusLost(FocusEvent e) {
         System.out.println(table.isEditing());
         if (table.isEditing()) {
           boolean b= table.getCellEditor().stopCellEditing();
           System.out.println(b);
    //       if (!b) table.requestFocusInWindow();
    //       if (!b) table.changeSelection(table.getEditingRow(),
    //                         table.getEditingColumn(), false, false);
           if (!b) {
             DefaultCellEditor editor= (DefaultCellEditor)table.getCellEditor();
             editor.getComponent().requestFocusInWindow();
        JScrollPane scrollPane = new JScrollPane(table);
        scrollPane.setPreferredSize(new Dimension(195,55));
        add(scrollPane);
        JTextField tf= new JTextField(10);
        add(tf);
        setVisible(true);
      public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
          public void run() {
         new InvalidInput();
      private DefaultTableModel createTableModel(Object[] columnNames) {
        DefaultTableModel tblModel= new DefaultTableModel(columnNames, 0) {
          public Class getColumnClass(int column) {
         return getValueAt(0, column)==null ? Object.class :
                                   getValueAt(0, column).getClass();
        return tblModel;
    }Edited by: Jörg on 04.03.2012 14:52
    A big improvement is to apply
    table.putClientProperty("terminateEditOnFocusLost", Boolean.TRUE);for this at least reverts the erroneous input to the last valid value.
    Still I would prefer either to inform the user of this reversion or to red-border the erroneous cell;
    for sometimes the [OK] button is at the bottom of a long form and putting one's eyes there for
    clicking, one doesn't necessarily notice the reversion which happens at the top.

    Thanks to both of you!
    @Jeanette
    In my real application I use a JFormattedTextField as editor. Checking my overridden stopCellEditing() method I become aware that the contents of JFormattedTextField (getText() or super.getCellEditorValue()) arrives there already reverted. Thus it's no wonder that I cannot return false.
    simply removes the editor on column resizingYikes! - Fortunately the table in question is not resizable.
    SwingX has a NumberEditorExHow would you proceed if you didn't know that class and were looking for it? I still don't manage to navigate successfully on java.net.
    @Walter
    Never thought of this. Seeing that someone is checking for me (red border), I'd rather lazily let him continue doing the job. But a DocumentListener looks like being a way out.

  • How can I set the focus to a field on a Portal form?

    Can anyone tell me if it is possible to set the focus to a particular field on a form which was created in Portal and is based on a PL/SQL procedure?
    The form contains a mixture of field types and also takes parameters from another form and displyas them.
    I have managed to set the focus on a form which is defined dirdctly in a PL/SQL procedure, using Javascript, but this doesn't seem to work for a Portal form.

    Hi,
    look at the discussion on May 25:th 2001, subject "How to get the cursor into a specific field", it might give you an idea.
    To give you some hint right now:
    In the "Additional PL/SQL Code" tab, "Before displaying the page", add following code:
    htp.p('<BODY onLoad="document.forms[0].elements[6].focus();">');
    forms[0] if you only have 1 form, and elements[the number of the item you want to be in focus]
    I hope this could help you
    /Sara

  • USB flash disk is not mounting, Xfce doesn't remember the setting

    Hello,
    I'm new in Archlinux and I think I can't set up it well. I use Linux for four years /Ubuntu, Debian/.
    Now I have installed system with X server, Slim and Xfce.
    1/ I have one big problem. I want to automount my flashdisk but it doesn't work like in Debian. I don't know what is wrong. When I put my flashdisk to USB, it's blinkig but nothing else happened. But I see the flashdisk in lsusb
    [root@arch martin]# lsusb
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 004 Device 003: ID 04d9:048e Holtek Semiconductor, Inc. Optical Mouse
    Bus 001 Device 003: ID 1005:b113 Apacer Technology, Inc. Handy Steno 2.0/HT203
    2/ Xfce doesn't remember the settings... When I log out and log in again, the panel, desktop and keyboard have the default settings all the time.
    3/ All is in english. I'm from Czech Republic /excuse my bad english/ and I want to have applications in czech language. I've set up and generated locales but nothing happened...
    Thank you a lot to solve those problems!!
    Some files...
    rc.conf
    # /etc/rc.conf - Main Configuration for Arch Linux
    # LOCALIZATION
    # LOCALE: available languages can be listed with the 'locale -a' command
    # DAEMON_LOCALE: If set to 'yes', use $LOCALE as the locale during daemon
    # startup and during the boot process. If set to 'no', the C locale is used.
    # HARDWARECLOCK: set to "", "UTC" or "localtime", any other value will result
    # in the hardware clock being left untouched (useful for virtualization)
    # Note: Using "localtime" is discouraged, using "" makes hwclock fall back
    # to the value in /var/lib/hwclock/adjfile
    # TIMEZONE: timezones are found in /usr/share/zoneinfo
    # Note: if unset, the value in /etc/localtime is used unchanged
    # KEYMAP: keymaps are found in /usr/share/kbd/keymaps
    # CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
    # CONSOLEMAP: found in /usr/share/kbd/consoletrans
    # USECOLOR: use ANSI color sequences in startup messages
    LOCALE="cs_CZ.utf8"
    DAEMON_LOCALE="no"
    HARDWARECLOCK="localtime"
    TIMEZONE="Europe/Prague"
    KEYMAP="cz-qwertz"
    CONSOLEFONT="lat2-16"
    CONSOLEMAP="8859-2"
    USECOLOR="yes"
    # HARDWARE
    # MODULES: Modules to load at boot-up. Blacklisting is no longer supported.
    # Replace every !module by an entry as on the following line in a file in
    # /etc/modprobe.d:
    # blacklist module
    # See "man modprobe.conf" for details.
    MODULES=(nvidia)
    # Udev settle timeout (default to 30)
    UDEV_TIMEOUT=30
    # Scan for FakeRAID (dmraid) Volumes at startup
    USEDMRAID="no"
    # Scan for BTRFS volumes at startup
    USEBTRFS="no"
    # Scan for LVM volume groups at startup, required if you use LVM
    USELVM="no"
    # NETWORKING
    # HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
    HOSTNAME="arch"
    # Use 'ip addr' or 'ls /sys/class/net/' to see all available interfaces.
    # Wired network setup
    # - interface: name of device (required)
    # - address: IP address (leave blank for DHCP)
    # - netmask: subnet mask (ignored for DHCP) (optional, defaults to 255.255.255.0)
    # - broadcast: broadcast address (ignored for DHCP) (optional)
    # - gateway: default route (ignored for DHCP)
    # Static IP example
    #interface=eth0
    #address=192.168.0.2
    #netmask=255.255.255.0
    #broadcast=192.168.0.255
    #gateway=192.168.0.1
    # DHCP example
    interface=eth0
    address=
    netmask=
    gateway=
    #interface=
    #address=
    #netmask=
    #broadcast=
    #gateway=
    # Setting this to "yes" will skip network shutdown.
    # This is required if your root device is on NFS.
    NETWORK_PERSIST="no"
    # Enable these netcfg profiles at boot-up. These are useful if you happen to
    # need more advanced network features than the simple network service
    # supports, such as multiple network configurations (ie, laptop users)
    # - set to 'menu' to present a menu during boot-up (dialog package required)
    # - prefix an entry with a ! to disable it
    # Network profiles are found in /etc/network.d
    # This requires the netcfg package
    #NETWORKS=(main)
    # DAEMONS
    # Daemons to start at boot-up (in this order)
    # - prefix a daemon with a ! to disable it
    # - prefix a daemon with a @ to start it up in the background
    # If something other takes care of your hardware clock (ntpd, dual-boot...)
    # you should disable 'hwclock' here.
    DAEMONS=(hwclock syslog-ng dbus udev evdev network netfs crond slim)
    eth0="dhcp"
    INTERFACES=(eth0)
    ROUTES=(!gateway)
    /etc/X11/xinit/xinitrc
    #!/bin/sh
    userresources=$HOME/.Xresources
    usermodmap=$HOME/.Xmodmap
    sysresources=/etc/X11/xinit/.Xresources
    sysmodmap=/etc/X11/xinit/.Xmodmap
    # merge in defaults and keymaps
    if [ -f $sysresources ]; then
    xrdb -merge $sysresources
    fi
    if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
    fi
    if [ -f "$userresources" ]; then
    xrdb -merge "$userresources"
    fi
    if [ -f "$usermodmap" ]; then
    xmodmap "$usermodmap"
    fi
    # start some nice programs
    if [ -d /etc/X11/xinit/xinitrc.d ] ; then
    for f in /etc/X11/xinit/xinitrc.d/* ; do
    [ -x "$f" ] && . "$f"
    done
    unset f
    fi
    #twm &
    #xclock -geometry 50x50-1+1 &
    #xterm -geometry 80x50+494+51 &
    #xterm -geometry 80x20+494-0 &
    #exec xterm -geometry 80x66+0+0 -name login
    exec ck-launch-session startxfce4
    /etc/slim.conf
    # Path, X server and arguments (if needed)
    # Note: -xauth $authfile is automatically appended
    default_path /bin:/usr/bin:/usr/local/bin
    default_xserver /usr/bin/X
    xserver_arguments -nolisten tcp vt07
    # Commands for halt, login, etc.
    halt_cmd /sbin/shutdown -h now
    reboot_cmd /sbin/shutdown -r now
    console_cmd /usr/bin/xterm -C -fg white -bg black +sb -T "Console login" -e /bin/sh -c "/bin/cat /etc/issue; exec /bin/login"
    #suspend_cmd /usr/sbin/suspend
    # Full path to the xauth binary
    xauth_path /usr/bin/xauth
    # Xauth file for server
    authfile /var/run/slim.auth
    # Activate numlock when slim starts. Valid values: on|off
    numlock on
    # Hide the mouse cursor (note: does not work with some WMs).
    # Valid values: true|false
    # hidecursor false
    # This command is executed after a succesful login.
    # you can place the %session and %theme variables
    # to handle launching of specific commands in .xinitrc
    # depending of chosen session and slim theme
    # NOTE: if your system does not have bash you need
    # to adjust the command according to your preferred shell,
    # i.e. for freebsd use:
    # login_cmd exec /bin/sh - ~/.xinitrc %session
    #login_cmd exec /bin/bash -login ~/.xinitrc %session
    login_cmd exec ck-launch-session startxfce4
    # Commands executed when starting and exiting a session.
    # They can be used for registering a X11 session with
    # sessreg. You can use the %user variable
    # sessionstart_cmd some command
    # sessionstop_cmd some command
    # Start in daemon mode. Valid values: yes | no
    # Note that this can be overriden by the command line
    # options "-d" and "-nodaemon"
    # daemon yes
    # Available sessions (first one is the default).
    # The current chosen session name is replaced in the login_cmd
    # above, so your login command can handle different sessions.
    # see the xinitrc.sample file shipped with slim sources
    sessions xfce4,icewm,wmaker,blackbox
    # Executed when pressing F11 (requires imagemagick)
    screenshot_cmd import -window root /slim.png
    # welcome message. Available variables: %host, %domain
    welcome_msg Welcome to %host
    # Session message. Prepended to the session name when pressing F1
    # session_msg Session:
    # shutdown / reboot messages
    shutdown_msg The system is halting...
    reboot_msg The system is rebooting...
    # default user, leave blank or remove this line
    # for avoid pre-loading the username.
    default_user martin
    # Focus the password field on start when default_user is set
    # Set to "yes" to enable this feature
    #focus_password no
    # Automatically login the default user (without entering
    # the password. Set to "yes" to enable this feature
    #auto_login no
    # current theme, use comma separated list to specify a set to
    # randomly choose from
    #current_theme default
    current_theme archlinux-darch-white
    # Lock file
    lockfile /var/lock/slim.lock
    # Log file
    logfile /var/log/slim.log
    locale -a
    [root@arch martin]# locale -a
    C
    POSIX
    cs_CZ.utf8
    en_US
    en_US.iso88591
    en_US.utf8
    Last edited by Zelva (2011-09-05 18:19:15)

    With xfce4 I use .....mount /dev/sd(xx) /mnt/md...
    Setup .../mnt/md in /mnt with ..cd /mnt...mkdir /mnt/md
    This will mount the flash drive.
    I do not know automount for xfce4.

Maybe you are looking for