Clipped Text?

I am getting ready to order my first book but when I go to order I get a warning about clipped text. The warning says, "Your book appears to have text that doesn’t fit. Do you want to continue with your order?"
When I look through the book I can't see any clipped text, and when I save the book as a PDF I can't see any clipped text. What's going on?

James:
That clipped text is probably a couple of Returns or other invisible characters that you can't see. Place you cursor at the end of the text and hit the forward delete key a number of times. That got me on my first book. If necessary select all the text and cut. Then retype the text in, don't paste. You'll just bring in the invisible characters again.
OT

Similar Messages

  • Arranging clipped text over original text

    Hello,
    I created clipped text. And I want to arrange the clipped text (foreground) over the original text (background). Arranging one item to foreground/background in the same layer doesn't work nor separating the two items in different layers. The clipped text is always behind the original text.
    In the image below you can see that the clipped is behind the original... even if it's in a layer on top of the black original text. Do you know why this is happening? A bug or do I miss something?
    Tnx!

    Don't know what went wrong. Played around with the clipping settings again. And it clipped like it should be.
    But thanks for the tips!

  • Clipping Text

    I have managed to get a clipping path working using the graphics state operator W (in conjunction with a non-stroked path), but when I add text, it doesn't clip as other graphics do.
    From what I have gathered in my working example, writing text seems to reset the current graphics state. What I would like to do is define an are in which to add text such that any portion of the text that falls outside of that are is 'clipped'.
    Is this a supported function... or am I going about this the wrong way?
    By the way... I am doing all of this through my own limited library.
    Thanks!
    Corey

    Having text clipped by an arbitrary path is the same as having anything else clipping - just make it part of the graphics state.
    Using text AS A clipping path, requires the use of text rendering mode.
    Leonard

  • Edit Text In A MovieClip

    I have made 4 movie clips/instances of text for my buttons. I
    am having trouble finding how I can change the word/text. I can go
    from Scene > Movie Clip> Text but then Im at a loss for
    editing the actual word.
    Also can I change the color of the text while I am there?
    A little help plz? Thanks

    I have two different movie clips:
    On one Im successful at changing the text:
    Double Click on the MovieClip from the Library, I double
    click on this and Im taken to a tween image with the Text
    Properties box opened down below. Color, size, etc., no problems.
    On a different MovieClip I follow the same steps. The only
    difference is when I double click on the MovieClip I never see the
    same tween/graphic symbol. And the Text properties box doesnt open.
    If I double click again on the blue box it goes to another layer
    HOWEVER the selection tool turns on and I can only grab/modify/bend
    the text...does that make sense?
    Thanks for the reply and any assistance

  • Cursor controls text scroll

    I really need a code that controls my scrolling text. In
    other words, when my text is scrolling vertically, I want the user
    to be able to place the cursor over the desired text and stop the
    scroll and click on the text. Does anyone have a simple code for
    this or know where a code can be purchased for download?

    I'm not sure I understand. When the user moves the mouse over
    the text, there shouldn't be any scrolling because the mouse would
    no longer be over the scrollbar which controls the movement. Are
    you talking about being able to scroll the text up and down by
    using the mouse and clicking on the text? I think that's what you
    mean. If so, you can use the scrollPane component, drag it to the
    stage with an instance name of scrollPane. Use frame actions:
    scrollPane.contentPath = "text";
    scrollPane.scrollDrag = true;
    scrollPane.hScrollPolicy = "off";
    scrollPane.vScrollPolicy = "off";
    in this example, you will need to create a movie clip that
    contains a text field and name the movie clip "text", right-click
    that symbol in the library and go to linkage, export for AS,
    identifier name of "text". If you get this to work, you may notice
    the cursor will only change to "the hand" when the cursor is
    directly over text (not in between letters). To solve this, you can
    add a layer below the text field (in your "text" movie clip) and
    create a 0% filled shape the same size as your text field.
    Let me know if this is what you are talking about.

  • TextArea Clipping in Air 3.9 on iOS7

    I hope someone can help here as this is driving me crazy
    I am using the TextArea mobile component for Flex (yes, I know that it is Apache now, but someone on here hopefully can help!) and using it in the most vanilla way, but whatever I do I get clipped text at the start (see attached image)
      <s:TextArea id="text" width="100%" height="260" />
    I have tried standard system fonts, declaring the skins specifically such as
      <s:TextArea id="text" width="100%" height="260" skinClass="spark.skins.mobile.StageTextAreaSkin"  />
      <s:TextArea id="text" width="100%" height="260" skinClass="spark.skins.mobile.TextAreaSkin"  />
    But it all has the same effect - the far left of the text is clipped. Now, I am sure it is something in the skin but I cannot track it down, and it does not happen in the TextInput skin, but TextArea is far more complex due to scrolling etc. I have actually also tried using the StageText object directly in ActionScript but it has the same issue, so I have started to think that it is perhaps something in Air. I am using the latest Air 3.9 beta and Flex 4.10 on iOS7, although it is on iOS 6 too.
    Can anyone shed some light on this? It is driving me nuts!
    Thanks

    I have used the actionscript code without using any flex components.
    You can try the following code snippet:
        import flash.display.Sprite;
        import flash.geom.Rectangle;
        import flash.text.StageText;
        import flash.text.StageTextInitOptions;
        import flash.text.TextFormatAlign;
        public class StageText_align extends Sprite
            private var nativeText:StageText;
            public function StageText_align() {
                nativeText = new StageText(new StageTextInitOptions(true));
                nativeText.stage = this.stage;
                nativeText.viewPort = new Rectangle(30, 37, 200, 106);
                nativeText.textAlign = TextFormatAlign.RIGHT;
                nativeText.text = "Stage text right aligned";
    -Pranali

  • BUG - remove hidden information - Acrobat remove some visible/live text (in all Acrobat versions)!!!

    hello
    I need to check many pdf for hidden/clipped text and remove them. Acrobat can find this BUT have bug.
    Acrobat mark some live visible text and this is problem if you click "remove" button.
    Here is evidence (6):

    It was strange in my copy of DC, but I selected the Redact tool and then remove hidden information. I highlighted the hidden info in both files, but then backed out, not doing the remove. When I tried again, the remove hidden tool was blocked. When I actually did the removal, those items were missing as you mentioned. I am not sure why they were listed as hidden since they were indeed visible. I am not really helping answer the problem, but confirming your results.
    Also, if you select remove hidden information when closing the document, you lose these fonts characters just as when using the Redact tool. I would agree that this is indeed an issue for a bug report. An earlier post provided the bug report link and I would suggest using it.

  • I shared my project and saved it as .mov but when i reopen the fcp the project is one big clip, and now i cant re-edit the video, cant see all the clips, just one big clip,,,pls help, i need to make some changes to the project..thanx

    I shared my project and saved it as .mov but when i reopen the fcp the project is one big clip, and now i cant re-edit the video, cant see all the clips, text's, effects, etc..... just one big clip,,,pls help, i need to make some changes to the project..thanx

    Hi Stephen, thanx...
    Yes, we are talking about FCP X...this is the thing:
    I worked on a project a few days ago and went to share - export movie.
    Today, i opened the FCP again, to make some changes, and when i enter to the project, it shows me as one big clip.....i dont see it says compound clip....and i tried anyways pressing break appart clips...but nothing....could it be that i made it compound before exporting it..? if so how can i recover the un-compound version >?
    I tried to import the saved .mov file, but it opens the same....as one long clip...
    Pls help...thanx.

  • Text Clippings

    Highlighting text and dragging it anywhere creates a nice Text Clipping. Great. Except it always adds this totally non-traditional extension ".textClipping" at the end. (Traditional would be a simple three letter extension, like .txt or .rtf, right?) It's a problem because it eats up the very text I want to be able to see.
    For example, I created a text clipping of the line "I want to see all of this text." What I get is this: I want to see all of this te.textClipping
    I tried TextEdit Help but it does not have anything on the topic of text clippings, not that I can find.
    I tried changing my Finder Preferences by unchecking Show all file extensions but that did not help. I only end up with the same truncated line, without the added ".textClipping" Like so: I want to see all of this te.
    Does anyone know how to fix this?
    nÔÔdle--hëad Per-rrr-plexed

    The reason you can +"click on it and edit out the words "textClipping" and even add the actual characters it was obscuring"+ is because you can manually edit the filename. Filenames are limited to 255 characters, so even with the .textClipping extension the filename +could be+ 242 characters long (although the Finder would not display all of that in any case; you'd end up with something like "this file has a really really re...ly long name" displayed in Finder, which limits the displayed portion of the filename to ~39 characters).
    The Mac OS is still able to deal with files lacking extensions, for the most part - especially those files the OS creates - .textClipping, pictClipping, etc. Historically, Macs didn't use extensions at all and instead wrote files with two forks, a data fork for the data and a resource fork for the metadata (including the creator application). In fact, the actual contents of that text clipping file reside in the resource fork, not the data fork (which is why if you open the file in anything other than Finder it's empty).
    Note that double-clicking it does not open it in TextEdit, it opens in Finder. It's a clipping - did you notice that when you double click it and it "opens" you can't select text within that window? You can copy the whole thing and paste it, or just drop it into another file, but not edit it (unless you use 3rd party software like ClipEdit, which allows you to edit the data stored in the resource fork of the file).
    So, once the .textClipping file is created by the OS, you can rename it. But it's the OS that sets the filename to be the first 28 characters of the clipped text. Some Apple developer (or a committee of them, knowing how these things work) decided that was enough to give an idea of what's in the clipping without being excessively long.
    So, is there a solution? Of course. But what you're really asking is "is there a solution that you can implement?" and the answer to that, I expect, is no. This is not a user-settable parameter.
    You might try submitting feedback to Apple (but since there likely won't be that many users with this request, I wouldn't recommend holding your breath):
    http://www.apple.com/feedback/macosx.html
    By the way, your name, I like it. Sounds like a brain-body health spray.
    Thanks! Actually, it's not neuro-anato-mist, but neuro-anatomist, as in one who studies the anatomy of the nervous system. But I wouldn't mind a brain/body health spray!

  • GeoRaptor 3.0 for SQL Developer 3.0 and 2.1 has now been released

    Folks,
    I am pleased to announce that, after 5 months of development and testing, a new release of GeoRaptor for SQL Developer 2.1 and 3.0 is now available.
    GeoRaptor for SQL Developer 3 is available via the SQL Developer Update centre. GeoRaptor 3 for SQL Developer 2.1 is being made available
    via a download fro the GeoRaptor website.
    No release notes have been compiled as the principal developer (oops, that's me!) is currently busy doing real work for a change (another 3 weeks), earning a living
    and keeping the wolves at bay. More extensive notes (with images) will be compiled when I get back. (Unless anyone is offering! See next.)
    We are still looking for people to:
    1. Provide translations of the English dialog menus etc.
    2. Write more extensive user documentation. If you use a particular part of GeoRaptor a lot and think
    you have found out all its functionality and quirks, contact us and offer to write a few pages of
    documentation on it. (Open Office or Microsoft Word is fine.) Easiest way to do this is to simply
    make screen captures and annotate with text.
    3. Conduct beta testing.
    Here are the things that are in the new release.
    New functionality:
    Overhaul of Validation Functionality.
    1. User can specify own validation SELECT SQL as long as it returns three required columns. The SQL is thus totally editable.
    2. Validation update code now allows user to associate a PL/SQL function with an error number which is applied in the UPDATE SQL.
    3. UPDATE SQL can use WHERE clause of validation SELECT SQL (1) to update specific errors.
       NOTE: The generated UPDATE statement can be manually edited. It is NEVER run by GeoRaptor. To run any UPDATE, copy the statement
       to the clipboard and run in an appropriate SQL Worksheet session within SQL Developer.
    4. Main validation table allows:
       a. Sorting (click on column header) and
       b. Filtering.
       c. Copying to Clipboard via right mouse click sub menu of:
          - Geometry's SDO_ELEM_INFO array constructor.
          - SDO_GEOMETRY constructor
          - Error + validation string.
       d. Access to Draw/Zoom functions which were previously buttons.
       e. Added a new right mouse click menu "Show Feature's Individual Errors" that gathers up all the errors
          it can process - along with the ring / element that is host to the error (if it can) - and displays
          them in the Attribute/Geometry tabs at the bottom of the Map Window (where "Identify" places its results).
          The power of this will be evident to all those who have wanted a way of stepping through errors in a geometry.
       f. Selected rows can now be deleted (select rows: press <DELETE> key or right mouse click>Delete).
       g. Table now has only one primary key column, and has a separate error column holding the actual error code.
       h. Right mouse click men added to table menu to display description of error in the new column (drawn from Oracle documentation)
       i. Optimisations added to improve performance for large error lists.
    5. Functionality now has its own validation layer that is automatically added to the correct view.
       Access to layer properties via button on validation dialog or via normal right mouse click in view/layer tree.
    Improved Rendering Options.
    1. Linestring colour can now be random or drawn from column in database (as per Fill and Point colouring)
    2. Marking of SDO_GEOMETRY objects overhauled.
       - Ability to mark or LABEL vertices/points of all SDO_GEOMETRY types with coordinate identifier and
         option {X,Y} location. Access is via Labelling tab in layer>properties. Thus, coordinate 25 of a linestring
         could be shown as: <25> or {x,y} or <25> {x,y}
       - There is a nice "stacked" option where the coordinate {x,y} can be written one line below the id.
       - For linestrings and polygons the <id> {x,y} label can be oriented to the angle between the vectors or
         edges that come in, and go out of, a vertex. Access is via "Orient" tick box in Labelling tab.
       - Uses Tools>Preferences>GeoRaptor>Visualisation>SDO_ORDINATE_ARRAY bracket around x,y string.
    3. Start point of linestring/polygon and all other vertices can be marked with user selectable point marker
       rather than previously fixed markers.
    4. Can now set a NULL point marker by selecting "None" for point marker style pulldown menu.
    5. Positioning of the arrow for linestring/polygons has extra options:
       * NONE
       * START    - All segments of a line have the arrow positioned at the start
       * MIDDLE   - All segments of a line have the arrow positioning in the middle.
       * END      - All segments of a line have the arrow positioning in the END.
       * END_ONLY - Only the last segment has an arrow and at its end.
    ScaleBar.
    1. A new graphic ScaleBar option has been added for the map of each view.
       For geographic/geodetic SRIDs distances are currently shown in meters;
       For all SRIDs an attempt is made to "adapt" the scaleBar units depending
       on the zoom level. So, if you zoom right in you might get the distance shown
       as mm, and as you zoom out, cm/m/km as appropriate.
    2. As the scaleBar is drawn, a 1:<DEMONINATOR> style MapScale value is written
       to the map's right most status bar element.
    3. ScaleBar and MapScale can be turned off/on in View>Properties right mouse
       click menu.
    Export Capabilities.
    1. The ability to export a selection from a result set table (ie result of
       executing ad-hoc SQL SELECT statement to GML, KML, SHP/TAB (TAB file
       adds TAB file "wrapper" over SHP) has been added.
    2. Ability to export table/view/materialised view to GML, KML, SHP/TAB also
       added. If no attributes are selected when exporting to a SHP/TAB file, GeoRaptor
       automatically adds a field that holds a unique row number.
    3. When exporting to KML:
       * one can optionally export attributes.
       * Web sensitive characters < > & etc for KML export are replaced with &gt; &lt; &amp; etc.
       * If a column in the SELECTION or table/view/Mview equals "name" then its value is
         written to the KML tag <name> and not to the list of associated attributes.
         - Similarly for "description" -> <description> AND "styleUrl" -> <styleUrl>
    4. When exporting to GML one can optionally export attributes in FME or OGR "flavour".
    5. Exporting Measured SDO_GEOMETRY objects to SHP not supported until missing functionality
       in GeoTools is corrected (working with GeoTools community to fix).
    6. Writing PRJ and MapInfo CoordSys is done by pasting a string into appropriate export dialog box.
       Last value pasted is remembered between sessions which is useful for users who work with a single SRID.
    7. Export directory is remembered between sessions in case a user uses a standard export directory.
    8. Result sets containing MDSYS.SDO_POINT and/or MDSYS.VERTEX_TYPE can also be written to GML/KML/SHP/TAB.
       Example:
       SELECT a.geom.sdo_point as point
         FROM (SELECT sdo_geometry(2002,null,sdo_point_type(1,2,null),sdo_elem_info_array(1,2,1),sdo_ordinate_array(1,1,2,2)) as geom
                 FROM DUAL) a;
       SELECT mdsys.vertex_type(a.x,a.y,a.z,a.w,a.v5,a.v6,a.v7,a.v8,a.v9,a.v10,a.v11,a.id) as vertex
         FROM TABLE(mdsys.sdo_util.getVertices(mdsys.sdo_geometry(2002,null,null,sdo_elem_info_array(1,2,1),sdo_ordinate_array(1,1,2,2)))) a;
    9. A dialog appears at the end of each export which details (eg total) what was exported when the exported recordset/table contains more
       than on shape type. For example, if you export only points eg 2001/3001 from a table that also contains multipoints eg 2005/3005 then
       the number of points exported, and multipoints skipped will be displayed.
    10. SHP/TAB export is "transactional". If you set the commit interval to 100 then only 100 records are held in memory before writing.
        However, this does not currently apply to the associated DBASE records.
    11. SHP/TAB export supports dBase III, dBase III + Memo, dBase IV and dBase IV + Memo.
        Note: Memo allows text columns > 255 characters to be exported. Non-Memo formats do not and any varchar2 columns will be truncated
        to 255 chars. Some GIS packages support MEMO eg Manifold GIS, some do not.
    12. Note. GeoRaptor does not ensure that the SRID of SDO_GEOMETRY data exported to KML is in the correct Google Projection.
        Please read the Oracle documentation on how to project your data is this is necessary. An example is:
        SELECT OBJECTID,
               CODIGO as name,
               NOME as description,
               MI_STYLE,
               SDO_CS.TRANSFORM(shape,'USE_SPHERICAL',4055) as shape
          FROM MUB.REGIONAL;
    13. NOTE: The SHP exporter uses the Java Topology Suite (JTS) to convert from SDO_GEOMETRY to the ESRI Shape format. JTS does not handle
        circular curves in SDO_GEOMETRY objects you must "stroke" them using sdo_util.arc_densify(). See the Oracle documentation on how
        to use this.
    Miscellaneous.
    1. Selection View - Measurement has been modified so that the final result only shows those geometry
       types that were actually measured.
    2. In Layer Properties the Miscellaneous tab has been removed because the only elements in it were the
       Geometry Output options which have now been replaced by the new GML/KML/etc export capabilities.
    3. Shapefile import's user entered tablename now checked for Oracle naming convention compliance.
    4. Identify based on SDO_NN has been removed from GeoRaptor given the myriad problems that it seems to create across versions
       and partitioned/non-partitioned tables. Instead SDO_WITHIN_DISTANCE is now used with the actual search distance (see circle
       in map display): everything within that distance is returned.
    5. Displaying/Not displaying embedded sdo_point in line/polygon (Jamie Keene), is now controlled by
       a preference.
    6. New View Menu options to switch all layers on/off
    7. Tools/Preferences/GeoRaptor layout has been improved.
    8. If Identify is called on a geometry a new right mouse click menu entry has been added called "Mark" which
       has two sub-menus called ID and ID(X,Y) that will add the labeling to the selected geometry independently of
       what the layer is set to being.
    9. Two new methods for rendering an SDO_GEOMETRY object in a table or SQL recordset have been added: a) Show geometry as ICON
       and b) Show geometry as THUMBNAIL. When the latter is chosen, the actual geometry is shown in an image _inside_ the row/column cell it occupies.
       In addition, the existing textual methods for visualisation: WKT, KML, GML etc have been collected together with ICON and THUMBNAIL in a new
       right mouse click menu.
    10. Tables/Views/MViews without spatial indexes can now be added to a Spatial View. To stop large tables from killing rendering, a new preference
        has been added "Table Count Limit" (default 1,000) which controls how many geometry records can be displayed. A table without a spatial
        index will have its layer name rendered in Italics and will write a warning message in red to the status bar for each redraw. Adding an index
        which the layer exists will be recognised by GeoRaptor during drawing and switch the layer across to normal rendering.
    Some Bug Fixes.
    * Error in manage metadata related to getting metadata across all schemas
    * Bug with no display of rowid in Identify results fixed;
    * Some fixes relating to where clause application in geometry validation.
    * Fixes bug with scrollbars on view/layer tree not working.
    * Problem with the spatial networks fixed. Actions for spatial networks can now only be done in the
      schema of the current user, as it could happen that a user opens the tree for another schema that
      has the same network as in the user's schema. Dropping a drops only the network of the current connected user.
    * Recordset "find sdo_geometry cell" code has been modified so that it now appears only if a suitable geometry object is
      in a recordset.  Please note that there is a bug in SQL Developer (2.1 and 3.0) that causes SQL Developer to not
      register a change in selection from a single cell to a whole row when one left clicks at the left-most "row number"
      column that is not part of the SELECT statements user columns, as a short cut to selecting a whole row.  It appears
      that this is a SQL Developer bug so nothing can be done about it until it is fixed. To select a whole row, select all
      cells in the row.
    * Copy to clipboard of SDO_GEOMETRY with M and Z values forgot has extraneous "," at the end.
    * Column based colouring of markers fixed
    * Bunch of performance improvements.
    * Plus (happily) others that I can't remember!If you find any bugs register a bug report at our website.
    If you want to help with testing, contact us at our website.
    My thanks for help in this release to:
    1. John O'Toole
    2. Holger Labe
    3. Sandro Costa
    4. Marco Giana
    5. Luc van Linden
    6. Pieter Minnaar
    7. Warwick Wilson
    8. Jody Garnett (GeoTools bug issues)
    Finally, when at the Washington User Conference I explained the willingness of the GeoRaptor Team to work
    for some sort of integration of our "product" with the new Spatial extension that has just been released in SQL
    Developer 3.0. Nothing much has come of that initial contact and I hope more will come of it.
    In the end, it is you, the real users who should and will decide the way forward. If you have ideas, wishes etc,
    please contact the GeoRaptor team via our SourceForge website, or start a "wishlist" thread on this forum
    expressing ideas for future functionality and integration opportunities.
    regards
    Simon
    Edited by: sgreener on Jun 12, 2011 2:15 PM

    Thank you for this.
    I have been messing around with this last few days, and i really love the feature to pinpoint the validation errors on map.
    I has always been so annoying to try pinpoint these errors using some other GIS software while doing your sql.
    I have stumbled to few bugs:
    1. In "Validate geometry column" dialog checking option "Use DimInfo" actually still uses value entered in tolerance text box.
    I found this because in my language settings , is the decimal operators
    2. In "Validate geometry column" dialog textboxs showing sql, doesn't always show everything from long lines of text (clipping text from right)
    3. In "Validate geometry column" dialog the "Create Update SQL" has few bugs:
    - if you have selected multiple rows from results and check the "Use Selected Geometries" the generated IN-clause in SQL with have same rowid (rowid for first selected result) for all entries
    Also the other generated IN clause in WHERE-clause is missing separator if you select more than one corrective function
    4. "Validate geometry column" dialog stays annoyingly top most when using "Create Update SQL" dialog

  • Can JButtons within applets copy to the clipboard?

    camickr wrote in another thread:
    As always I would like to see the Applet used that caused the problem. We should not have to create our own applet to test this. As we all know from the original problem you may be missing/adding code. And this posting is way off topic so any new SSCCE along with a new question should be posted in a new posting. If I understand the problem is that Ctrl+C works on a text area, but it doesn't work for a JButton that tries to copy text from the same text area?Not quite. Ctrl+C works within a JTable, copying selected row(s) to the clipboard. The problem is getting a JButton to copy arbitrary text to the clipboard, having nothing to do with a JTable.
    Well post the simple 20 line applet that demonstates this.Sorry, it's more than 20 lines. I included three approaches, Jeanette's, Walter's, and mine.
    * Created on 06.12.2010
    * Jeanette, Walter, and Rich
    import java.awt.EventQueue;
    import java.awt.datatransfer.*;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.Toolkit;
    import javax.swing.*;
    public class ThreeCopyButtons  extends JApplet  implements ClipboardOwner
        final JLabel first  = new JLabel("Larry");
        final JLabel second = new JLabel("Moe");
        final JLabel third  = new JLabel("Curly");
        static ThreeCopyButtons cb3;
        public JPanel getContent() {
            JButton kleo = new JButton("Kleo");
         cb3 = this;
            TransferHandler handler = new TransferHandler() {
                 * @inherited <p>
                @Override
                protected Transferable createTransferable(JComponent c) {
                    return new StringSelection(cb3.toString());
                 * @inherited <p>
                @Override
                public int getSourceActions(JComponent c) {
                    return COPY;
            kleo.setTransferHandler(handler);
            kleo.setAction(TransferHandler.getCopyAction());
            kleo.setText("Kleo");  // gets overridden by "copy"
         AppletCopyButton walt = new AppletCopyButton("Walt", toString());
         JButton rich = new JButton("Rich");
         rich.addActionListener( new ActionListener() {
             public void actionPerformed(ActionEvent e) {
              StringSelection ss = new StringSelection(cb3.toString());
              Clipboard cb = Toolkit.getDefaultToolkit().getSystemClipboard();
              cb.setContents(ss, cb3);
            JComponent buttons = new JPanel();
            buttons.add(kleo);
            buttons.add(walt);
            buttons.add(rich);
            JPanel labels = new JPanel();
            labels.add(first);
            labels.add(second);
            labels.add(third);
            JPanel box = new JPanel();
            box.setLayout(new BoxLayout(box, BoxLayout.Y_AXIS));
         box.add(buttons);
         box.add(labels);
            return box;
        public String toString() {
         String s = first.getText() + "\t" +
                 second.getText() + "\t" +
                 third.getText();
         return(s);
        // Empty method needed for implementation of the ClipboardOwner interface.
        public void lostOwnership( Clipboard aClipboard, Transferable aContents) {
          //do nothing
        // method expected by applets
        public void init()
        { // the static block above should have already executed
         try {
             javax.swing.SwingUtilities.invokeAndWait(new Runnable() {
              public void run() {
                  JPanel frame = getContent();
                  setContentPane(frame);
         } catch (Exception e) {
             System.err.println("makeContent() failed to complete: " + e);
             e.printStackTrace();
        public static void main(String[] args) {
            EventQueue.invokeLater(new Runnable() {
                public void run() {
                    JFrame frame = new JFrame("Test");
                    frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
                    frame.add(new ThreeCopyButtons().getContent());
                    frame.pack();
                    frame.setLocationRelativeTo(null);
                    frame.setVisible(true);
    // Walter Laan
    class AppletCopyButton extends JButton {
        public AppletCopyButton(String label, String text) {
            super(label);
         final String clip = text;
            setTransferHandler(new TransferHandler() {
                // @Override
                protected Transferable createTransferable(JComponent c) {
                    return new StringSelection(clip);
                // @Override
                public int getSourceActions(JComponent c) {
                    return COPY;
            addActionListener(new ActionListener() {
                // @Override
                public void actionPerformed(ActionEvent e) {
                    Action copy = TransferHandler.getCopyAction();
                    copy.actionPerformed(new ActionEvent(AppletCopyButton.this,
                            ActionEvent.ACTION_PERFORMED, "copy"));
    }Here is a manifest file I call "3cbManifest.txt".
    Main-Class: ThreeCopyButtonsMake sure you preserve the trailing carriage return.
    ]javac ThreeCopyButtons.java
    ]jar cvfm ThreeCopyButtons.jar 3cbManifest.txt *.class
    ]java -jar ThreeCopyButtons.jar
    (The latter command simply tests, but it is running as program, not applet.)
    And here is a short HTML file to run it as an applet. I call it "3cb.html".
    <html>
    <head><title>TestApplet</title></head>
    <body>
    <applet code="ThreeCopyButtons.class"
            archive="ThreeCopyButtons.jar"
            width="450" height="300">
    Your browser is completely ignoring the <i>applet</i> tag!
    </applet>
    </body>
    </html>The three buttons match our three approaches:
    * Kleo -- Jeanette's approach
    * Walt -- Walt's approach
    * Rich -- my approach
    All three methods work fine as a program, whether running directly as classes or from the .jar. None however work as an applet, from the HTML page.
    To test either as applet or program:
    1) open a text editor
    2) type something short
    3) Ctrl+C copy what you typed
    4) click the Kleo button
    5) in editor, click <enter> and Ctrl+V to paste
    6) observe whether you see the text from step 3 or "Larry Moe Curly", with <tabs> between words.
    7) repeat steps 3-6 for the Walt and Rich buttons
    If you can figure out how to get the applet to bypass its security wall, great. We've found a bug in Java's applet security. If not, I am resigned to having the button in my actual app copy info to the table instead of to the clipboard.

    RichF wrote:
    You are right, but aw gee whiz. Have you ever written something that you think is pretty neat, then have to throw it away? hahahahahaha ... sure, happens nearly every day :-)
    My class QEPanel, which handles each row of the statistics, is like that.yeah, have seen it: pretty nasty mixing of view and data <g>
    Hmm, I wouldn't actually have to throw most of it away. :) correct ...
    The JLabel <b>label</b>s would become the table column labels, and the other JLabels would become integers specifying column. except that I don't completely understand what you are after here (ehem: get your vocabulary right, sir) a clean separation would map the data-part of a QEPanel into a QEBean, with properties title (was: label), percentRed ... etc. Something like:
    public class QEBean extends AbstractBean {
        private float sumRed, sumGrn, sumBlu;
        private float minDist = 9999999;
        private float maxDist = 0;
        private double sumDist;
        private int count;
        private int entries;
        private CountPerEntries countPerEntries;
        private String title;
        public QEBean(String title) {
            this.title = title;
        public void reset() {
            // do reset
            firePropertyChange(null, null, null);
        public void updateData(Color quantized, Color actual) {
            // do update internals
            firePropertyChange(null, null, null);
    //------------ getters...
        public String getTitle() {
            return title;
        public float getPercentRed() {
            if (count == 0)
                return 0f;
            return sumRed / count;
        // more getters
    }Then implement a specialized TableModel which knows about QEBean
    public class QEBeanTableModel extends AbstractTableModel {
        List<QEBean> errors = new ArrayList<QEBean>();
        private PropertyChangeListener errorChangeListener;
        @Override
        public int getColumnCount() {
            return 7;
        @Override
        public int getRowCount() {
            return errors.size();
        @Override
        public Class<?> getColumnClass(int columnIndex) {
            switch (columnIndex) {
                   // implement as appropriate
            return Object.class;
        @Override
        public Object getValueAt(int rowIndex, int columnIndex) {
            QEBean error = errors.get(rowIndex);
            switch (columnIndex) {
            case 0:
                return error.getTitle();
            case 1:
                return error.getPercentRed();
              // more as appropriate
            return null;
        public void addError(QEBean error) {
            int oldSize = getRowCount();
            error.addPropertyChangeListener(getPropertyChangeListener());
            errors.add(error);
            fireTableRowsInserted(oldSize, oldSize);
        public QEBean getError(int row) {
            return errors.get(row);
        private PropertyChangeListener getPropertyChangeListener() {
            if (errorChangeListener == null) {
                errorChangeListener = new PropertyChangeListener() {
                    @Override
                    public void propertyChange(PropertyChangeEvent evt) {
                        int row = errors.indexOf(evt.getSource());
                        fireTableRowsUpdated(row, row);
            return errorChangeListener;
        public void resetAll() {
            for (QEBean error : errors) {
                error.reset();
    }Then use the model in HelpBox:
    // init model and keep in field
         qErrors = new QEBeanTableModel();
         qErrors.addError(new QEBean("Hex QE"));
         qErrors.addError(new QEBean("Name QE"));
         qErrors.addError(new QEBean("Mismatch QE"));
         qErrors.addError(new QEBean("SearchAccuracy"));
            // can't resist - JXTable would make customization so much easier :-)
         // JXTable errorTable = new JXTable(qErrors);
         JTable errorTable = new JTable(qErrors);
         errorTable.setBackground(Color.BLACK);
         errorTable.setSelectionBackground(Color.BLACK);
         errorTable.setForeground(Color.WHITE);
         errorTable.setSelectionForeground(Color.WHITE);
         errorTable.setGridColor(Color.BLACK);
            // install renderers which produce an output similar to the labels
           panel.add(errorTable)
    // in the update methods - update the QEBeans stored in the model
        public void updateQE(int which, String q, String a)
         Color     quantized = Color.black;
         Color     actual = Color.black;
         int     rgb[] = { 0, 0, 0 };
         NTC.getRGB(q, rgb);
         quantized = new Color(rgb[0], rgb[1], rgb[2]);
         NTC.getRGB(a, rgb);
         actual = new Color(rgb[0], rgb[1], rgb[2]);
         qErrors.getError(which -1).updateData(quantized, actual);
    // similar in reset, updateEntriesThat's all and will give you an output very similar to the rows of individual labels, only more symetric.
    The toString() method would go away because row toString() is already built into JTable.ehhh? No, not that I know of :-) The default renderer uses the toString of the cell value, the row is not involved.
    >
    Then you can implement the button's action to copy that error table's content to the clipboard. Better usability ensured, IMO.I'll just throw away the darn button. The colorTable doesn't have one, so why should the statisticsTable? sure, that's an option - the visual setup outlined above is for hiding the table-nature, if you want it expose, just do - no problem.
    Cheers
    Jeanette

  • Unable to complete photo book order on ipad

    Hi, I hope this is the right place to get some help. Regarding placing an iphoto photo book order on an ipad.
    I have been working on a photo book project for a long time, and want to finally order some copies of the book. Everything has worked fine, except that I get a message that I have some clipped text that may be exceeding its boundaries. I can't figure out where this is, no warning triangles are showing, so I choose to proceed with the order anyway. The next page is black/dark grey with a small icon of the front page of the photo book, and it says "done" ("ferdig" in Norwegian) on top. I can click on some words in blue writing on the top right of the page, "add delivery address" (in Norwegian). When I try to type somehing in there, nothing happens.
    Aaargh, this is so frustrating! I have checked that my address and credit card info is valid, in my apple id-account(itunes).
    Shouldn't there be some uploading of the album? And a choice of how many copies etc I want? I have checked my email and there are no order confirmations, so I apparently havent placed an order yet, despite the "done"/"ferdig" on top of the page.
    Does this sound familiar to anyone? What can I do?

    Hey there Nyibyen,
    It sounds like you are unable to purchase a project youve been working on for a good long while, but the order process is not working as expected. I would start by verifying you have Express Checkout enabled in your Account Settings when you are at http://store.apple.com, with this info:
    You can review or edit your express checkout settings by accessing the Account section from the main navigation bar. Sign-in with your Apple ID and password to view your account settings. Click on the Edit button if you wish to edit your shipping address or payment method. You can also enable or disable the express checkout feature for this computer by moving the slider to the respective position.
    From: Express Checkout
              http://store.apple.com/us/help/express_checkout_faq
    If so and your other billing info is correct, quit all the running apps on the iPad:
    iOS: Force an app to close
    http://support.apple.com/kb/ht5137
    Double-click the Home button.
    Swipe left or right until you have located the app you wish to close.
    Swipe the app up to close it.
    When you have done that and restart the phone and test the issue again:
    iOS: Turning off and on (restarting) and resetting
    http://support.apple.com/kb/ht1430
    If the issue is still unresolved, try resetting your network settings and attempting the order again.
    Reset network settings by tapping Settings > General > Reset > Reset Network Settings. Note: This will reset all network settings including:
    previously connected Wi-Fi networks and passwords
    recently used Bluetooth accessories
    VPN and APN settings
    From: iOS: Troubleshooting Wi-Fi networks and connections
              http://support.apple.com/kb/TS1398
    Thank you for using Apple Support Communities.
    Take care,
    Sterling

  • Is it possible to duplicate a button, instead of building a new one each time (navigation)

    In CS5...
    I have created a movieclip button which is animated  for all the states I need (up, over, out, etc.) it's made up of text, which is in a movie clip where I have my animations created (actions layer with AS3 script, my txt movieclip layer, my hit layer) and then that is inside a movie clip in my main scene.
    Is it possible to copy that button, so then change the text, Actionscript, instance name, etc?
    I tried copying the layer (by selecting the frames and copying frames, and pasting to new layer) but when I make any changes, it changes both copies!
    Can someone tell me an easy workflow so I don't have to build each button from the ground up each time?
    Thanks all!

    Ned Murphy wrote:
    Select the textfield that is inside the movieclip and in the properties panel you should see a dropdown for selecting the type of textfield.  If you select Dynamic and then assign an instance name to the textfield you can use that instance name in your code to assign the text when the file runs.  If you were to name the textfield "tField", then the code you would use inside an instance of your movieclip named "mClip1" would be...
    mClip1.tField.text = "your text";
    So, if I have multiple buttons, using your example, would the code read
    mClip1.tField.text = "your text";
    mClip1.tField2.text = "your text2";
    mClip1.tField3.text = "your text3";
    mClip1.tField4.text = "your text4";
    And my buttons are built inside movieclips, ie
    Main Timeline > aboutButton_mc > aboutText_mc > "about"
                        > contactsButton_mc > contactsText_mc > "contacts"
    can the code be put at any level, or does it need to reside on the Main Timeline to access all the movie clips' text fields?
    Just in case this may be too complex to get into via this forum, if you know of any good tutorials, that would be awesome too!
    I tried doing a search, but it's so hard to tell if they might be in AS2, or AS3, and if they would apply to newer versions of Adobe Flash (I have CS5)

  • SWF problem in IE 7

    I am running CS3 at my company and I ran into problems today.
    I published a .swf file using actionscript 2.0 and using flash
    player 7 or less. The first .swf is a slideshow that has movie clip
    text and .jpg's fading in and out. The photo's fade in correctly,
    but they seem to skip about 2 pixels down and right at the very end
    (possibly near the keynote that brings the file back to 100%
    alpha). Also, the text never shows up at all, not when it should be
    fully visible, or when it should be fading. The second .swf is a
    movie clip of objects that fade in and out. For some reason, the
    textual objects (not text, but letters that are imported as
    objects) fade in correctly. There is a symbol that is made of
    objects as well, but it imports in as a circle that is filled in
    color. The circle is part of the symbol, but the other objects
    ontop of it do not show up.
    The clinch to all of this is that these ALL appear fine in
    Safari and Firefox, as well as internet explorer EXCEPT for version
    7. The question is, do I need to be exporting these some other way,
    or are there settings within version 7 that need to be changed or
    maybe it is something else. Any ideas are welcome. These files are
    being posted for a company that has thousands of hits weekly, if
    not daily which is the reason for the low flash player version when
    being published. Thanks for any help in advance.

    The issue was in the select tag. FireFox automatically puts
    the text value into the value of the option IE does not. So I just
    added the value attribute and put the value there:
    <select
    onchange="filterRegion(this.options[this.selectedIndex].value);">
    <option value="All Regions">All Regions</option>
    <option value="{dsRegions::region}"
    id="regionrepeatrow">{dsRegions::region}</option>
    </select>

  • Is it possible to do this in one SQL query?

    Hi there.
    Please forgive me, I only have rudimentary knowledge of databases - I would just like to know if it is possible to do something. That's the most important thing I need to know. Anything additional anyone is nice enough to add regarding how to go about it would be a welcome bonus =)
    As it happens, I'm sure this must have been necessary in some capacity before.
    Anyway, I have two tables with a very similar attribute 'name' and 'owner name'. They aren't linked as foreign keys. I need to find examples where 'name' and 'owner' name are not the same. Unfortunately, both 'name' and 'owner name' can contain titles and/or first name and/or surname and/or any other nonsense the person completing the form cares to enter. I need a query that will not return results along the lines of:
    Name Owner Name
    Mr Bob Monkhouse & B Monkhouse
    I need to query to classify this as the same thing, and therefore not return this result.
    What I am looking to do, is retrieve entries that have the same surname. Obviously there is the disadvantage of the following being classed as the same (when, for the purpose of the query, they are not) :
    Name Owner Name
    Mrs Dorris Monkhouse & B Monkhouse
    I just can't see anyway around that though - to change the database so that it has a First Name attribute, and Surname attribute just isn't possible.
    So basically, if anyone could comment on whether it is possible to 'match' a string of characters (i.e. the surname element of 'Name' and 'Owner Name'), and write a query that will return entries with a high probability of the person in each not being the same person, I would be delighted to hear from you!
    Thank you for reading

    If you assume that the surname is always in the last part of the field (so you will always have "B Monkhouse", never "Monkhouse, B" and it is a varchar(2) field, then thiscan be done using a combination of INSTR (to find the ' ' (space)) and SUBSTR to clip text backwards until you find the space
    I'm sure someone knows how to do this off the top of their head - I'll look it up and if no-one replies in the meantime, I'll let you know.
    I'm working off a version 7 database - there may be a nattier way to do it in newer versions...

Maybe you are looking for