Inserting javascript - quote marks turn to an apostrophe

I am having a strange problem with inserting javascript. The
ending quote mark looks to be an apostrophe.
type="text/javascript'> - and it seems to be screwing with
the webpage reading the script. When I highlight it the quote mark
is there. I have a few absolute paths to some of the javascript but
it looks like this: <script src="
http://www.xxxxxxx/scripts/default.js"
type="text/javascript " ></script> - having to separate
the quote marks that far to get it to read it - anyone know why
this is?
Thanks
Rob

There were oodles of things fixed in that upgrade to 6.1. You
are at risk
driving an unpatched 6.0.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"Mick White" <[email protected]> wrote in
message
news:fpfk4v$fhg$[email protected]..
> BOC_RUSH wrote:
>
>
>> thanks Mick
>>
>> for peace of mind when I install DW via Adobe CS3
Suite.. will that go
>> away?
>
> For sure. And if I remember correctly DW issued a patch
or an minor
> upgrade. 6 to 6.1
> Mick

Similar Messages

  • GREP for finding wrong facing apostrophes/quote marks?

    I have this one set up
    (?<=\w)((~[|~{))
    But I'm not 100% convinced
    What I really want to search for is
    any double quote at the start of a word/sentence - but don't include it in the search
    Ignore any text
    Find the left quote or left apostrophe
    I was doing this
    .+?(\>(~{|~[)
    But that was selecting the text before it
    I just want to select the Apostrophe or the Quote marks.

    What do you want to accomplish? Do you want to change straight apostrophes into typographic apostrophes?
    If it is this what you intent, do following:
    In the preferences activate typographic apostrophes, in the dictionary part select each language and put the correct apostrophe.
    In the document take care that your paragraph styles have the correct language (and also the character styles)
    In GREP change " to ". (Eg. in German it would change a "text" to „text”, but also «text» to „text”.

  • Tip: Placing Straight Quotes without turning off Smart Quotes

    I thought I was alone in this dilemma until I read a recent thread from someone wishing to easily place straight quotes into a document. Prior to this, the quickest way for me to place straight quotes into a document was to copy/paste them from a text editor. Even when you try to add straight quotes using the ASCII code for them, Frame overrides this and replaces them with smart quotes.
    Last week when I was customizing the Frame 9 interface (because it is ungodly poor) I stumbled across the native command for inserting straight quotes regardless whether Smart Quotes is turned on or not. The native command is "CharStraightQuote", but you have a lot of options with how you want to implement it. Because there are so many different ways to implement this, I will describe only the default method.
    There is a flyout toolbar for special symbols. The content of this flyout is controlled from your "menus.cfg" file and is near the top of the file. I believe you can add the following line anywhere within the "menus.cfg" file, but you will find similar entries about 30 lines down from the top of the file.
       <Add CharStraightQuote                <Menu SpecialSymbols>>
    By the way, if you look through your "cmds.cfg" file, especially near this CharStraightQuote entry, you will find a whole bunch of similar entries that are useful and could also be added to your menus.

    To insert the straight quotes directly from the keyboard (overriding Smart Quotes): press Escape, then type quotes.
    (note: no need to hold down the Escape key)
    Shlomo Perets
    MicroType, http://www.microtype.com
    FrameMaker/TCS training & consulting * FM-to-Acrobat TimeSavers/Assistants
    "Improve your FrameMaker Skills" web-based training sessions

  • How to insert Javascript within Javascript ?

    I have a simple problem.
    I want to insert Javascript within Javascript ???
    Seems weird !!!
    Here's the scenario :
    I have created a JSP in which I have a function that Submits the main form in the main window.
    Here's the function :
    function SubmitContent()
    document.f1.method='post';
    document.f1.action='http://localhost:8080/examples/sherbir/texteditor2/page2.jsp';
    document.f1.submit();
    and here's the form description :
    <form name='f1'>
    But before that, on clicking the submit button in the main window, I am opening a child window to perform a few operations as follows :
    <input type="button" name="bttn_preview" value="Preview" onClick="javascript:SeePreview()">
    Here's the SeePreview() function which opens the child window:
    function SeePreview()
    var mywin=window.open("","","menubar=no,toolbar=no,scrollbars=yes,width=800,height=450");
    mywin.moveTo(0,50);
    mywin.document.write('<input type=button value="Make more changes"
    onClick=javascript:window.close()>');
    mywin.document.write('<input type="submit" name="child_bttn_sub" value="Proceed" onClick=self.close(); self.opener.SubmitContent();>');
    The child window in turn has a submit button as defined above.
    On clicking this button, I want the child window to close and hence submit the parent form also.
    It's not happening !!
    I even tried changing the order of the two statements in the OnClick event of the submit button in the child window.
    I also tried self.opener.document.forms[0].submit()
    None works.
    Where's the problem ??
    How do I remedy the situation ?
    Please Help.

    Not satisfiedAnd you won't be till you ask the right people for an answer. This is Java, and JavaServer Pages (JSP), not Javascript. If you go to a Javascript forum you will have a better chance of finding people who know more Javascript. Makes sense, doesn't it?

  • Pages won't break line between quote mark and parenthesis?

    Working on a manuscript in Pages, I find it won't do a line break between a quote mark and a parenthesis. For instance, there is the following text string:
    Buddha” (buddhavacana)
    Pages insists on keeping this string together, even if there's plenty of room on the previous line for the word Buddha” -- it will space out the previous line horribly to keep these two words together. If I remove the close-quote ” (which can be either a typewriter-style quote mark or curly), or the open parenthesis before the next word, it moves Buddha to the previous line. Doesn't matter what the words are, either; it can be:
    xxx” (xxxxxxxxxxxxxx)
    When I go to another paragraph and add a close quote to a word at the end of a line, then an open parenthesis to the word at the beginning of the next line, suddenly they're stuck together, both moved to the second line, leaving the first line grossly spaced out.
    If there's both a quote mark and an open parenthesis (even though they are separated by a space, thus should break between them when appropriate), Pages insists they have to stay together. The only way I can separate them is by putting a paragraph break (return) between them, which causes other problems.
    Anyone have any idea why this happens, if Pages can be told not to do it?

    I wrote about that because I was surprised to get a closing curly one when I typed a straight one just after the word buddha.  I assumed, wrongly, that, as there was no opening double quote before, I would get an opening one.
    I understood later that the app decipher the typed char as a kind of apostrophe which is highly surprising when the app is running in French. The English curly quote buddha” may make sense (I'm not convinced that it really does) but the French chevron buddha» doesn't.
    Forcing the opening char:
    buddha“ or  buddha«gave the same behavior which I thought to be odd.
    I know that it's not a common practice but when I study a behavior, I try to examine it in all its aspects.
    Back to what make or doesn't make sense, I understand the behavior of buddha’ but not the buddha” 's one.
    I never saw a double quote used as an apostrophe character.
    So, I will file a report to Bugs Hunters.
    Yvan KOENIG (VALLAURIS, France) samedi 28 mai 2011 17:48:37
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.7
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • Simple key stroke to insert a prime symbol instead of an apostrophe?

    Is there a simple key stroke that you can to insert a prime character instead of an apostrophe when your prefrerence is set for "smart quotes" so that you don't have to re-set your preferences???

    Welcome to Apple Support Communities.
    "Simple"? Not exactly...
    This older discussion details the steps to use Unicode entry.
    https://discussions.apple.com/thread/1899290?start=0&tstart=0
    Open , System Preferences, Hardware, Keyboard allows you to check the box, 'Show Keyboard and Character Viewer in menu bar'. This step gives you quick access to your chosen Keyboard defaults in the menubar.
    Open , System Preferences, Personal, Language & Text, to checkmark the Unicode Hex Input box. This permits you to use Unicode for quick(er) special character entry, provided you know the hex equivalent of the desired character(s), listed in the character tables.
    With the Unicode Hex Input enabled, hold down the alt/option key and type 2032 (the Unicode decimal number) for the prime symbol ′.
    Within the Characters table, save your favorites by clicking the 'gear' button at the bottom left of the Character table, then you can quickly find them and press the 'insert' button in the lower right.
    Note that the prime character appearance changes with the font in use, and probably is not available in every font.

  • Smart quotes got turned off?

    Working in CS3. It appears that my smart quotes got turned off. Not sure where to turn them back on. Any advice?
    Thank you!

    It's in the Preferences. There is also a hotkey combo, but I always forget what it is -- you might have pressed it.

  • Pages 5.2.2, every line ends with a quote mark

    Hello, hope someone can help with this problem.
    As soon as I start to type words in Pages, a double quotation mark appears after my words.  Can anyone advise how to stop this happening?
    If I type with invisibles on, the quote mark doesn't appear.
    Others in the office running the same software don't have this problem.  Is there something wrong with my setup?
    Thanks very much.
    Allen

    Pages v5.2.2 is an entirely different application than Pages ’09. Because it lacks over 100 features/functionality available in Pages ’09, it will quietly filter content from older documents that it doesn't support. That's one issue.
    Is anyone else in your office using the Interstate font with Pages v5.2.2, and the same OS X 10.9 release?
    Here are two simple things you can do, though I am betting on item 2 that will rebuild your system and local user font databases.
    Use Disk Utility to verify/repair your permissions
    Boot into Safe Boot Mode
    Shutdown
    At the boot chime, press and hold the shift key until you see a grey, horizontal progress bar
    At the login prompt, after you type in your password, and before you click the arrow to login
    Press and hold the shift key until you are logged in with the Finder menu bar showing
    Test Pages v5.2.2 with your Interstate font (things will be slower because of Safe Boot Mode)
    Reboot normally

  • The starting quote marks at the end of a line in my epub file are separated from the words quoted.

    The starting quote marks at the end of a line in my epub file are routinely separated from the word quoted which appears on the next line. The formatting contractor accurance.com who prepared this epub file tells me that this is a feature of Adobe Digital Edition 2.0 and that there is nothing they can do to correct this. Are they correct, or else how can this problem be overcome?

    I'm not sure about buying css style sheets. 
    You don't need one for each book; if you want to have a series of books all with the same general format,
    then they should all use the same style sheet on a given device, but maybe different style sheets for different devices.
    All the books will then have one consistent look on a given device, and a different consistent look on another device.
    ADE only runs on PCs and Macs.  There are lots of different ereader software apps out there for running on different devices.
    For a dedicated device, you are stuck with the reader the device provides.
    For tablets you can download different ereader apps, for example Bluefire (my favourite, ios, Android), Aldiko (android) and DReader and DL Reader (windows RT).
    I don't know if the readers/apps are derived from the same root as ADE in any way and likely to show similar bugs.
    If it is not DRM, you should certainly try on Calibre, which is the most popular (free) ereader app for computers.
    If you care to create a very short non DRM extract (complete with css) and post it somewhere on the web I'll have a quick look.
    If you have inclination to get more involved yourself,
    there is free software called sigil (https://code.google.com/p/sigil/) that will help you get off the ground and experiment.

  • Can Apple make an app or an update that makes you insert your password to turn your phone off? This can help deal with theft of iPhones because people take or find a iPhone, the first thing they do is turn the phone off.

    Can Apple make an app or an update that makes you insert your password to turn your phone off? This can help deal with theft of iPhones because people take or find a iPhone, the first thing they do is turn the phone off.

    They probably can do such s thing if they choose to do so.
    Let them know that you would like this:
    http://www.apple.com/feedback
    Not sure this is a very useful thing.  It would run down the battery.  All a thief has to do is remove them SIM and restore the iphone to stop it from being tracked.

  • My muse website, when uploaded, jumbles quotation marks, bullet points and apostrophes to appear as • and â€? Why?

    My muse website jumbles quotation marks, bullet points and apostrophes to appear as ’.
    Its fine when I preview in browser, only once it's been uploaded do the marks become jumbled. Why?

    Thanks Zak..The server host said that the jumbled marks are appearing as binary code while the rest of the text is appearing as "text".
    They believe that the problem may be occurring at the FTP. The server host is configured to host binary and unicode.
    They advised me to upload a zipped folder containing the site and they will try and open it at their end. Also, not sure if this is unique
    to Adobe font kits. Its from Adobe Font kit.

  • How to insert single quotation marks

    Hi folks!
    I'm having problem with inserting single quotation marks (').
    I know this could be easily solved but I'm not sure what the best solution is.
    Example
    updatePackingMethod("That's it");
    will throw a sql exception:
    Syntax error (missing operator) in query expression ''that's it'
    my function is written like this
    public boolean updatePackingMethod(String packName, int id){
    String sql="Update PackMethod set PackMethodName='"+packName+"' where Id ="+ id;
    try {
    Statement stmt=conn.createStatement();
    int result=stmt.executeUpdate(sql);
    if(result>0)
    return true;
    catch (SQLException ex) {
    ex.printStackTrace();
    error.setError(ex.getMessage);
    return false;
    Any?
    /Filip

    public boolean updatePackingMethod(String packName, int id){
    String sql=" Update PackMethod set PackMethodName= ? where Id = ? ";
    PreparedStatement pstmt = null;
    try {
    pstmt = conn.prepareStatement( sql );
    // pstmt.setXXX( index, paramValue );
    // where XXX is datatype of parameter
    // index is the Nth ? (question mark) in the sql
    // paramValue is the value to be used instead of ?
    pstmt.setString( 1, packName );
    pstmt.setInt( 2, id );
    int result=pstmt.executeUpdate( );
    if(result>0)
    return true;
    catch (SQLException ex) {
    ex.printStackTrace();
    error.setError(ex.getMessage);
    } finally {
    if( pstmt != null ) pstmt.close();
    return false;

  • Inserting images to mark text boundaries

    Ive added text to a JTextPane from a file.
    and by mouse click ive inserted character
    to mark the boundaries of the text.
    instead of character ive to do with images
    for marking the segment boundaries.
    please suggest me some method for inserting
    images in TextPane for marking boundaries

    Sorry Andre..Still im not getting what you are saying.. im trying to do like this..Could u pls suggest me where i went wrong..Im inserting the icon directly to textpane..rather than to label nd inserting label to textpane bcos label with image cant be retained when mouse is clicked over several times in textpane....
    import java.awt.Cursor;
    import java.awt.Image;
    import java.awt.Point;
    import java.awt.Toolkit;
    import java.io.*;
    import java.util.Enumeration;
    import java.util.Vector;
    import javax.swing.JComponent;
    import javax.swing.JFrame;
    import javax.swing.JInternalFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import ncst.pgdst.*;
    import java.awt.Color;
    import javax.swing.ImageIcon;
    import javax.swing.text.*;
    import com.sun.org.apache.xerces.internal.impl.io.UTF8Reader;
    import java.util.Collection;
    import java.util.Iterator;
    import java.util.StringTokenizer;
    import java.awt.BasicStroke;
    import java.awt.Color;
    import java.awt.Graphics2D;
    import java.awt.geom.Ellipse2D;
    import java.awt.geom.Line2D;
    import javax.swing.text.DefaultStyledDocument;
    public class EditFormGui  extends javax.swing.JFrame{
        private javax.swing.JMenu fileMenu;
        private javax.swing.JMenuBar jMenuBar1;
        private javax.swing.JScrollPane jScrollPane1;
        private javax.swing.JLabel labelModes;
        private javax.swing.JPanel leftPanel;
        private javax.swing.JMenuItem loadRST;
        private javax.swing.JButton paraSegment;
        private javax.swing.JMenuItem quit;
        private javax.swing.JMenuItem save;
        private javax.swing.JButton saveSegmentMode;
        private javax.swing.JButton editSegment;
        private javax.swing.JButton showStructure;
        private javax.swing.JButton showText;
        private javax.swing.JMenu structureMenu;
        private javax.swing.JTextPane textPane;
        private javax.swing.JPanel textPanel;
        private boolean segmentFlag = false,debug=true;
        private UserText userText=new UserText();
        private JPanel structureframe=new JPanel();
        private javax.swing.JTabbedPane jTabbedPane;
        private java.util.Vector pNodesVector = new java.util.Vector();
        private javax.swing.JComboBox relationList;
        private javax.swing.JFrame relationChooserFrame = new javax.swing.JFrame();
        private javax.swing.JScrollPane relationScrollPane = new javax.swing.JScrollPane();
        private JLabel label_image;
        ImageIcon icon;
        Cursor c;
        String[] store;
        int posX_icon,posY_icon;
        Point iconPos;
        Vector iconPositions;
        public EditFormGui() {
            initComponents();
        public void initComponents()
            jTabbedPane = new javax.swing.JTabbedPane();
            textPanel = new javax.swing.JPanel();
            iconPositions=new Vector();
            saveSegmentMode = new javax.swing.JButton();
            editSegment=new javax.swing.JButton();
            showText = new javax.swing.JButton();
            showStructure = new javax.swing.JButton();
            labelModes = new javax.swing.JLabel();
            jScrollPane1 = new javax.swing.JScrollPane();
            jScrollPane1.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
            textPane = new javax.swing.JTextPane();
            textPane.setEditable(false);
             icon = new ImageIcon("F:/images/division.jpg");
             label_image = new JLabel(icon);
            jMenuBar1 = new javax.swing.JMenuBar();
            fileMenu = new javax.swing.JMenu();
            loadRST = new javax.swing.JMenuItem();
            save = new javax.swing.JMenuItem();
            quit = new javax.swing.JMenuItem();
            structureMenu = new javax.swing.JMenu();
          Toolkit tk = Toolkit.getDefaultToolkit();
          Image image =tk.getImage("F:/images/del.jpg");
          c= tk.createCustomCursor(image , new Point(0,0), "F:/images/del.jpg");
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            saveSegmentMode.setText("Save Segment");
            saveSegmentMode.addActionListener(new java.awt.event.ActionListener() {
             public void actionPerformed(java.awt.event.ActionEvent evt) {
               saveSegmentModeActionPerformed(evt);
            org.jdesktop.layout.GroupLayout textPanelLayout = new org.jdesktop.layout.GroupLayout(textPanel);
            textPanel.setLayout(textPanelLayout);
            textPanelLayout.setHorizontalGroup(
                textPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(textPanelLayout.createSequentialGroup()
                  .addContainerGap()
                    .add(textPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                                .add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 337, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                                .add(51,51,51)
                                .add(saveSegmentMode)
                                .addContainerGap(36, Short.MAX_VALUE)                               
           textPanelLayout.setVerticalGroup(
                textPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(textPanelLayout.createSequentialGroup()           
                .add(textPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                        .add(textPanelLayout.createSequentialGroup()
                            .add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 211, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(49, 49, 49)
                            .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED))
                        .add(textPanelLayout.createSequentialGroup()
                            .addContainerGap(43, Short.MAX_VALUE)
                            .add(saveSegmentMode)))
                    .addContainerGap(43, Short.MAX_VALUE))        
            showText.setText("Text");
            labelModes.setText("Modes: ");
            showStructure.setText("Structure");
            jTabbedPane.add(textPanel);
            jTabbedPane.setTitleAt(0,"Text");
            showStructure.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    showStructureActionPerformed(evt);
            textPane.addKeyListener(new java.awt.event.KeyAdapter() {
                public void keyTyped(java.awt.event.KeyEvent evt) {
                    textPaneKeyTyped(evt);
            textPane.addMouseListener(new java.awt.event.MouseAdapter() {
                public void mouseClicked(java.awt.event.MouseEvent evt) {
                    textPaneMouseClicked(evt);
                   public void mouseEntered(java.awt.event.MouseEvent evt) {
                    textPaneMouseEntered(evt);
                    public void mouseExited(java.awt.event.MouseEvent evt) {
                    textPaneMouseExited(evt); 
            jScrollPane1.setViewportView(textPane);
            fileMenu.setText("File");
            loadRST.setText("Load RST file");
            loadRST.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    loadRSTActionPerformed(evt);
            fileMenu.add(loadRST);
            save.setText("Save RST");
            save.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    saveActionPerformed(evt);
            fileMenu.add(save);
            quit.setText("Quit");
            quit.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    quitActionPerformed(evt);
            fileMenu.add(quit);
            jMenuBar1.add(fileMenu);
            structureMenu.setText("Structure");
            jMenuBar1.add(structureMenu);
            setJMenuBar(jMenuBar1);
            org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
                    getContentPane().setLayout(layout);
                    layout.setHorizontalGroup(
                        layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                        .add(layout.createSequentialGroup()
                            .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                                .add(layout.createSequentialGroup()
                                    .add(26, 26, 26)
                                .add(layout.createSequentialGroup()
                                    .addContainerGap()
                                    .add(jTabbedPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                            .addContainerGap())
                    layout.setVerticalGroup(
                        layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                        .add(layout.createSequentialGroup()
                            .addContainerGap()
                            .add(23, 23, 23)
                            .add(jTabbedPane, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            textPane.setText("This seems to be an interesting exercise. I will surely learn swing now.");
            userText = new UserText(textPane.getText());
            pack();
            validate();
        private void saveSegmentModeActionPerformed(java.awt.event.ActionEvent evt) {                                               
            String textWithPipes= new String(textPane.getText());
            System.out.println("Text with pipes"+textWithPipes);
            userText.setUserText(textWithPipes);
            showStructure();
        private void showStructureActionPerformed(java.awt.event.ActionEvent evt) {
            showStructure();
        public void showStructure()
                 int count=0;
               int totcount=iconPositions.size();
               java.util.Iterator iter = iconPositions.iterator();
              store=new String[totcount];
              try
               String usertxt=userText.getTextWithSegment();
                      char[] usrtxt_chararr=usertxt.toCharArray();
                      System.out.println("Character array Usertextlength"+usrtxt_chararr.length);
                      int pt;
                      pt=0;
              while (iter.hasNext()) {
                          String obj=iter.next().toString();
                          int itervar=Integer.parseInt(obj);
              String subst=usertxt.substring(pt,itervar);   
              pt=itervar+1;
                store[count]=subst;
                 count++;
               catch(Exception e) {}
                   for(int i=0;i<store.length;i++)
                        System.out.println("Store Array Elements"+store);
    structureframe=new Rstmain.gui.ModifyS(store);
    structureframe.setVisible(true);
    jTabbedPane.add(structureframe); //Adding Structure frame
    jTabbedPane.setTitleAt(1,"Structure");
    validate();
    private void textPaneKeyTyped(java.awt.event.KeyEvent evt) {                                 
    if (segmentFlag){
    textPane.setEditable(false);
    private void textPaneMouseClicked(java.awt.event.MouseEvent evt) {                                     
    textPane.setEditable(true);
    int caretpos=textPane.getCaretPosition();
    System.out.println("Caret inserting positions"+caretpos);
    iconPositions.add(caretpos);
    // textPane.insertComponent(label_image);
    textPane.insertIcon(icon);
    textPane.setEditable(false);
    private void textPaneMouseEntered(java.awt.event.MouseEvent evt) {                                     
    private void textPaneMouseExited(java.awt.event.MouseEvent evt) {                                     
    setCursor(null);
    private void loadRSTActionPerformed(java.awt.event.ActionEvent evt) {                                       
    File file;
    SimpleInput sin;
    javax.swing.JFileChooser fd;
    fd = new javax.swing.JFileChooser(new File("."));
    fd.setDialogTitle("Open File...");
    int action = fd.showOpenDialog(this);
    if (action != javax.swing.JFileChooser.APPROVE_OPTION) {
    return;
    file = fd.getSelectedFile();
    try {
    sin = new SimpleInput(file);
    StringBuffer line = new StringBuffer("");
    textPane.setText("");
    while (!sin.eof()) {
    line.append(sin.readLine());
    textPane.setText(line.toString());
    textPane.setEditable(false);
    userText = new UserText(line.toString());
    catch (Exception e) {
    javax.swing.JOptionPane.showMessageDialog(this,
    "Sorry, some error occurred:\n" + e.getMessage());
    private void saveActionPerformed(java.awt.event.ActionEvent evt) {                                    
    File file;
    javax.swing.JFileChooser userFile;
    userFile = new javax.swing.JFileChooser(".");
    userFile.setDialogTitle("Save Text As...");
    int action = userFile.showSaveDialog(this);
    if (action != javax.swing.JFileChooser.APPROVE_OPTION) {
    return;
    file = userFile.getSelectedFile();
    if (file.exists()) {
    action = javax.swing.JOptionPane.showConfirmDialog(this,
    "Replace existing file?");
    if (action != javax.swing.JOptionPane.YES_OPTION)
    return;
    try {
    PrintWriter out = new PrintWriter(new FileWriter(file));
    String contents = textPane.getText();
    out.print(contents);
    if (out.checkError())
    throw new java.io.IOException("Error while writing to file.");
    out.close();
    catch (java.io.IOException e) {
    javax.swing.JOptionPane.showMessageDialog(this,
    "Sorry, an error has occurred:\n" + e.getMessage());
    private void quitActionPerformed(java.awt.event.ActionEvent evt) {                                    
    System.exit(0);
    public static void main(String args[]) {
    java.awt.EventQueue.invokeLater(new Runnable() {
    public void run() {
    System.out.println("Inside run");
    new EditFormGui().setVisible(true);
    And this is the UserText classimport com.sun.org.apache.bcel.internal.classfile.JavaClass;
    public class UserText{
    int countpipe;
    String userText="";
    java.util.Vector segmentinfo = new java.util.Vector();
    public UserText(String input) {
    userText = input;
    public UserText(){}
    public int getNumberOfSegments()
    return segmentinfo.size();
    public void addSegment(int endIndex){
    int i = 0;
    segmentinfo.add(endIndex);
    public void setUserText(String textWithPipes)
    int indexOfPiping, j=0 ;
    StringBuffer temp = new StringBuffer(textWithPipes);
    segmentinfo.add(j);
    for (int i = 0; i < textWithPipes.length();i++)
    j = textWithPipes.indexOf('|',j);
    segmentinfo.add(j);
    for (int k = 0; k < textWithPipes.length();k++)
    if(textWithPipes.charAt(k)=='|')
    countpipe++;
    userText = temp.toString();
    public String getTextWithSegment(){
    return userText;
    public String getTextWithoutSegment(){
    java.util.StringTokenizer st = new java.util.StringTokenizer(userText,"|");
    StringBuffer temp = new StringBuffer();
    while(st.hasMoreTokens())
    temp.append(st.nextToken());
    return temp.toString();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      

  • How to insert javascript with in a servlet

    Please send the code to insert javascript with in a servlet

    hi,
    You have write u r java script code in Servlet with teh following steps
    1.Use out.println("<html> .....</html>")
    in between the above html code u write ur <script language="javascript"> etc
    write your javascript code in the above <sript tah function.
    Hope this helps
    -Srini

  • Why I can't I do a songs sort which are marked by !'s (apostrophes) on the left side of list indicating the song does not exist in my music border, instead of scrolling through 1000's of song manually?? Seems stupid, no?

    Why I can't I do a songs sort which are marked by !'s (apostrophes) on the left side indicating the song does not exist in my music border, instead of scrolling through 1000's of song manually?? Seems stupid, no? And these !'s appear only when you try to play that song and it says "unable to locate".

    Use Shift+Delete to remove items from a playlist and the library at the same time.
    tt2

Maybe you are looking for

  • File name display

    I could have sworn that I have used a setting in idvd that displays the file name along with the picture in a slideshow. Now I cant find this feature. I'm using idvd 6. Help? Chas

  • My account needs to be reset, have Nook HD

    Anyone having problems with Nook HD? Cannot download books from Adobe Or Library

  • How to add a new Portal instance in 10.1.2

    In previous versions of AS,were able to create new portal instances by running the portal configuration assistant like this: ptlasst -mode PORTAL -s <portal_schema_to_create> -c <db_conn> -p <password> -demo –report it was possible to have several in

  • Itunes - third party creations/utilities?

    is there any third party software to help clean up your music library. I've somehow totally f'ed my up when trying to back up to a usb drive. my lib lost all of my music even though the files were still there. so i replaced the files so now my librar

  • Block third party cookies, does not block?? waddup??

    please block anything at all that comes from, cdn.sendori.com, or searchassist.com. have these companies bought off all web browser people, (including Firefox) so they can display ads? their totally annoying disruption of web viewing is not going to