Mouseclicking a character places caret differently in Java6

Clicking a character in a JTextField or JTextArea can result in a different caret position in Java6 than in Java5.
With the letters 'dog' in the field, click the mouse on the arc at the left edge of the d. Now try clicking it at the right edge near the vertical line.
With Java5, MS Word, Notepad, its as if there is a divider in the center of the character. Clicking to the left of a character's center positions the cursor before the character, in this case a 'd'. Clicking to the right of the center positions the cursor after the character, in this case between the 'd' and the 'o'.
With Java6, the cursor is always positioned to the left of the character. To position the caret between the 'd' and the 'o' you must click on the 'o'.
We're getting some user complaints. I submitted this as a potential bug - wondering if anyone else noticed or if there is a property setting to revert to the old behavior?
Jeff

Here's an SSCE that exhibits the problem. Both 1.5 and 1.6.7 behave similarly - clicking on the right vertical of a 'u' in 'dug' positions the cursor to the right of the 'u'. Switching to 1.6.16, the cursor goes to the left of the 'u'.
// Geary Example 22-5
import javax.swing.*;
import javax.swing.text.*;
import java.awt.*;
import java.awt.event.*;
import java.util.*;
public class Test extends JFrame {
     private JTextField field = new JTextField(10);
     private JButton b = new JButton("Default Button");
     private JCheckBox cb = new JCheckBox(
                                        "Text field fires action event");
     public Test() {
          Container contentPane = getContentPane();
          SwingUtilities.getRootPane(this).setDefaultButton(b);
          cb.setSelected(true);
          contentPane.setLayout(new FlowLayout(
                                                  FlowLayout.CENTER,10,20));
          contentPane.add(field);
          contentPane.add(b);
          contentPane.add(cb);
          b.addActionListener(new ActionListener() {
               public void actionPerformed(ActionEvent e) {
                    JOptionPane.showMessageDialog(Test.this,
                         "Button fired action event");
          field.addActionListener(new ActionListener() {
               public void actionPerformed(ActionEvent e) {
                    JOptionPane.showMessageDialog(Test.this,
                         "Textfield fired action event");
          cb.addActionListener(new ActionListener() {
               private Keymap km;
               private KeyStroke ks;
               private Action action;
               public void actionPerformed(ActionEvent e) {
                    if(cb.isSelected()) {
                         km.addActionForKeyStroke(ks, action);
                    else {
                         if(ks == null) {
                              km = field.getKeymap();
                              ks = KeyStroke.getKeyStroke(
                                                  KeyEvent.VK_ENTER, 0);
                              action = km.getAction(ks);
                         km.removeKeyStrokeBinding(ks);
     public static void main(String args[]) {
          GJApp.launch(new Test(),
               "Default Buttons",300,300,350,200);
class GJApp extends WindowAdapter {
     static private JPanel statusArea = new JPanel();
     static private JLabel status = new JLabel(" ");
     static private ResourceBundle resources;
     public static void launch(final JFrame f, String title,
                                     final int x, final int y,
                                     final int w, int h) {
          launch(f,title,x,y,w,h,null);     
     public static void launch(final JFrame f, String title,
                                     final int x, final int y,
                                     final int w, int h,
                                     String propertiesFilename) {
          f.setTitle(title);
          f.setBounds(x,y,w,h);
          f.setVisible(true);
          statusArea.setBorder(BorderFactory.createEtchedBorder());
          statusArea.setLayout(new FlowLayout(FlowLayout.LEFT,0,0));
          statusArea.add(status);
          status.setHorizontalAlignment(JLabel.LEFT);
          f.setDefaultCloseOperation(
                                   WindowConstants.DISPOSE_ON_CLOSE);
          if(propertiesFilename != null) {
               resources = ResourceBundle.getBundle(
                              propertiesFilename, Locale.getDefault());
          f.addWindowListener(new WindowAdapter() {
               public void windowClosed(WindowEvent e) {
                    System.exit(0);
     static public JPanel getStatusArea() {
          return statusArea;
     static public void showStatus(String s) {
          status.setText(s);
     static Object getResource(String key) {
          if(resources != null) {
               return resources.getString(key);
          return null;
}

Similar Messages

  • How to place two different indesign documents side by side on my desktop in order to copy and paste images and text from one to the other?

    How to place two different indesign documents side by side on my desktop in order to copy and paste images and text from one to the other?

    Or choose Window > Arrange > Tile
    And, you of course can copy/paste without tiling.

  • How do Illstrator recognize if same plug-in will place with different name.

    Hi All,
    We are developing an Illutrator CS4 plug-in. we have source code of the plug-in. we need to add some extra features to that plug-in and build with new name. older one will work as it was. and newer one will work with new features. So both plug will resides same place with different name. the problem is, when I compile older soruce code and change the plug-in name. I'm getting error while loading plug-in it looks "older and newer version get conflict while name is different.
    Is Illustrator maintain any unique ID for each plug-in. if so, then where should i look for in my code?
    How do Illstrator recognize if same plug-in will place with different name?
    Any help would be appriciated.
    Thanks in advance,
    Johirul

    I don't believe Illustrator has anything like a UID for plugins. If you want them to co-exist, either make them named differently or put them in different sub-folders.
    On a related note, you CAN optionally set a plugin's name. You could then iterate over the plugin list at start up (before you set your name) and see if there's already a plugin with the same name. We do this to *prevent* our plugin from loading twice, but you don't seem to want that. I only mention this because this is about as close to 'unique identifiers' that AI gets, and frankly nothing stops you from having multiple plugins with the same name.

  • In 26.0, how do I put Download, Bookmarks, History, and Tags into separate windows? I have multi-monitor system and place these different windows . . .

    Hello,
    I recently, decided to upgrade from 19.0b to the current (26.0) version, as "Tab Utilities" now supports 26, but am finding one of the visual changes counter productive. My two workstations have multiple monitors. One has 2 monitors (2560x1600) and the other one has 4 monitors (2560x1600). On both workstations, I'll place the various Firefox informational windows off the "main monitor" (the one directly in front of me). This way they're available to me at a glance.
    (Side note: I refer to my monitors, as 2L, 1 2R and the 4th as "auxiliary.") The one thing I miss most is being able size these Firefox windows independently and in different positions.
    I mean I'm used to seeing "Download" on monitor 2R on the right side (1/8 of screen) behind Microsoft Process Explorer's System Information. While the History will be on monitor 2L on the right side at 1/4 of the screen). I'm used to glancing out my right eye at the downloads and when needing something from the past, it's right next to the main monitor #1. This way I can access history quickly.
    I can see why a developer (with one monitor say 1920 x 1080) would love seeing one window, but why can't Firefox support both single and multiple monitor users at the same?
    Anyway, is there a way to get 26.0 to place at least "Download" and "History" in separate sizable windows?
    (I'm not jumping up and down to go back to 19.0b or to try 25, but would like to stay current.)

    Hello,
    Thank you for your very quick reply. Before I read your reply completely, let me see if I can answer your first concern.
    > Maybe I am missing your point.
    Maybe I'm not making the point properly. Honestly, I never explained the issue from how it is directly affecting me.
    OK, let's do a real world example of what I'm seeing on my two monitor system. I'll first describe what I experienced with 19.0b and earlier, which is IMHO how it should work in 26 and beyond ('''''as an option'''''). Next, I'll review what I'm seeing in 26.0. Hopefully this will help you understand what changed, from a practical perspective.
    In 19.0b (and how I like working) for a multiple monitor system:
    On the main monitor, I'm running Firefox. It is 1920 x 1080 and is in the lower right hand corner.
    On the the monitor to my right (2R), I have the Download Manager list of downloading and downloaded file. It is in the upper right hand corner and takes up about 300 x 1500 pixels.
    For a two monitor system, I have the History List running beside Firefox in the lower right hand corner and it is 600 x 1080.
    For a three (plus) monitor system, I have the History List running on my left (2L) monitor. It is in the lower right hand corner and is 600 x 1080 pixels big.
    For 26.0: I'm seeing the following:
    On the main monitor, I'm running Firefox. It is 1920 x 1080 and is in the lower right hand corner. (This is the SAME as with 19.0b.)
    When I start the Download Manager and have it set up as I do for 19.0b, it looks OK. It is on monitor 2R and is 450 x 1500 pixels (because of the new navigation side bar).
    '''''The problem STARTS NOW (when I start the History List).'''''
    When starting the History List, it replaces the Download Manger on the 2R monitor in the 450 x 1500 pixel window. This doesn't work for me because:
    1) It is too far away to see. (NOTE: I put it on the 2L monitor in the lower right hand corner. so I can see it easier for the 3+ monitor. In the case of the 2 monitor, I put it beside Firefox again to see it easier.)
    Some might ask, but the Download Manager is on the 2R and right side, why can't the History List be there too? Good question, and I can only reply saying:
    1) Personal choice.
    2) The Download Manager is NOT as busy as the History List and I find it easy to read.
    3) The History List is a lot busier and the font size looks to be smaller (might be the same, but it looks smaller to my eyes). I need it closer to me / Firefox.
    What I'm saying is this . . . The Download Manager and History List have <ul>''valid reasons to be visible to the user at the same time''.</ul> They also need to be independent of one another for (at least) size and location.
    Combining them together is OK for some people, but NOT for everyone. Please make it an option to combine (as in 26) and separate (25 and earlier).
    I'm not sure this is the best way to put it, but here goes. Allow users to collapse or expand these various lists by using multiple windows. One window is the collapse view and multiple independent windows is the expand view.
    I'll read and comment on the rest of your reply, soon. Thanks for allowing me hopefully to explain my point in a better manner. :-)

  • Installing Character Sets for different languages

    We have a need to have the character sets installed for 14 different languages. Our BW system will receive data from other systems with different languages installed. We don't necessarily need to login with these languages but just need the character sets in order to properly read the data. Do we need to go thru the entire language installation process for each language in order to get the character sets installed? That seems like a rather lengthy process and I'm looking for other options. Also, once  I get all of these character sets into my development system is it possible to transport these characters sets into my QA and Production
    systems?

    1. Start the FM 7.0 installation from the CD.
    2. Work your way to the Setup screen and select "Custom" installation.
    3. Select only the "Dictionaries" components (i.e. uncheck the other
    components) and click on the "Change" button.
    4. This will pop-up the available "sub-components", i.e. the
    dictionaries.
    5. Select the ones you want and click on the "Continue" button and
    then the "Next" button to install only the new dictionaries.

  • Where do I place the different parts of the HTML 5 published files on a web page?

    I recently published an HTML 5 canvas document from Flash. Once the files are published where do they go on a web page? For example, lets say I had 3 animations published from Flash as HTML canvas objects. The files go on different parts of page, let's say in 3 different places in the body. Flash outputs the HTML file, JavaScript file, and whatever images in an 'images' folder. I'm not sure where I would place all these files on my web site. I know the JavaScript goes in the head of the index page. However, where do the other parts go? Further, if I have multiple HTML canvas objects how do I separate the code.
    All of the tutorials demonstrate how to publish the file, but give no assistance on how to place the file or files on a web page.
    Below is example code from a sample files:
    <html>
    <head>
    <meta charset="UTF-8">
    <title>HeadSpinning</title>
    <script src="http://code.createjs.com/easeljs-0.7.1.min.js"></script>
    <script src="http://code.createjs.com/tweenjs-0.5.1.min.js"></script>
    <script src="http://code.createjs.com/movieclip-0.7.1.min.js"></script>
    <script src="http://code.createjs.com/preloadjs-0.4.1.min.js"></script>
    <script src="HeadSpinning.js"></script>
    <script>
    var canvas, stage, exportRoot;
    function init() {
        canvas = document.getElementById("canvas");
        images = images||{};
        var loader = new createjs.LoadQueue(false);
        loader.addEventListener("fileload", handleFileLoad);
        loader.addEventListener("complete", handleComplete);
        loader.loadManifest(lib.properties.manifest);
    function handleFileLoad(evt) {
        if (evt.item.type == "image") { images[evt.item.id] = evt.result; }
    function handleComplete() {
        exportRoot = new lib.HeadSpinning();
        stage = new createjs.Stage(canvas);
        stage.addChild(exportRoot);
        stage.update();
        createjs.Ticker.setFPS(lib.properties.fps);
        createjs.Ticker.addEventListener("tick", stage);
    </script>
    </head>
    <body onload="init();" style="background-color:#D4D4D4">
        <canvas id="canvas" width="615" height="400" style="background-color:#FFFFFF"></canvas>
    </body>
    </html>

    All of the sections marked with the <script> tags should go in the head of the About page. From this line: <body onload="init();" style="background-color:#D4D4D4">, you want to take the onload="init();" part and add it to the <body> tag of the About page. You can also add the background color if you want.
    The part marked with the <canvas> tag is the part that need to be added to the body of the About page. I don't know what your About page contains, so I can't tell you where it should be placed.

  • Assign each half of a glyph (ASCII character) with a different color?

    Okay, this might be an odd one.
    I am using a glyph - Calibri number inside a filled black circle (it doesn't actually matter what glyph) and I want to color the circle part only (leave the background - number, white) with 1/2 red and the other 1/2 green. Are there any tricks in InDesign that would allow this?
    Alternatively, I can convert the glyph to curves in Illustrator and fill the colors... then insert back into InDesign.
    But... just curious about a way to do this inside InDesign??

    BTW,
    I was over at MyFonts.com purchasing some fonts for a job and ran across one of Ray Larabie's (Typodermic.com) fonts that uses OTF features to move characters typed in a given sequence. I mention this because it too is a solution and can have characters/numbers up 6 places. I think it would be relatively easy to GREP the styles needed for each of the parts and this is a means of keeping the numbers in a true circle.
    I don't know which means would be easier. I suppose the paragraph and character styles I created for my example above is the easiest as long as one doesn't need to go beyond the number 20, which is as high as those characters go in Calibri.
    The screen shots are from within the application I was using at the time and show its story editor. First screen shot is the characters used to produce each number, which in turn is the second screen shot when I turn on the formatting in the story editor. Because the story editor swaps out the paper color (white) for black for viewability, the last screen shot is on the page.

  • Business place for different states

    Hi Gurus,
    Can projects situated in the two different states have same business place? For direct tax it males no effect  under vat it may have impact.What is the sap guidelines on the same.
    Regards
    Bhaskar

    Hi
    If you refering to India, Business place is mainly required for TDS (like TAN numbers). If you need to deduct tax at source from  multiple locations and generate separate reports for the same then it is required otherwise not.
    Anand

  • System-nr in service market place is different to system-nr in SLICENSE

    Hello experts,
    I am sure you can help me with this. I need to apply a support package in SPAM, however, it complains I'd need to deploy a maintenance certificate.
    I've downloaded the license from service market place and now am having trouble to deploy it in SLICENSE. The reason it doesn't work is that the system-nr in SLICENSE (like 00000000031100rxyz) is different to the system-nr in data admin in service market place (like 00000000031100abcd) for the SAME server (why it's different - I don't know!).
    My question is how I can rectify this situation, I looked around and could not find a way to change the system-nr, can you please advise?
    Many thanks in advance,
    BR
    Manfred

    Hello Sunny,
    thanks for replying.
    The Hardware key/ Installation numbers are actually the same.
    What is different is the system number that you see in slicense. I slicense you see in the top:
    Active Hardware key
    Installation Number
    License Expires On
    System Number (like 00000000031100abcd)
    Only System number differs from the system number shown in service market place.
    How can I bring them in line and continue with the imort in SPAM??
    Thanks
    Manfred

  • How come my links layout go all over the place in different browsers?

    Hello,
    Please go to <http://www.peterdanko.com/errr.png> and see the screen shot of the page I am having difficulty with in the  design view.  Note the links: INSTALLATIONS, BELT COLORS, FINISHING, PRICING are neatly centered with the text body above and in a single line.
    Now view <http://www.peterdanko.com/atmos.html>  Note they are now stacked and randomly placed.  In different browsers they are all over the place.
    How can I keep them neat and tidy in all browsers?
    Thanks
    PETER

    Below is the complete html code/css re-written for the 'product-wrapper' section. (scroll down). Not sure if this is of help or not. I think you need to take some time to learn some more html/css as the way youre going about it at the moment must be a complete nightmare for you. Copy the code below, (scroll down) paste into a new Dreamweaver document and save to your site folder. View in browser.
    You need to simplify your way of working instead of creating a <div> for each of your page elements, which must be a headache to keep track of???
    Example: Instead of putting your header 'Atmos Seating Group' in it's own individual <div> use a more meaningfull html tag like a header tag, <h2>Atmos Seating Group</h2>
    Then use some css to target the <h2>. We know the <h2> tag is in the 'right_tx_bx_400pxWd' <div> so write it as below:
    right_tx_bx_400pxWd h2 {
    text-align: center;
    margin: 15px 0;
    font-size: 20px;
    font-weight: normal;
    color: #999;
    Similarly instead of inserting the main wording in its own <div> use a paragraph tag, <p></p> it's more meaningful. Then target the paragraph tag:
    #right_tx_bx_400pxWd p {
    font-size: 13px;
    line-height: 16px;
    color: #999;
    Get the point. We only have to keep track of one <div> not several and we can target tags in that <div> more cleanly and effectively.
    Try and keep all off your css together i.e. so all the 'right_tx_bx_400pxWd' css is kept together so its easy to find in the stylesheet intead of scrolling up and down.
    Don't use heights on <divs> unless you know how high it will be and you won't know that unless it just contains images or you set a specific height for a scroll bar.
    BELOW IS THE CODE:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Untitled Document</title>
    <style type="text/css">
    #product_wrapper {
    width: 932px;
    margin: 0 auto;
    overflow: hidden;
    #left_image_column {
    float: left;
    width: 512px;
    #right_tx_bx_400pxWd {
    float: left;
    width: 400px;
    font-family: Arial, Helvetica, sans-serif;
    margin-left: 20px;
    display: inline;
    #right_tx_bx_400pxWd h2 {
    text-align: center;
    margin: 15px 0;
    font-size: 20px;
    font-weight: normal;
    color: #999;
    #right_tx_bx_400pxWd p {
    font-size: 13px;
    line-height: 16px;
    color: #999;
    #right_tx_bx_400pxWd h3 {
    text-align: center;
    margin: 15px 0 10px 0;
    padding: 0;
    font-size: 14px;
    font-weight: normal;
    color: #999;
    #right_tx_bx_400pxWd ul {
    margin: 0;
    padding: 0;
    text-align: center;
    #right_tx_bx_400pxWd li {
    text-align: center;
    font-size: 13px;
    margin: 0 0 3px 0;
    font-style: italic;
    color: #CCC;
    /* footer links */
    #four_text_link_box {
    clear: both;
    width: 400px;
    padding: 20px 0 0 0;
    #four_text_link_box ul {
    margin: 0;
    padding: 0;
    #four_text_link_box li {
    margin: 0;
    padding: 0;
    float: left;
    list-style: none;
    text-align: center;
    #right_tx_bx_400pxWd #four_text_link_box a {
    float: left;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #999;
    text-decoration: underline;
    display: block;
    width: 100px;
    text-align: center;
    font-style: normal;
    /* end footer links */
    </style>
    </head>
    <body>
    <div id="product_wrapper">
    <div id="left_image_column"><img src="atmos_images/atmos_lounge_blk_belt.jpg" alt="Atmos lounge" name="at_lounge" width="512" height="400" id="at_lounge" /></div>
    <div id="right_tx_bx_400pxWd">
    <h2>Atmos Seating Group</h2>
    <p>The Atmos chairs are the essence of OMG design.  They are comfortable. They evolve the Shaker esthetic of spare/elegant utility into the eco-modernist sensibility:  The straps are post industrially sourced automotive seat belt material, the “ears” at the top of the backs acknowledge our natural world, and though strong, its lightweight structure uses minimal material.  The contrasting splines on the rocker and lounge chairs celebrate craftsmanship. Wood is American Ash sourced from FSC certified forests; adhesives and finishes are water based.  Suitable for residential and designed for contract applications.</p>
    <h3>OMG characteristics:</h3>
    <ul>
    <li>use of post-industrial belting as substitute for the more problematic  use of foam as cushion material fabric</li>
    <li>low carbon footprint.</li>
    <li>ply-bent construction</li>
    <li>evokes the enchantment of an eco centric style</li>
    </ul>
    <div id="four_text_link_box">
    <ul>
    <li><a href="at_installs.html">Installations</a></li>
    <li><a href="#" onclick="MM_openBrWindow('images/belt_samples.gif','belts','scrollbar s=yes,resizable=yes,width=300,height=100')">Belt Colors</a></li>
    <li><a href="#" onclick="MM_openBrWindow('images/wood_finishes.gif','finishes','scrol lbars=yes,resizable=yes,width=600,height=175')">Finishes</a></li>
    <li><a href="#" onclick="MM_openBrWindow('_danko_2010pricelist/at_prices.gif','','scr ollbars=yes,resizable=yes,width=400,height=500')">Pricing</a></li>
    </ul>
    </div><!-- end four_text_link_box -->
    </div><!-- end right_tx_bx_400pxWd -->
      <div id="bottom_rule">
          <p> </p>
          <p> </p>
        </div>
        <div id="product_box"></div>
    </div><!-- end product_wrapper -->
    </body>
    </html>.

  • Annoying character placement

    Hi guys, hoping someone can help me, when I use the type tool in CS6, I can form a sentence normally  but as soon as I enter a non alphabetical character like an exclamation mark '!' then it appears at the start of the sentence and I can't move it to the end, when I click on screen to place my text, the flashing cursor appears and stays at the start of the text as shown below:
    Then as soon as I enter a character like a hash, exclamation mark or question mark, it automatically places it to the left of the text and it stays there by default once I've checked the tick to commit it.
    This is really infuriating me, does anyone know how to change this in the settings ?
    Apologies if this has already been covered but I couldn't see anything relating to my query elsewhere, thanks in advance

    Hi Gairo
    If you go to the Window menu and turn on the "Paragraph" window then open up the panel (making sure that you open the Paragraph tab and no the Character tab) you should see 2 options near the bottom of that fly out panel - one is "Left - to - Right paragraph direction" and the other is Right - to - Left paragraph direction" my guess is that you have the second of these selected - try switching it to "Left - to - Right paragraph direction".
    ***EDIT - Stupid me, I see this is what has been suggested already, but seriously, double check because it really does sound like this is what is happening.
    I hope this helps - Good Luck
    John

  • Draw a string with one character in a different color

    This problem sounds trivially simple, but I don't have a clue on how to implement it.
    What I'm basically trying to do, is use Graphics2D.drawString() to draw a string...but I want one letter to be in a different color. Guessing from the API this could be possible with an AttributedCharacterIterator, but I don't know how to set 'color' as one of the attributes.
    Does anyone with knowledge of Java 2D havy any solution for this?

    keeskist wrote:
    This problem sounds trivially simple, but I don't have a clue on how to implement it.
    What I'm basically trying to do, is use Graphics2D.drawString() to draw a string...but I want one letter to be in a different color. Guessing from the API this could be possible with an AttributedCharacterIterator, but I don't know how to set 'color' as one of the attributes.
    Does anyone with knowledge of Java 2D havy any solution for this?Here's an example using AttributedString/AttributedCharacterIterator:
    import java.awt.*;
    import java.awt.font.TextAttribute;
    import java.text.AttributedString;
    import javax.swing.*;
    public class AttributedCharacterIteratorDemo extends JFrame {
         public AttributedCharacterIteratorDemo() {
              AttributedString as = new AttributedString("Hello, world!");
              as.addAttribute(TextAttribute.FOREGROUND, Color.RED, 2, 3);
              JPanel cp = new ACRPanel(as);
              cp.setPreferredSize(new Dimension(300,300));
              setContentPane(cp);
              setTitle("AttributedCharacterIterator Demo");
              setDefaultCloseOperation(EXIT_ON_CLOSE);
              pack();
         public static void main(String[] args) {
              SwingUtilities.invokeLater(new Runnable() {
                   public void run() {
                        new AttributedCharacterIteratorDemo().setVisible(true);
         private class ACRPanel extends JPanel {
              private AttributedString as;
              public ACRPanel(AttributedString as) {
                   this.as = as;
              protected void paintComponent(Graphics g) {
                   g.drawString(as.getIterator(), 40,40);
    }

  • Pasting in place to different layers?

    in Illustrator CS5:
    I have a base layer. I have copied the one object on the layer, Comm C. My goal is to place it in exactly the same spot, one layer above. If I don't lock the original layer and PASTE IN FRONT via command F, it will only paste it directly above the object -but on the same layer. So - I lock layer 1 and make sure layer 2 is chosen. But when i go: command F, it tells me I am trying to paste into a locked layer (Layer 1, I assume.) But the only choice I get is to Unlock layer 1- which I don't want to do. It AI refuses to recognize that i simply wish to past to layer 2? Any help would be appreciated! Thanks!

    No need to lock Layers. In the Layers palette flyout menu, turn off Paste Remembers Layers. Then simply select an object already on the Layer you want to target before invoking Paste In Front.
    The command is "Paste In Front" for a reason: It pastes in front (in the stacking order) of whatever is selected (unless Paste Remembers Layers is turned on).
    JET

  • Swf file in different places on different browsers

    Hi,
    new to this web design, but I am getting there (very slowly)
    I have a web page that is live www.chm-berkshire.com but it has an issue on the index page where the swf file is not being centered on each browser i use.
    I can set it up perfectly on my ie web page where the file is centered under the spry bar, when  look at my work PC and the swf file is over to the left, if i use firefox it is even further over to the left
    Is there an easy way to make all browswers see the file in the center of the page?
    any help greatfully recieved, (in as simple terms as possible, as I am hard of thinking:-) )

    Just changing things from position:absolute to position:relative is thrashing, and will usually not help.
    The solution is to do this -
    Change this -
    .oneColElsCtrHdr #container {
         width: 46em;
         margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */
         border: 1px solid #000000;
         text-align: left; /* this overrides the text-align: center on the body element. */
         background-color: #FFFFFF;
         background-position: center;
    to this -
    .oneColElsCtrHdr #container {
         width: 46em;
         margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */
         border: 1px solid #000000;
         text-align: left; /* this overrides the text-align: center on the body element. */
         background-color: #FFFFFF;
         background-position: center;
            position:relative;
    What this change will do is to change the reference point for all absolutely positioned elements on the page from the upper, left-hand corner of the browser viewport (which is the default reference for AP elements when there is no positioned ancestor), to the location of the centering element div#container.  Now, when that element centers, it will carry all the AP elements along with it.  You will have to reposition each AP element on the page to accommodate this change, but once positioned properly in DW, they will stay in that correct relative location.
    Now - to see what a mess you have made by using AP for all your content - just browse to this page and increase the text size a few ticks in the browser.  Your simple layout goes south in a hurry....
    It's much better to use sound practice methods in building your pages - http://www.apptools.com/pagelayout101.php will show you the way.

  • NLS settings for a database link between DBs with different character sets

    I am using a database link to move data from one database to another and I am seeing some strange data problems. The databases have different character sets and different NLS settings. I wonder if this could be causing my problem.
    Here are the NLS parameters for the database where the database link exists. (the SOURCE database)
    1     NLS_CALENDAR     GREGORIAN
    2     NLS_CHARACTERSET     WE8MSWIN1252
    3     NLS_COMP     BINARY
    4     NLS_CURRENCY     $
    5     NLS_DATE_FORMAT     DD-MON-RR
    6     NLS_DATE_LANGUAGE     AMERICAN
    7     NLS_DUAL_CURRENCY     $
    8     NLS_ISO_CURRENCY     AMERICA
    9     NLS_LANGUAGE     AMERICAN
    10     NLS_LENGTH_SEMANTICS     BYTE
    11     NLS_NCHAR_CHARACTERSET     AL16UTF16
    12     NLS_NCHAR_CONV_EXCP     FALSE
    13     NLS_NUMERIC_CHARACTERS     .,
    14     NLS_SORT     BINARY
    15     NLS_TERRITORY     AMERICA
    16     NLS_TIMESTAMP_FORMAT     DD-MON-RR HH.MI.SSXFF AM
    17     NLS_TIMESTAMP_TZ_FORMAT     DD-MON-RR HH.MI.SSXFF AM TZR
    18     NLS_TIME_FORMAT     HH.MI.SSXFF AM
    19     NLS_TIME_TZ_FORMAT     HH.MI.SSXFF AM TZR
    Here are the NLS parameters for the database that the database link connects to. (the TARGET database)
    1     NLS_CALENDAR     GREGORIAN
    2     NLS_CHARACTERSET     AL32UTF8
    3     NLS_COMP     BINARY
    4     NLS_CURRENCY     $
    5     NLS_DATE_FORMAT     DD-MON-RR
    6     NLS_DATE_LANGUAGE     AMERICAN
    7     NLS_DUAL_CURRENCY     $
    8     NLS_ISO_CURRENCY     AMERICA
    9     NLS_LANGUAGE     AMERICAN
    10     NLS_LENGTH_SEMANTICS     BYTE
    11     NLS_NCHAR_CHARACTERSET     AL16UTF16
    12     NLS_NCHAR_CONV_EXCP     FALSE
    13     NLS_NUMERIC_CHARACTERS     .,
    14     NLS_SORT     BINARY
    15     NLS_TERRITORY     AMERICA
    16     NLS_TIMESTAMP_FORMAT     DD-MON-RR HH.MI.SSXFF AM
    17     NLS_TIMESTAMP_TZ_FORMAT     DD-MON-RR HH.MI.SSXFF AM TZR
    18     NLS_TIME_FORMAT     HH.MI.SSXFF AM
    19     NLS_TIME_TZ_FORMAT     HH.MI.SSXFF AM TZR
    The SOURCE database version is 10g Release 10.2.0.3.0 - Production
    The TARGET database version is 11g Release 11.1.0.6.0 - 64bit Production
    Do I need to modify the NLS settings in the SOURCE database before executing a script to insert data into the TARGET database?
    Thanks, Jack

    The difference in settings is not a problem by itself, especially that only the NLS_CHARACTERSET matters. Of course, this difference may lead to certain issues if not taken into consideration.
    Please, describe symptoms of your problems.
    -- Sergiusz

Maybe you are looking for

  • ITunes 12 stops responding and crashes almost constantly

    Product info: Late 2011 Macbook Pro, running Yosemite 10.10.1 with iTunes 12.0.1.26. I have installed all updates. The Problem: iTunes becomes unresponsive for at least 30 seconds and then frequently crashes after I request simple operations (like ma

  • PR/PO Aging Report

    Other than this---> BBP_BW_SC2 what other TCODES are available to view Aging SHC that would display the ff: PurchGrp Plant Plant Desc PR# Material Grp Desc PR Amount Date created/approved SHC# PO# PO date *PO amount*

  • Send a record type parameter to a stored procedure

    Hi! I have a stored procedure, which accepts an input parameter which is a record type. How do I send such a parameter using ODP.NET? Thanks.

  • Very Urgent - Help meeeeee plizzz

    Overview Im using FLASH CS3 with AS3 i have a flash project, i separete file swf ex. main.swf, profile.swf, invite.swf, visit.swf profile.swf will be loaded in main.swf in profile.swf i have datagrid using custom cell renderer class (RightAlign, Left

  • HT5409 AVCHD/MTS Files stored in quicktime container since Mountain Lion

    How can i open the clips stored in the quicktime container with a 3rd party software of voltaic. i am not happy with the quality of the quicktime converts.