Brain dead on adding a simple text rollover...

Hi there -
As my title indicates, I'm having an issue. Captivate 8. I have an interface with a set of graphic buttons, and a hidden set of labels associated with the slides. Clicking a button goes to that topic's slide. I want to use an old-fashioned rollover event to show the caption which then disappears on rollout. I'm working in a responsive project. Optimally (and historically) I'd just use the caption in association with the button's rollover state. However, I can't see how to do that in Captivate 8.

Hello,
Responsive design is for HTML5 output only. Rollovers are not supported for HTML5, AFAIK. How do you do a rollover on a smartphone? You can check the HTML5 Tracker (Project menu), that will tell you which objects are not supported (was also the case in previous versions).
Hint/Success/Failure captions are not on rollover, sorry.
Lilybiri

Similar Messages

  • High Score Table: Writing a Simple Text File with Flash and PHP

    I am having a problem getting Flash to work with PHP as I need Flash to read and write to a text file on a server to store simple name/score data for a games hi score table. I can read from the text file into Flash easily enough but also need to write to the file when a new high score is reached, so I need to use PHP to do that. I can send the data from flash to the php file via POST but so far it is not working. The PHP file is confirmed as working as I added an echo to the file which displayed a message so I  could check that the server was running PHP - the files were also uploaded to a remote server so I  could test them properly. Flash code is as follows:
    //php filewriter
    var myLV = new LoadVars();
    function sendData() {
    //sets up variable 'hsdata' to send to php
    myLV.hsdata = myText;
    myLV.send("hiscores.php");
    I believe this sends the variable 'myText' to the php file as a variable called 'hsdata' which I want the php file to write into a text file. The mytext variable is just a long string that has all the scores and names in the hiscore. OK, XML would be better way of doing this but for speed I just want to get basic functionality working, so storing a simple text sting is adequate for now. The PHP code that reads the Flash 'hsdata' variable and writes it to the text file 'scores.txt' follows:
    <?php
    //assigns to variable the data POSTed from flash
    $flashdata = $_POST["hsdata"];
    //file handler opens file and erases all contents with w arg
    $fh = fopen("scores.txt","w");
    //adds data to file
    fwrite ($fh,$flashdata);
    //closes file
    fclose ($fh);
    echo 'php file is working';
    ?>
    Any help with this would be greatly appreciated - once I can get php to write simple text files I should be ok. Thanks.

    Thanks for your help.
    I have got Flash working to a certain extent with PHP using loadVars but have been unable to get flash to receive a variable declared in PHP. Here's my Flash code:
    var outLV = new LoadVars();
    var inLV = new LoadVars();
    function sendData() {
    outLV.hsdata = "Hello from Flash";
    outLV.sendAndLoad("http://www.mysite.com/hiscores/test23.php",inLV,"post");
    inLV.onLoad = function(success) {
    if (success) {
      //sets dynamic text box to show variable sent from php
      statusTxt.text = phpmess;
    } else {
      statusTxt.text = "No Data Received";
    This works ok and the inLV.onLoad function reports that it is receiving data but does not display the variable received from PHP. The PHP file is like this:
    <?php
    $mytxt =$_POST['hsdata'];
    $myfile = "test23.txt";
    $fh = fopen($myfile,'w');
    //adds data to file
    fwrite($fh, $mytxt);
    //closes file
    fclose ($fh);
    $mess = "hello there from php";
    echo ("&phpmess=$mess&");
    ?>
    The PHP file is correctly receiving the hsdata from flash and writing it to a text file, but there seems to be a problem with the final part of the code which is intended to send a variable called 'phpmess' back to Flash, this is the string "hello there from php". How do I set up Flash and PHP so that PHP can send a variable back to Flash using echo? Really have tried everything but am totally baffled. Online tutorials have given numerous different syntax configurations for how the PHP file should be written which has really confused me - any help would be greatly appreciated.

  • Css and js in simple text items.

    Portal 9.0.2.3
    I've read in other threads that you can add javascript and css into simple text items by clicking the 'View HTML Source' checkbox and adding the js or css code.
    When I do this then apply it the code that I have added disappears and therefore has no effect on the item.
    Any ideas what I'm doing wrong?
    Cheers,
    Steven.

    That's a known problem with the IE rich text editor that would require a fix from Microsoft. In 9.0.2.6 we allow you to disable the editor at the page group level as a workaround to this problem, but then all users have to enter plain HTML.
    As an alternative, you can use the HTML portlet or a dynamic page portlet to enter script and other problematic HTML code. In 9.0.2.6, you can disable the editor for a page group that is used to maintain banners and nav bar, and then publish those pages as portlets.
    Regards,
    Jerry
    PortalPM

  • Image and Text rollover together not working

    Hi,
    I am trying to make a simple image thumbnail rollover with a text rollover at the same time. I would like to have the text able to be linked to different areas of my site to the image which is underneath. However I need to have the text cover the whole image area so that it recognises the rollover.
    I have done my best to make it work in various ways with different effects but not the way I want it.
    Here is the page that has the attempts at what I want.
    http://studiotrulytruly02.businesscatalyst.com/design.html
    The first one on the left works but I cannot keep the text in the same place on rollover.
    The second I have pinned the text box to hold it there but it will not allow the image to have rollover as well.  Also pinning does not work as it means when you scroll down the buttons stay there.
    The third one works but there is an invisible button above text buttons that is aligned with them and taking you to the wrong place. 
    What is the correct way to do this?

    can you check if ur facetime and imessage has complete the activation?
    your current SIM card provides you with international sms function?
    if not maybe u can try with a diff SIM?

  • I get this message when trying to past simple text into an e-mail document. The Web-Based Email plugin has crashed. I have run out of options...please help.

    The Web-Based Email plugin has crashed. I get this message when trying to paste simple text into an email document. I have updated plugins and have run out of options. If I use another browser I have no problem. Please advise.

    UPDATE
    Compiling from command line I found out that the class definition for oracle.oats.scripting.modules.basic.api.IteratingVUserScript is missing. Do you know what .jar file contains this class?
    Thanks.
    Fede.

  • Cannot print a simple Text File

    Hello All,
    I wrote the following program
    import java.io.*;
    import java.awt.print.*;
    import javax.print.*;
    import javax.print.attribute.*;
    import javax.print.attribute.standard.*;
    public class TestPrint
         public static void main(String[] args) throws Exception
              FileInputStream fis = new FileInputStream(new File("pds.txt"));
              byte[] fileByte = new byte[34];
              int read = 0;
              int counter = 0;
              while((read = fis.read()) != -1)
                   fileByte[counter++] = (byte)read;
              PrintService services[] = PrinterJob.lookupPrintServices();
              DocFlavor flavor = DocFlavor.INPUT_STREAM.TEXT_PLAIN_US_ASCII;
              PrintRequestAttributeSet aset = new HashPrintRequestAttributeSet();
              aset.add(MediaSizeName.ISO_A4);
              aset.add(new Copies(1));
              Doc doc = new SimpleDoc(fileByte, flavor, null);
              DocPrintJob pj = services[0].createPrintJob();
              pj.print(doc, aset);
    }The file I am trying to print is a simple text file. My requirement is to convert it to an array of bytes and then print it.
    However I get the exception
    Exception in thread "main" java.lang.IllegalArgumentException: data is not of de
    clared type
    at javax.print.SimpleDoc.<init>(Unknown Source)
    at TestPrint.main(TestPrint.java:25)
    Please help me. I would appriciate any help in this matter.
    regards,
    Abhishek.
    PS: The contents of the file (pds.txt) which I am trying to print is
    PDS
    pds
    pds
    pds
    pds

    Hi,
    you get a java.lang.IllegalArgumentException in line 25:
    So we take the Java API for SimpleDoc:
    IllegalArgumentException - if flavor or printData is null, or the printData does not correspond to the specified doc flavor--for example, the data is not of the type specified as the representation in the DocFlavor.
    Since fileByte seems not the be null, the type must be wrong!
    In line 21 we see:
    DocFlavor flavor = DocFlavor.INPUT_STREAM.TEXT_PLAIN_US_ASCII;
    so fileByte must be type java.io.InputStream, which it isn�t. This causes your IllegalArgumentException.
    So try in line 21:
    DocFlavor flavor = DocFlavor.BYTE_ARRAY.TEXT_PLAIN_US_ASCII;
    Let me know if that was the reason!
    Best regards
    Martin

  • Efficient data structure to implement simple text editor?

    I was given this problem in an interview:
    What data structure would you use to implement a simple text editor that does these 4 functions:
    a) goto(line number)
    b) insert(char input,location)
    c) delete(location)
    d) printAll() //print entire file
    Given that i'm such a newb, i was stumped. I came up with making a 2d array that would allow for o(1) time for goto, but o(n) for everything else (shifting everything in the array). there were other downfalls too dealing with space issues and such, but he wanted me to optimize this data structure. I then came up with a linked list of arrays, but that had similar problems.
    But thinking about it further is driving me a little crazy so I'm wondering if you guys have any suggestions on how to answer this question...
    one thing that came to mind after is to implement the data structure as a binary tree, where each node contains
    class Node
    char theChar
    int position; // ie 0 = first character in the file, and 81 could be the first character in the 2nd line
    node left,right,parent;
    }so how it works is the cursor would know where the location was so i would know where to delete and insert within the tree.
    insert {
         //search for location to insert after (log n)
           //create new character node and append to current node
         //increment position for all subsequent children
    delete(x) {
         search for x position
         if found, remove node and decrement position value for all children
    goto(line #) {
         return line # * 80 (or whatever max length for a single line)
    }the major problem i see here is balancing the tree after every insert/delete
    Thanks in advance.

    One of many great things emacs has given us is the gap buffer:
    http://en.wikipedia.org/wiki/Gap_buffer
    To see a Java implementation of this you can look in the Java SDK source. The document model (I forget exactly what its called), used in Swing uses a gap buffer.

  • Sandy - a simple text editor

    sandy - a simple text editor
    Sandy is a X11 text editor with an easy-to-read, hackable C source. It uses GTK+ and GtkSourceView for convenience and is akin to surf, only it is a text editor, not a web browser. Sandy tries to maximize screen estate, minimize the SLOC used and not get in your way too much. It can somehow be controlled via XProperties and all preferences and keybindings are to be chosen at compile time. Two example configs are provided with the source.
    Features
    - Basic editing, saving, etc.
    - One document per instance
    - Embeddable (e.g. can use http://tools.suckless.org/tabbed for tabs)
    - Regex search, go to line functionalities
    - Pipe selection through arbitrary command
    - Pipe selection through predefined command(s)
    - Syntax highlighting
    - Line numbers, current line highlightnig
    - Simple autoindenting
    - Multi-level undo
    - Configurable at compile-time
    Dependencies
    - GtkSourceView2
    - Gtk+2
    - (probably) xorg-utils to get xprop to set XProperties
    - one method to grab user input: either zenity or dmenu in the pre-defined config files
    Screenshot
    http://sandyeditor.sf.net/sandy_editor.jpeg
    Homepage
    http://sandyeditor.sf.net/
    Download
    http://sourceforge.net/projects/sandyed … z/download
    AUR
    http://aur.archlinux.org/packages.php?ID=36084
    Comments, bug reports and patches welcome.
    Last edited by rafunchi (2010-04-13 23:24:26)

    Procyon wrote:
    It would be nice to be able to do something like this:
    1 abc
    2 dec
    3 abd
    4 edc
    5 {CURSOR}ad
    ^R, sed command: 1,3s/^/%%%/
    1 %%%abc
    2 %%%dec
    3 %%%abd
    4 edc
    5 {CURSOR}ad
    So you can edit and continue where you left off.
    The problem with implementing this behavior is 'sed' is an external command here. The full text is filtered through sed and put back in the buffer, not just lines 1 to 3. You can't just preserve the insert position as the text coming from the pipe might be completely different from your original. Same for searching the current line.
    You *could* remember your line+char position and move the cursor back there, but this would be highly unreliable and move the cursor to a third position in the buffer if your 's' command changes the number of lines (e.g. try s/:/\n/g in a password file)
    Also, a couple of tests with vim prove that it does not behave consistently in this regard, despite :s being an internal command there.
    if you really want to add '%%%' at the beginning of the line quite often, I suggest you define a binding or action for:
    t_editable, t_pipelines, { .v = (char *)"sed \'s/^/%%%/\'" }
    Then select the lines you want to target lousily (you don't need to select full lines) and launche the binding/action. It does move the cursor, but seems fairly quick.
    Procyon wrote:Maybe you can check for "/^s/" in the command to make it work on this current line, just like vim's :s///
    I made a wee change in the hg tip code. Now sandy "listens" to three properties regarding pipes:
    - _SANDY_PIPE: Pipes the selected text, or nothing by default as per f_pipe. This is used by the ^I binding in the default config.
    - _SANDY_PIPEALL: Pipes the selected text, or the full file if nothing is selected as per f_pipeall. This is used by the ^P binding in the default config.
    - _SANDY_PIPELINES: Pipes the selected text, extending the selection to full lines and matching the current line if there is no selection as per f_pipelines. This is used by the ^R binding in the default config. This means now sed is applied to full lines if there is a selection and to the current line if there is not.
    Thanks for your feedback. I hope this helps.

  • Create an image and text rollover in Dreamweaver?

    I'm wanting an image and text to have a link and then the image and text to change to another image and text automaticly.  Here is a link that I want it to look like.  (local hot spots) Is there a way in Dreamweaver to do it or by inserting HTML code...
    http://thegospot.com/
    Thanks to any help I can get.

    All depends on what you want. 
    CSS a:hover affects the text/image mouseover state.
    http://alt-web.com/DEMOS/CSS-Button-Sprite.shtml
    Disjointed content inside <span> tags displays wherever you code it to appear on hover.
    http://alt-web.com/DEMOS/CSS-Disjointed-Text-Rollover.shtml
    Nancy O.

  • FM with code to send a simple text mail to external ID

    Hi All,
    I need a FM with code if possible to send a simple text mail to an external e-mail id or distribution list. I tried using the FM SO_NEW_DOCUMENT_ATT_SEND_API1 and was successfull in sending mail. But it requires attachment.
    I need help to send mail without attachment with code.
    All configurations done at my end.
    Thanks
    Anirban Bhattacharjee

    Hi Anirban,
    Please check this sample code.
    * Email ITAB structure
    DATA: BEGIN OF EMAIL_ITAB OCCURS 10.
            INCLUDE STRUCTURE SOLI.
    DATA: END OF EMAIL_ITAB.
    DATA: T_EMAIL LIKE SOOS1-RECEXTNAM.  "EMail distribution list
    CONSTANTS: C_EMAIL_DISTRIBUTION LIKE SOOS1-RECEXTNAM VALUE
               ‘[email protected],[email protected]’.
    * Initialization
    REFRESH EMAIL_ITAB.
    * Populate data
    EMAIL_ITAB-LINE = ‘Email body text 1’.
    APPEND EMAIL_ITAB.
    EMAIL_ITAB-LINE = ‘Email body text 2’.
    APPEND EMAIL_ITAB.
    T_EMAIL = C_EMAIL_DISTRIBUTION.
    * --- EMAIL FUNCTION ---------------------------------------------------
    * REQUIRMENTS:
    * 1) The user running the program needs a valid email address in their
    *    address portion of tx SU01 under external comms -> SMTP -> internet
    *    address.
    * 2) A job called SAP_EMAIL is running with the following parameters:
    *    Program: RSCONN01  Variant: INT   User: XXX
    *    This program moves mail from the outbox to the mail server using
    *    RFC destination: SAP_INTERNET_GATEWAY_SERVER
    * INTERFACE:
    * 1) APPLICATION: Anything
    * 2) EMAILTITLE:  EMail subject
    * 3) RECEXTNAM:   EMail distribution lists separated by commas
    * 4) TEXTTAB:     Internal table for lines of the email message
    * EXCEPTIONS:
    * Send OK = 0 otherwise there was a problem with the send.
        CALL FUNCTION 'Z_SEND_EMAIL_ITAB'
             EXPORTING
                  APPLICATION = 'EMAIL'
                  EMAILTITLE  = 'Email Subject'
                  RECEXTNAM   = T_EMAIL
             TABLES
                  TEXTTAB     = EMAIL_ITAB
             EXCEPTIONS
                  OTHERS      = 1.
    Function Z_SEND_EMAIL_ITAB
    *"*"Local interface:
    *"       IMPORTING
    *"             VALUE(APPLICATION) LIKE  SOOD1-OBJNAM
    *"             VALUE(EMAILTITLE) LIKE  SOOD1-OBJDES
    *"             VALUE(RECEXTNAM) LIKE  SOOS1-RECEXTNAM
    *"       TABLES
    *"              TEXTTAB STRUCTURE  SOLI
    *- local data declaration
      DATA: OHD    LIKE SOOD1,
            OID    LIKE SOODK,
            TO_ALL LIKE SONV-FLAG,
            OKEY   LIKE SWOTOBJID-OBJKEY.
      DATA: BEGIN OF RECEIVERS OCCURS 0.
              INCLUDE STRUCTURE SOOS1.
      DATA: END OF RECEIVERS.
    *- fill odh
      CLEAR OHD.
      OHD-OBJLA    = SY-LANGU.
      OHD-OBJNAM   = APPLICATION.
      OHD-OBJDES   = EMAILTITLE.
      OHD-OBJPRI   = 3.
      OHD-OBJSNS   = 'F'.
      OHD-OWNNAM   = SY-UNAME.
    *- send Email
      CONDENSE RECEXTNAM NO-GAPS.
      CHECK RECEXTNAM <> SPACE AND RECEXTNAM CS '@'.
    *- for every individual recipient send an Email
    * (see OSS message 0120050409/0000362105/1999)
      WHILE RECEXTNAM CS ','.
        PERFORM INIT_REC TABLES RECEIVERS.
        READ TABLE RECEIVERS INDEX 1.
        RECEIVERS-RECEXTNAM = RECEXTNAM+0(SY-FDPOS).
        ADD 1 TO SY-FDPOS.
        SHIFT RECEXTNAM LEFT BY SY-FDPOS PLACES.
        MODIFY RECEIVERS INDEX 1.
        PERFORM SO_OBJECT_SEND_REC
         TABLES TEXTTAB RECEIVERS
          USING OHD.
      ENDWHILE.
    *- check last recipient in recipient list
      IF RECEXTNAM <> SPACE.
        PERFORM INIT_REC TABLES RECEIVERS.
        READ TABLE RECEIVERS INDEX 1.
        RECEIVERS-RECEXTNAM = RECEXTNAM.
        MODIFY RECEIVERS INDEX 1.
        PERFORM SO_OBJECT_SEND_REC
         TABLES TEXTTAB RECEIVERS
          USING OHD.
      ENDIF.
    ENDFUNCTION.
    *       FORM SO_OBJECT_SEND_REC                                       *
    FORM  SO_OBJECT_SEND_REC
    TABLES  OBJCONT      STRUCTURE SOLI
            RECEIVERS    STRUCTURE SOOS1
    USING   OBJECT_HD    STRUCTURE SOOD1.
      DATA:   OID     LIKE SOODK,
              TO_ALL  LIKE SONV-FLAG,
              OKEY    LIKE SWOTOBJID-OBJKEY.
      CALL FUNCTION 'SO_OBJECT_SEND'
           EXPORTING
                EXTERN_ADDRESS             = 'X'
                OBJECT_HD_CHANGE           = OBJECT_HD
                OBJECT_TYPE                = 'RAW'
                OUTBOX_FLAG                = 'X'
                SENDER                     = SY-UNAME
           IMPORTING
                OBJECT_ID_NEW              = OID
                SENT_TO_ALL                = TO_ALL
                OFFICE_OBJECT_KEY          = OKEY
           TABLES
                OBJCONT                    = OBJCONT
                RECEIVERS                  = RECEIVERS
           EXCEPTIONS
                ACTIVE_USER_NOT_EXIST      = 1
                COMMUNICATION_FAILURE      = 2
                COMPONENT_NOT_AVAILABLE    = 3
                FOLDER_NOT_EXIST           = 4
                FOLDER_NO_AUTHORIZATION    = 5
                FORWARDER_NOT_EXIST        = 6
                NOTE_NOT_EXIST             = 7
                OBJECT_NOT_EXIST           = 8
                OBJECT_NOT_SENT            = 9
                OBJECT_NO_AUTHORIZATION    = 10
                OBJECT_TYPE_NOT_EXIST      = 11
                OPERATION_NO_AUTHORIZATION = 12
                OWNER_NOT_EXIST            = 13
                PARAMETER_ERROR            = 14
                SUBSTITUTE_NOT_ACTIVE      = 15
                SUBSTITUTE_NOT_DEFINED     = 16
                SYSTEM_FAILURE             = 17
                TOO_MUCH_RECEIVERS         = 18
                USER_NOT_EXIST             = 19
                X_ERROR                    = 20
                OTHERS                     = 21.
      IF SY-SUBRC <> 0.
        RAISE OTHERS.
      ENDIF.
    ENDFORM.
    *       FORM INIT_REC                                                 *
    FORM INIT_REC TABLES RECEIVERS STRUCTURE SOOS1.
      CLEAR RECEIVERS.
      REFRESH RECEIVERS.
      MOVE SY-DATUM  TO RECEIVERS-RCDAT .
      MOVE SY-UZEIT  TO RECEIVERS-RCTIM.
      MOVE '1'       TO RECEIVERS-SNDPRI.
      MOVE 'X'       TO RECEIVERS-SNDEX.
      MOVE 'U-'      TO RECEIVERS-RECNAM.
      MOVE 'U'       TO RECEIVERS-RECESC.
      MOVE 'INT'     TO RECEIVERS-SNDART.
      MOVE '5'       TO RECEIVERS-SORTCLASS.
      APPEND RECEIVERS.
    ENDFORM.
    Hope this will help.
    Regards,
    Ferry Lianto

  • The Find function (Ctrl+F), mis-finds the desired simple text in Acrobat Standard, but works fine in Reader

    Adobe Acrobat X 10.1.13, Win 7 64bit, 
    The Find function (Ctrl+F), mis-finds the desired simple text. 
    This is not a scanned document.  When I search for some word that DOES exist in the document, Acrobat will highlight text that does not match at all and which does NOT contain the word.  If I select the actual word, copy and past the text, I get the selected text accurately, but when I paste the same selected text into the Find box to search for it, Acrobat still mis-finds. 
    HOWEVER, I can open the very same .PDF file in Acrobat Reader X and do not have the same problem - Find works correctly in Reader with the same .PDF. 
    What is going on?!  Both Acrobat standard, and Reader report that they are up to date.   Please help.

    Can you try rasterizing (converting the document to tiff/bmp) and then importing those image files (tiff/bmp) back in Acrobat.
    This would allow document to be re-OCRed and you will be able to search text in it. You can use lossless export/import settings to preserve the quality of ducment.
    For exporting the file:
    1: Go to File > Save As Other > Image > Tiff.
    2: Click on Settings button in the Save As Dialog and set the file settings as ZIP for Monochrome, Grayscale and Color.
    Now for importing the files back:
    1: Press Ctrl + K
    2: In the Preferences dialog, select Convert To PDF option in Categories.
    3: Choose tiff or bmp (as per the format used while exporting) and un-check Scan Optimization and OCR.
    4: Set Color and Grayscale to Zip and Monochrome to CCITT G4.
    5: Save the settings.
    6: Now import all the pages in Acrobat.
    7: You can use Combine Files feature to merge all the image files.

  • Save a numbers spreadsheet as a simple text document?

    How do you save a numbers spreadsheet as a simple text document? I can't seem to find this option anywhere. Simply renaming the extension also seems to maintain rich text.

    An extension name is just a reminder helping us and the operating system to recognize which kind is the contents of a given file.
    Changing a trousers against a dress will not change Mr. Obama in Mrs. Clinton;-)
    Same thing for the files.
    At this time, Numbers doesn't offer the ability to export as a text file.
    Happily, our machines are delivered with TextEdit.
    Copy the block of cells of your choice to the clipboard
    Paste in an empty TextEdit document
    Format > Convert as text
    Save
    That's all folks.
    Of course, you may
    _Go to "Provide Numbers Feedback" in the "Numbers" menu_, describe what you wish.
    Then, cross your fingers, and wait _at least_ for iWork'09
    Yvan KOENIG (from FRANCE mardi 5 août 2008 18:07:34)

  • How can I add highlighting to my simple text editor?

    Hi ...I wrote a simple text editor ..but I want to add Sysntax highlihting to my editor ...ilke I will enter some words in sourse code (new..import.. ext ) and when I write in text those words I want to see whit a different collor ..how can I do this? here is source codes for my text editor..and I want your help
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.text.*;
    import javax.swing.plaf.ComponentUI;
    import java.awt.*;
    import java.awt.event.ActionEvent;
    import java.io.File;
    import java.io.FileReader;
    import java.io.FileWriter;
    import java.io.IOException;
    import java.util.*;
    import java.util.regex.*;
    public class JText extends JFrame{
         private JTextArea textarea ;
         private JFileChooser fileChooser = new JFileChooser();
    private Action open =new OpenAction() ;
    private Action save = new SaveAction();
    private Action exit = new ExitAction();
    public static void main(String args[])
              JText pencere= new JText();
              pencere.setBackground(Color.lightGray);
              pencere.setSize(400,300);
              pencere.setVisible(true);
         //Text Area
         public JText(){
         textarea = new JTextArea(15,90) ;
         JScrollPane scroll = new JScrollPane(textarea);
         JPanel content = new JPanel();
    content.setLayout(new BorderLayout());
    content.add(scroll, BorderLayout.CENTER);
         //Menu Bar
    JMenuBar menu=new JMenuBar();
    JMenu file=menu.add(new JMenu("FILE"));
    file.setMnemonic('F');
    file.add(open);
    file.add(save);
    file.addSeparator();
    file.add(exit);
    setContentPane(content);
    setJMenuBar(menu);
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    setTitle("Project");
    pack();
    setLocationRelativeTo(null);
    setVisible(true);
         class OpenAction extends AbstractAction {
         //============================================= constructor
         public OpenAction() {
         super("Open...");
         putValue(MNEMONIC_KEY, new Integer('O'));
         //========================================= actionPerformed
         public void actionPerformed(ActionEvent e) {
         int retval = fileChooser.showOpenDialog(JText.this);
         if (retval == JFileChooser.APPROVE_OPTION) {
         File f = fileChooser.getSelectedFile();
         try {
         FileReader reader = new FileReader(f);
         textarea.read(reader, ""); // Use TextComponent read
         } catch (IOException ioex) {
         System.out.println(e);
         System.exit(1);
              class SaveAction extends AbstractAction {
              //============================================= constructor
              SaveAction() {
              super("Save...");
              putValue(MNEMONIC_KEY, new Integer('S'));
              //========================================= actionPerformed
              public void actionPerformed(ActionEvent e) {
              int retval = fileChooser.showSaveDialog(JText.this);
              if (retval == JFileChooser.APPROVE_OPTION) {
              File f = fileChooser.getSelectedFile();
              try {
              FileWriter writer = new FileWriter(f);
              textarea.write(writer); // Use TextComponent write
              } catch (IOException ioex) {
              JOptionPane.showMessageDialog(JText.this, ioex);
              System.exit(1);
                   class ExitAction extends AbstractAction {
                   //============================================= constructor
                   public ExitAction() {
                   super("Exit");
                   putValue(MNEMONIC_KEY, new Integer('X'));
                   //========================================= actionPerformed
                   public void actionPerformed(ActionEvent e) {
                   System.exit(0);
    }

    i looked it ...it is the one which i want to do ..But i want to use my window which i gave above ..But i cant mix them ..:( this codes for highlighting.... is any body can add this codes and my codes which i gave above connect together? pleaseeeee... :))
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.text.*;
    import java.util.*;
    import java.awt.*;
    import java.awt.event.*;
    public class SyntaxTest extends DefaultStyledDocument
    Element rootElement;
    String wordSeparators = ",:;.()[]{}+-/*%=!&|~^@? ";
    Vector keywords = new Vector();;
    SimpleAttributeSet keyword;
    public SyntaxTest()
    rootElement= this.getDefaultRootElement();
    keyword = new SimpleAttributeSet();
    StyleConstants.setForeground(keyword, Color.blue);
    keywords.add( "abstract" );
    keywords.add( "boolean" );
    keywords.add( "break" );
    keywords.add( "byte" );
    keywords.add( "case" );
    keywords.add( "catch" );
    keywords.add( "char" );
    keywords.add( "class" );
    keywords.add( "continue" );
    keywords.add( "default" );
    keywords.add( "do" );
    keywords.add( "double" );
    keywords.add( "else" );
    keywords.add( "extends" );
    keywords.add( "false" );
    keywords.add( "final" );
    keywords.add( "finally" );
    keywords.add( "float" );
    keywords.add( "for" );
    keywords.add( "if" );
    keywords.add( "implements" );
    keywords.add( "import" );
    keywords.add( "instanceof" );
    keywords.add( "int" );
    keywords.add( "interface" );
    keywords.add( "long" );
    keywords.add( "native" );
    keywords.add( "new" );
    keywords.add( "null" );
    keywords.add( "package" );
    keywords.add( "private" );
    keywords.add( "protected" );
    keywords.add( "public" );
    keywords.add( "return" );
    keywords.add( "short" );
    keywords.add( "static" );
    keywords.add( "super" );
    keywords.add( "switch" );
    keywords.add( "synchronized" );
    keywords.add( "this" );
    keywords.add( "throw" );
    keywords.add( "throws" );
    keywords.add( "true" );
    keywords.add( "try" );
    keywords.add( "void" );
    keywords.add( "volatile" );
    keywords.add( "while" );
    public void insertString(int offset, String str, AttributeSet a) throws BadLocationException
    super.insertString(offset, str, a);
    int startOfLine = rootElement.getElement(rootElement.getElementIndex(offset)).getStartOffset();
    int endOfLine = rootElement.getElement(rootElement.getElementIndex(offset+str.length())).getEndOffset() -1;
    //highlight the changed line
    highlightKeyword(this.getText(0,this.getLength()), startOfLine, endOfLine);
    public void remove(int offset, int length) throws BadLocationException
    super.remove(offset, length);
    int startOfLine = rootElement.getElement(rootElement.getElementIndex(offset)).getStartOffset();
    int endOfLine = rootElement.getElement(rootElement.getElementIndex(offset+length)).getEndOffset() -1;
    //highlight the changed line
    highlightKeyword(this.getText(0,this.getLength()), startOfLine, endOfLine);
    public void highlightKeyword(String content,int startOffset, int endOffset)
    char character;
    int tokenEnd;
    while (startOffset < endOffset)
    tokenEnd = startOffset;
    //find next wordSeparator
    while(tokenEnd < endOffset)
    character = content.charAt(tokenEnd);
    if(wordSeparators.indexOf(character) > -1)
    break;
    else
    tokenEnd++;
    //check for keyword
    String token = content.substring(startOffset,tokenEnd).trim();
    if(keywords.contains(token))
    this.setCharacterAttributes(startOffset, token.length(), keyword, true);
    startOffset = tokenEnd+1;
    public static void main(String[] args)
    JFrame f = new JFrame();
    JTextPane pane = new JTextPane(new SyntaxTest());
    JScrollPane scrollPane = new JScrollPane(pane);
    f.setContentPane(scrollPane);
    f.setSize(600,400);
    f.setVisible(true);
    }

  • Simple Text Changes Won't Upload to Server?

    I have created a simple HTML e-mail signature in Photoshop, slicing and inputed all information in the "Slice Option" dialogue box, including the URL link for each social media platform button. I imported it into Dreamweaver, uploaded the files to my server and it works perfectly! Here is the issue I am having: I needed to make a simple link change to one of the buttons. I tried changing the link in Dreamweaver. Did not work! I tried changing the link in Photoshop, making the edit in the slice and re-saving the file and uploading to the server via Dreamweaver. Did not work. I eventually had to redo all the slices, renaming them something different; input to Dreamweaver under a different file name, do what i had to do, and then upload to my server. Everything worked perfect! Why? Why can't I just make a simple text change in Dreamweaver, uploaded it, and it works?! I feel like it is a cache issue, but i have no idea.
    Anybody have a solution?
    Frustrated Creative Cloud Subscriber
    Michael Salewych

    Open browser and hit Ctrl+R to refresh.  Or clear your browser's cache from the Tools menu.  In Firefox, Tools > Options > Advanced.
    Nancy O.

  • I want to publish a simple text animation transparent but keep getting a black background?

    I want to publish a simple text animation transparent but keep getting a black background?

    trouble is, it's not always that straight forward if the initial animation has not been set to a transparent background, as you cant simply change/update the poster.png
    What I mean is, if the poster has been saved as non transparent once, the only wayto update it,  is to physically open the file and make it transparent, even then it doesnt always work especially working with OAM's
    hope that also helps
    Alistair

Maybe you are looking for

  • Error while converting data from CATS to CO

    Hi Experts, We are transferring the HR timesheet data to CO.while uploading the time sheet data to CO through transaction code ZAFU we are getting the following error.Any help is greatly appreciated Trans: KB21N | BTCI-Creation_DD_CO_Actual_Activity

  • Windows 8.1 x64 Smart Search Outlook and OneNote 2013(x32) not returning results

    Is the 8.1 Smart Search([windows-key]-type)  supposed to return results from Outlook and/or OneNote? I am using Exchange Cached mode for Outlook if that matters. I have done the following to try and get results to show up: control panel...Indexing Op

  • Strange behavior in OM (PI 7.4)

    Hi all! I have strange problem with my Operation Mapping in PI 7.4 In this OM i have two mappings. 1. Message Mapping, that sort message 2. Java Mapping, that make structure changes. When i test 1-1 step, copy result of this step and test 2-2 step in

  • Tax Condition ZSRT not showing in Print Preview and Tax Register

    Dear Friends while we making Purchase Order the Tax condition not showing while print preview.  also not showing in Tax Register. Tax Register we developed. any hops Rajesh G

  • Function module to find the attachment list for an accounting document?

    Is there a function module to find the attachment list for an accounting document? Or which table stores such references? I know I can find this info from the transaction FB03, but is there a function module to find the attachments for an accounting