Using StyledEditorKit text actions

Hi I'm trying to build a text editor using a JTextPane. I want to be able to provide a toolbar for things like font size, bold, underline, etc. Bold and Underline are no problem. There exist classes
StyledEditorKit.BoldStyleAction
Which I can create a JToggleButton around. This works great. But what about the FontFamilyNameAction and FontSizeAction? I'd like to put font names and sizes each in a JComboBox. Do I need to create JMenuItems and add those to the Comboboxes? Surely there's got to be a better way to do this. How do I do this?

The simplest way is to create your own ActionListener. Fill the JComboBox with font names and when user selects font just specify your own attributes and apply them to the document.
Like this:
SimpleAttributeSet attrs=new SimpleAttributeSet ();
StyleConstants.setFontFamily(attrs, fontFamilyString);
int start=editorPane.getSelectionStart();
int len=editorPane.getSelectionEnd()-start;
styledDocument.setCharacterAttributes(start,len,attrs,false);
regards,
Stas

Similar Messages

  • Can I use photoshop text styles and photoshop actions with creative cloud photography?

    I'm really confused by this subscription pricing. If I purchase the $9.99/month, do I get the full desktop app of Photoshop and Lightroom? But I see on this page Products they list something called Photoshop CC that costs twice as much. How is that different from the Creative Cloud Photography?
    My main question is whether I can use photoshop text styles and photoshop actions with Creative Cloud Photography, since I just purchased a bundle that includes these and I want to be able to use them. But I'd also like to understand what comes with all of the various products and how they are different.
    My other question is how is Lightroom different from Photoshop? I have a sense of what you can do in Photoshop but I don't know much about Lightroom at all.
    One more question: the free trial -- is it limited in any way besides the time length? If I do that, will I get a clear idea of all that I will be able to do once I subscribe, or are the functions limited in the trial?
    I tried to just send an email to Adobe to ask these questions but apparently they are not interested in responding to emails from people who are not yet paying customers, so I was directed here. Thanks very much for your help!

    I always like to trot this bit about Bridge once in a while or in the voice of the "Two Bobs" from Office Space,
    "Can you tell us exactly what it is you do around here?"
    What Adobe Bridge does:
    Bridge is the coordinating hub of the Creative Suite. Synchronizing color management settings for all suite programs is done from Bridge, and can only be done from Bridge, to take one important use.
    Bridge displays actual thumbnails of many more file types than Finder or Explorer. It also allows instant play of sound or video files more readily than the native OS file managers.
    Bridge allows direct access to file metadata, to embed copyright information  and keywords where appropriate (e.g., for corporate logo vector and raster files). It also displays the fonts used in an InDesign file, the swatches in an INDD or AI and the output plates (including spot color plates) they use.
    When managing the assets for a design project, Bridge allows quick and simple sorting, rating and custom labeling (with color flash indications) of assets. I can rate images according to whether they are rejects, possibles, for review by client, or approved. The filters built into Bridge allow instant isolation of only the approved images or designs in a folder, only the rejects (for deletion) or only files with certain ratings, no matter how many files it contains. It recognizes aspect ratios, so if I only need a landscape or a 16:9 image in a folder of hundreds of images, I turn off the aspect ratios I don't need.
    Once filtered, the remaining visible files can be selected and copied, moved, or deleted without affecting the rest of the contents of a folder.
    Collections are a massively useful feature. One of my clients is a performing arts center, and in a season we turn out dozens of ads, flyers, brochures, web banners, playbills, billboards and other collateral using the same assets over and over. These assets are organized by artist and/or show on disk, but I set up each season's repeating assets as a Collection in Bridge, so that I just have to open the collection and drag and drop these assets into new INDD, AI, PSD, HTML (in Dreamweaver), FLA or AE projects without having to navigate from folder to folder picking up individual files.
    Bridge's Favorites is another place I stack frequently-accessed folders, such as stock photography, backgrounds, and top-level folders for active projects.
    Assets can be divided into subfolders, but a quick toggle of "Show items from subfolders" exposes all of the assets in a single view while maintaining their organization. I will typically keep AIs, PSDs, EPSs, stock photography and client images in separate subfolders within a project. When I'm ready to start pulling assets into an InDesign layout, I toggle this on and simply drag what I need into the layout.
    Bridge comes with Adobe Camera Raw built in, which is many times faster than using Photoshop to adjust jpegs or tiffs for things like tonal range, white balance, cropping, spotting and sharpening, and is non-destructive.
    One tremendously useful Bridge function for InDesign CS5+ users is the "Show linked files" feature, which opens all the linked files in a layout into a single view, regardless of where they are physically located. I often use this when doing alternative layouts from a client-approved mockup for a campaign, to be certain the same assets are used in each piece, or when creating a motion graphic or interactive piece for the campaign in After Effects or Flash.
    The batch and image processing scripts built into Bridge automate things like creating web-ready small jpegs from multiple images, renaming large numbers of files in place or by copying to an alternative location, creating sets of PSD, png, jpeg or other file types from an assortment of image files, and so on.
    Bridge is so much a part of my daily workflow that on my main workstation I have one monitor dedicated to it almost 100%. Bridge just sits open 24/7, ready for use. I would run at half speed without it, no question.

  • Is it possible to handle formatted text actions(RTF) using Clipboard?

    Hi All,
    Is it possible to handle formatted text actions(RTF) using Clipboard?
    My application requires to copy the contents from other applications like MS-Word and contents to be pasted in my Application..
    if so how?i appreciate for any piece of code or links to the same.
    Thanks and regds
    Mohan

    -Any Suggestions?

  • Using dynamic text in Flash Builder

    Hi,
    I'm trying to get some dynamic text to my web page. The text is readed from .txt file
    I use AS script which i was using in a project I made with Flash Pro and now i try to implement it in Flash Builder project
    The script look like this:
    var req:URLRequest = new URLRequest("design_1.txt");
    var loader:URLLoader = new URLLoader();
    function textLoaded(event:Event):void
    design.text = loader.data;
    loader.addEventListener(Event.COMPLETE, textLoaded);
    loader.load(req);
    So first I made a project with Flash Catalyst and in there I created an area text element. Then I imported the project to Flash Builder and put the AS script in the <Script> section and gave the <RichText> an id="design".  The text is just simple text and formatting happens in richtext element.
    So, when i try to compile the FB project it give me and parse error "undefined property error req", "undefined property error loader" etc.
    So should i alter the AS script for FB or is there something else wrong? I tried to google how to use dynamic text in FB but couldn't find any easytyutorials. I'm mostly a desginer so coding isn't my speciality. But thanks for help!

    Hi Amy,
    You can customize 'New class' generation under Preferences->Editors->Flash
    Builder->FileTemplates->Action Script->New ActionScript class.
    Currently there are no template variables available constructors. But you
    can customize it as following,
    $
    ${import_declaration}
    $ {
      public function ${class_name}() {

  • Alert using Dynamic text in BPM.

    Hi,
    I am using dynamic text function in alrtcatdef transaction for raising an alert using BPM.
    But in the alert inbox I am not getting the an alert error message which is passed to alert catagory in control step of BPM. Can anyone please let me know what may be the possible solution of it.
    I have done the below configuration:
    Configuration done in Alrtcatdef transaction:
    Created an alert catagory
    assigned the fixed recipient
    click the dynamic text button in alert catagory property.
    Configuration done in BPM:
    Used the Control step.
    given the Alert catagory name,action and the alert error message.
    Please let me know the solution soon.
    Thanks and Regards,
    Sandeep.

    HI Bhavesh,
    I have referred the michal weblog and I have done the same step except the container operation step.
    My requirement was to send the hard coded error message to the alert catagory so I didnt used the container operation step.
    In the Control step I have hard coded my error message.
    But still it is not showing in my alert inbox.
    Can you please let me know is there any other settings needs to be done.
    Thanks and Regards,
    Sandeep.

  • Using Dynamic Text to tell a Hyperlink where to go.

    So I am having a little trouble on my site, and this community seems like a good place to go for help, and I am sure someone out here can help me.
    I have a webpage that uses dynamic text and images, and it serves as my user profile page. I know the database and all of that stuff is set up correctly because all of the dynamic text shows up as it should.
    Here is the problem I am having. I have an area where a user will be able to view files he has uploaded, and click on the name of a file to view it.
    The way I have it set up, is the clickable text is dynamic text from the server, called uploadname1. I want to make this text into a link, that sends them to the file stored as fileupload1.
    Here is my code that I thought should do it.
    "<a href="<?php echo $row_Recordset1['fileupload1']; ?>"/><?php echo $row_Recordset1['uploadname1']; ?></a>" (minus the quotes of course)
    The text underlines and changes the color as it should, but it is not clickable. Can someone out there help me?
    Tyler

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Profile - NoteScoop</title>
    <style type="text/css">
    body {
    background-image: url(../bgg.jpg);
    background-repeat: no-repeat;
    color: #FFF;
    #bio {
    font-family: Tahoma, Geneva, sans-serif;
    height: 213px;
    width: 460px;
    left: 404px;
    top: 53px;
    position: absolute;
    #editlink {
    font-family: Tahoma, Geneva, sans-serif;
    color: #FFF;
    position: absolute;
    height: 40px;
    width: 80px;
    left: 178px;
    top: 677px;
    a:link {
    color: #FFFBF0;
    a:visited {
    color: #FFFBF0;
    a:hover {
    color: #FFFBF0;
    a:active {
    color: #FFFBF0;
    #photo {
    position: absolute;
    height: 220px;
    width: 205px;
    left: 121px;
    top: 70px;
    #submit {
    font-family: Tahoma, Geneva, sans-serif;
    color: #FFFbf0;
    left: 290px;
    top: 25px;
    position: absolute;
    width: 59px;
    #about {
    position: absolute;
    height: 25px;
    width: 90px;
    left: 128px;
    top: 25px;
    font-family: Tahoma, Geneva, sans-serif;
    color: #FFFbf0;
    #abouthead {
    position: absolute;
    height: 25px;
    width: 48px;
    left: 466px;
    top: 25px;
    font-family: Tahoma, Geneva, sans-serif;
    color: #FFFbf0;
    #contact {
    font-family: Tahoma, Geneva, sans-serif;
    color: #fffbf0;
    position: absolute;
    height: 25px;
    width: 85px;
    left: 616px;
    top: 25px;
    #blog {
    font-family: Tahoma, Geneva, sans-serif;
    color: #fffbf0;
    position: absolute;
    height: 25px;
    width: 33px;
    left: 792px;
    top: 25px;
    #notes {
    font-family:Tahoma, Geneva, sans-serif;
    color: #fffbf0;
    position: absolute;
    height: 84px;
    width: 460px;
    left: 425px;
    top: 510px;
    #friends {
    font-family: Tahoma, Geneva, sans-serif;
    color: #fffbf0;
    position: absolute;
    left: 421px;
    top: 278px;
    width: 460px;
    #uploader {
    font-family: Tahoma, Geneva, sans-serif;
    position: absolute;
    height: 53px;
    width: 460px;
    left: 543px;
    top: 645px;
    #groups {
    font-family: Tahoma, Geneva, sans-serif;
    position: absolute;
    height: 354px;
    width: 292px;
    left: 80px;
    top: 366px;
    #ad1 {
    position: absolute;
    height: 220px;
    width: 205px;
    left: -40px;
    top: 38px;
    #sponsored {
    font-family: Tahoma, Geneva, sans-serif;
    color: #000;
    position: absolute;
    height: 22px;
    width: 122px;
    left: 958px;
    top: 69px;
    </style>
    </head>
    <body>
    <div class="sponsored" id="sponsored">
      <div class="ad1" id="ad1"><a href="http://www.xfactordesigns.com"><img src="xfactor_designs_badge.jpg" /></a></div>
      Sponsored Links
    </div>
    <div class="groups" id="groups">
      <p>Study Halls, a feature which we are waiting to bring out until it is fully ready, will change the way you study forever. </p>
      <p>Study Halls will allow you to create a worldwide network of people in the same class, school, or major as you.</p>
      <p>Study Halls will contain useful note listings, chatrooms, tutors and more! </p>
      <p>We look forward to being able to open these to you soon!</p>
    </div>
    <div class="uploader" id="uploader">
      <form id="form3" name="form3" enctype="multipart/form-data" method="post" action="">
        <input type="file" name="upload" id="upload" />
      </form>
    </div>
    <div class="notes" id="notes"><a href="az.doc"/>tester</a></div>
    <div class="blog" id="blog"><a href="http://www.quincycreations.com">Blog</a></div>
    <div class="contact" id="contact"><a href="contact.php">Contact</a></div>
    <div class="photo" id="photo"><img src="profilephotos/twhite.jpg" alt="UserPhoto" width="205" height="220" /></div>
    <div class="abouthead" id="abouthead"><a href="About.php">About</a></div>
    <div class="submit" id="submit"><a href="Submit.php">Submit</a></div>
    <div class="editlink" id="editlink"><a href="editprofile.php">Edit Profile</a></div>
    <div class="about" id="about"><a href="classes.php">Subjects</a></div>
    <div class="bio " id="bio">
      <form id="form1" name="form1" method="post" action="">
        <p><h3>Tyler      White</h3>
        </p>
        <p>College: Xavier University of Louisiana </p>
        <p>Major: Mathematics</p>
        <p>Not only am I the creator of NoteScoop, but I am also a college student. I study Mathematics and am doing research in Differential Equations. When I am not doing work or math, I am spending time with my wonderful girlfriend, most likely on Minecraft.</p>
        <p> </p>
        <p> </p>
      </form>
    </div>
    <div class="friends" id="friends">
      <form id="form2" name="form2" method="post" action="">
        <p> </p>
        <table width="460" height="147" border="o">
          <tr>
            <th width="146" height="141" scope="row"><img src="profilephotos/paminaprofile.jpg" width="104" height="107" /></th>
            <td width="146"><img src="profilephotos/default.jpg" width="104" height="107" /></td>
            <td width="146"><img src="profilephotos/default.jpg" width="104" height="107" /></td>
          </tr>
        </table>
        <p> </p>
        <p> </p>
        <p> </p>
      </form>
    </div>
    </body>
    </html>

  • Cannot use the text tool in PS6

    When I try to use the text tool, I get the error message that "something prevented the text tool from being initialized."

    More info please (OS etc.). 
    http://helpx.adobe.com/photoshop/kb/troubleshoot-fonts-photoshop-cs5.html
    Boilerplate-text:
    Are Photoshop and OS fully updated and have you performed the usual trouble-shooting routines (trashing prefs by keeping command-alt-shift/ctrl-alt-shift pressed while starting Photoshop after making sure all customized presets like Actions, Patterns, Brushes etc. have been saved and making a note of the Preferences you’ve changed, 3rd party plug-ins deactivation, system maintenance, cleaning caches, font validation, etc.)?

  • How can I use ONE Text search iView to event/affect mutliple Result Sets?

    hello everyone,
    i have a special situation in which i have 6 flat tables in my repository which all have a common field called Location ID (which is a lookup flat to the Locations table).
    i am trying to build a page with a free-form text search iView on Table #1 (search field = Location ID).  when I execute the search, the result set for Table #1 is properly updated, but how do I also get Result Set iViews for Tables #2-6 to also react to the event from Text Search for Table #1 so that they are updated?
    i don't want to have to build 6 different text search iViews (one for each table).  i just want to use ONE text search iView for all the different result set tables.  but, in the documentation and iView properties, the text search iView doesn't have any eventing.
    if you have any suggestions, please help.
    many thanks in advance,
    mm

    hello Donna,
    that should not be a problem, since you are detailw with result sets and detail iviews because custom eventing can be defined for those iviews.
    Yes, it says "no records" found because an active search and record selection havent' been performed for it (only your main table does).
    So, yes, define a custom event, and pass the appropriate parameters and you should be fine.
    Creating a custom event between a Result Set iView and an Item Details iView is easy and works. I have done it.
    See page 35 of the Portal Content Development Guide for a step-by-step example, which is what I used.
    For my particular situation, the problem I'm having is that I want the Search Text iView's event (i.e., when the Submit button is pressed) to be published to multiple iViews, all with different tables.  Those tables all share some common fields, which is what the Search iView has, so I'd like to pass the search critera to all of the iViews.
    -mm

  • How to use one Assign action to create multiple context variables

    Hello, everyone.
    I read some tips from Oracle documentation that said:
    Avoid creating many OSB context variables that are used just once within another XQuery
    Context variables created using an Assign action are converted to XmlBeans and then reverted to the native XQuery format for the next XQuery. Multiple "Assign" actions can be collapsed into a single Assign action using a FLWOR expression. Intermediate values can be created using "let" statements. Avoiding redundant context variable creation eliminates overheads associated with internal data format conversions. This benefit has to be balanced against visibility of the code and reuse of the variables.
    Oracle® Fusion Middleware Performance and Tuning Guide
    +11g Release 1 (11.1.1)+
    Part Number E10108-03
    But I don't know how to do that. Can you show me ?
    Thank in advance
    Edited by: Doubt_Man on Aug 17, 2011 3:30 PM

    if you return sequences, you can declare the return type of your xquery as xs:double*
    (notice the asterix at the end)
    but I have the impression that in the assign action only the first element will be assigned to the context variable
    (correct me if I am wrong)
    So in fact you might indeed have to transform the sequence into a element()*, or concatenate it into a CVS string - for instance using string-join
    http://www.xqueryfunctions.com/xq/fn_string-join.html

  • Photoshop CC 2014 Crashes Randomly when using the Text Tool...

    Since the most recent Photoshop update, CC 2014 has been extremely buggy and completely unstable on my Mac Pro, which is inexcusable from a paid service .  The most common crash for me occurs when I try to use the “text tool” or attempt to edit text (usually the color).  I am occasionally prompted with a window stating, “Could not complete your request because of a program error” and then Photoshop crashes seconds after.
    After the initial crash and Apple’s various prompts I usually go through 2-3 consecutive cycles of Photoshop attempting to open back up and crashing over and over again.
    I’ve attempted signing out and back in to my Creative Cloud as suggested in several threads, but that was unsuccessful in mitigating the crashing.  Is there a fix for this, other than uninstalling and reinstalling?  My studio has too many upcoming deliverables and deadlines to do a fresh install, so suggestions/solutions would be appreciated .
    Problem Report
    Process:         Adobe Photoshop CC 2014 [3736]
    Path:            /Applications/Adobe Photoshop CC 2014/Adobe Photoshop CC 2014.app/Contents/MacOS/Adobe Photoshop CC 2014
    Identifier:      com.adobe.Photoshop
    Version:         15.1.0 (15.1.0.148)
    Code Type:       X86-64 (Native)
    Parent Process:  launchd [150]
    Responsible:     Adobe Photoshop CC 2014 [3736]
    User ID:         502
    Date/Time:       2014-08-18 14:39:11.590 -0700
    OS Version:      Mac OS X 10.9.4 (13E28)
    Report Version:  11
    Anonymous UUID:  D2E627F5-FA78-7D87-F2B5-7C57B55C541F
    Crashed Thread:  0  Dispatch queue: com.apple.main-thread
    Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
    Exception Codes: KERN_INVALID_ADDRESS at 0x00000000deadbeef
    VM Regions Near 0xdeadbeef:
    -->
        __TEXT                 00000001022de000-0000000106ab5000 [ 71.8M] r-x/rwx SM=COW  /Applications/Adobe Photoshop CC 2014/Adobe Photoshop CC 2014.app/Contents/MacOS/Adobe Photoshop CC 2014

    Sorry for the lack of the report it was my first time reporting an error for software... Never had an issue before.
    I haven't experienced the crash via text tool since I posted the question, but the Photoshop is still constantly crashing at startup, but every time I try to enter the report I get the error: Please try again later.m5

  • How to use the text module in script

    hi,
            i script how to use the text modules and how to write the code  in layout of the script?

    Hi,
    You canr use text modules in script. You have to use standard texts .
    Standard text are maintained in SO10 transaction.
    you can create translation text for other languages also . So based on logon language it will print translation text.
    go to SO10
    give textname it say Ztextname  id as ST and language as EN
    say create, then you will get editor there maintain your text and save it . then come back . Now change language (say for german DE) say create and eneter translation text and save it.
    so now you have created a text called ztextname which you can use in your script.
    Inorder to insert the texts in your script do as below
    go to any window editor and   select path
    Insert->texts->symbols->standard symbols
    then you will get popup  in which you have to mention all the parameters that you have created earlier.
    after inserting just change language EN to sy-langu
    Reward points if useful
    About text elements Sravan already given some informatiomn
    Regards,
    Nageswar

  • How to use the text type in SAP Routine

    Hi,
    The following fields has to be populated in Stock transport order text fields at the time of saving the document & to be copied into delivery document
    1) Material type
    2) Receiving storage location
    3) Production supply Area
    STO
    Delivery
    EWM Delivery
    Origin of the field value
    Material type
    New text type to be created
    (90)
    New text type to be created (Z003)
    New text type to be created
    (Z003)
    Available in EKPO table (field name is MTART)
    Receiving storage location
    New text type to be created
    (91)
    New text type to be created (Z004)
    New text type to be created
    (Z004)
    Available in EKPO table (field name is LGORT)
    Production supply Area
    New text type to be created
    (93)
    New text type to be created
    (Z006)
    New text type to be created
    (Z006)
    To be retrieved from Control cycle table (PKHD-PRVBE), if the Kanban indicator (EKPO-KANBA) is ‘X’.
    With Best Regards,
    SDN user.

    Hi,
    You canr use text modules in script. You have to use standard texts .
    Standard text are maintained in SO10 transaction.
    you can create translation text for other languages also . So based on logon language it will print translation text.
    go to SO10
    give textname it say Ztextname  id as ST and language as EN
    say create, then you will get editor there maintain your text and save it . then come back . Now change language (say for german DE) say create and eneter translation text and save it.
    so now you have created a text called ztextname which you can use in your script.
    Inorder to insert the texts in your script do as below
    go to any window editor and   select path
    Insert->texts->symbols->standard symbols
    then you will get popup  in which you have to mention all the parameters that you have created earlier.
    after inserting just change language EN to sy-langu
    Reward points if useful
    About text elements Sravan already given some informatiomn
    Regards,
    Nageswar

  • Can a ComboBox be used for Text Input ?

    Hi
    In Ms Access the combo box can be used for text input for creating new lines in the Database instead of just being limited to the lines already there in the drop down list. Is this possible with the combo box available in Flex 4. If it is I haven't being successful in getting it to work.
    Thanks for you help in advance
    ParaicKW

    I am using a Dataservices Commit method to write to the Database via a button on the screen
    When I type into the ComboBox's text input and click outside the combobox or on the commit button the application effectively freezes
    SituationService is a CRUD type servicePHP to MYSQL and it works with the Datagrid
    Here is the code -
    ParaicKW
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" xmlns:situationservice="services.situationservice.*">
        <fx:Script>
            <![CDATA[
                import mx.controls.Alert;
                import mx.events.FlexEvent;
                protected function Situation_creationCompleteHandler(event:FlexEvent):void
                    getAllTblsituationResult3.token = situationService.getAllTblsituation();
                protected function dataGrid_creationCompleteHandler(event:FlexEvent):void
                    getAllTblsituationResult.token = situationService.getAllTblsituation();
                protected function button1_clickHandler(event:MouseEvent):void
                    situationService.commit();
                protected function vGroup_creationCompleteHandler(event:FlexEvent):void
                    getAllTblsituationResult2.token = situationService.getAllTblsituation();
            ]]>
        </fx:Script>
        <fx:Declarations>
            <s:CallResponder id="updateSituationResult"/>
            <situationservice:SituationService id="situationService" fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/>
            <s:CallResponder id="getAllSituationResult"/>
            <s:CallResponder id="getAllTblsituationResult"/>
            <s:CallResponder id="getAllTblsituationResult2"/>
            <s:CallResponder id="getAllTblsituationResult3"/>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <mx:DataGrid x="96" y="167" id="dataGrid" creationComplete="dataGrid_creationCompleteHandler(event)" dataProvider="{getAllTblsituationResult.lastResult}" editable="true" width="470" height="237">
            <mx:columns>
                <mx:DataGridColumn headerText="ID2" dataField="ID2"/>
                <mx:DataGridColumn headerText="SITUATION" dataField="SITUATION" width="200"/>
            </mx:columns>
        </mx:DataGrid>
        <s:Button label="Commit Updates" click="button1_clickHandler(event)"/>
        <s:HGroup width="90%" height="80%" verticalCenter="20" horizontalCenter="0">
            <mx:ComboBox width="476" id="cmbSituation" creationComplete="Situation_creationCompleteHandler(event)" dataProvider="  
                     {getAllTblsituationResult3.lastResult}" labelField="SITUATION" editable="true">
            </mx:ComboBox>
            <s:TextArea width="426" id="textArea" text="{getAllTblsituationResult3.lastResult.SITUATION}"/>
            <s:Button label="Back" click="cmbSituation.selectedIndex = cmbSituation.selectedIndex-1 ; textArea.selectedIndex = textArea.selectedIndex-1"/>
            <s:Button label="Forward" click="cmbSituation.selectedIndex = cmbSituation.selectedIndex+1 ; textArea.selectedIndex = textArea.selectedIndex-1"/>
        </s:HGroup>
    </s:Application>

  • Problem with SubmitButton name across screens, which use the same action?

    I am using multiple submit buttons in a single JSP. The problem i am using the same action across 4 screens, and excpet the 1st screen the remaingin 3 screens have BACK & Continue button, in every page the click of back button should take back to the previous screen and continue should submit the options selected to the next screen;
    The problem is i m using to LookupDispatchAction to handle multiple submit buttons, and i m using this for buttons
    <html:submit property="method"><bean:message key="reg.bt.back"/></html:submit>
    In resource bundle reg.bt.back=Back , but i need to pass to the previous screen so how to do that
    Help needed............
    Thanks in Advance

    why can you not store the information you require in the session?
    session.setAttribute("attributename" <attribute object>);
    surely that would negate you needing to pass parameters though the http?
    but otherwise there are several ways to do this, first of all you could simply rewrite the URL, which i'll admit is slightly labour intensive, but it would do the job... of if you really wanted you could put hidden html values throughout your page, and populate them with the data you wish you pass in your request, as long as the hidden inputs are in the <form> there should be no issue here.
    N.B. you are right, i would never suggest using JS for ANYTHING to do with sessions and submitted/retrieving data when you are using a JSP.

  • I need to reprogram the delete and enter key to the left side of a external keyboard for the ipad mini. don't need the caps/lock or ctrl key and due to an injury my daughter can only use her left hand to type. She is using a text to speech app to verbaliz

    I need to reprogram the delete and enter key to the left side of a external keyboard for the ipad mini. I don't need the caps/lock or ctrl key. Due to a brain injury my daughter can only use her left hand to type. She also uses a text to speech app to verbalize all of her needs since her speech isn't intelligible any longer either. And her vision was significantly affected also, so the keyboard has to be mounted about 6 inches from her face. So to reach across the keyboard with her left hand to the right side delete and enter button is physically difficult and causes typing errors, which cause people to not understand what shes trying to say.
    The best keyboard so far is the Zagg folio mini. I just had to make stickers to enlarge the letters on the key buttons.
    Does anyone know how I can reprogram these two keys? Or where I can buy a wireless mini keyboard for Ipad made for lefthanders with these two functions on the left side. I have searched for days and days. It's sooooo important to me that she be able to contribute her voice again. Imagine if you got in a car accident and couldn't speak clearly any longer, but understood everything still. Thanks for any help and suggestions you all take the time to share with me. I really appreciate the kindness of strangers to help me help my daughter.
    Sami's mom

    Sami\'s mom wrote:
    I need to reprogram the delete and enter key to the left side of a external keyboard for the ipad mini.
    You cannot.

Maybe you are looking for

  • Please check my code where i am wrong ,-very urgent please

    Hi , i am getting all values execpt the values from table t685  , kolnr and kotabnr and i am using three selects and moving the values in it_output_report. this is very urgent REPORT zmaster_condition LINE-COUNT 80 LINE-SIZE  225.      D A T A       

  • BOR objects and committing to database

    Hello experts I've run into a bit of a problem with a BAPI I'm using to post changes to a cost center after an approval procedure has concluded.  I'm on NW04, version 640 SP 16, with SAP_APPL SP11. I'm calling the BAPI_COSTCENTER_CHANGEMULTIPLE to po

  • FTPS connection to GXS

    Hello! I am trying to establish a FTPS connection to our VAN GXS using these settings/credentials: The processing starts and after 20-30 minutes I am getting the following error message: I am using SAP PI 7.1. Does anyone know how to configure the co

  • Recordset Structure Help

    Hi. I'm new to XI and I'm currently trying to build a simple File to File scenario. I have a flat file that looks like: name,address,id,age,.... name.... so each element is comma seperated and each record is on a new line. I have a DT that looks like

  • Images, CFDocument, anc CFContent

    We have some "secure", non-web accessible, images that we display inline on our site using the CFCONTENT tag like so: <img src="../logoexport.cfm?dlfilename=#urlEncodedFormat(thumbfilename)#"> The logoexport.cfm page looks like this: <cfcontent type=