Reversing with swing? Help!

Alright, before you guys flip out and say post it to the swing forum, why does the swing forum say read only? Now I have searched the forum but cannot find anything that deals with swing and the kind I am doing. So if you can provide some advice or some help, it would be greatly appreciated. This is my last hurdle to tackle in my school project.
I tried a StringBuffer approach but it kept giving me an error saying it would not work with JTextArea? Maybe the code was wrong?
This needs to take the text on the screen which I have and post it reversed when the "Reverse" button is clicked... I have been searching the web and these forums and all the different reverse methods and theories are confusing me, I try to copy them and get them to work but I just keep receiving errors. What is the best way to do this with using GUI?
else if (actionCommand.equals("Reverse"))
          reverseMemo = theText.getText();
/*Is this where I would put the reverse code?*/          
theText.setText(reverseMemo);
     }Thanks,
Jess

Just write a method to reverse the text
read the string in reverse and start plugging the values into a string buffer (inside a loop of course)
then display results:
textfield.setText(stringbuffer.toString());
This is my last hurdle to tackle in my school project.I highly doubt it.
The fact you are asking this question shows me you did not learn anything about Java much less computer science. Your question has nothing to do with swing.

Similar Messages

  • Displaying a matrix in swing----HELP!! :)

    Hello I want to print out values from a matrix in some sort of table.
    javax.swing.JTable is almost what I want, but you can't do row labels (only column labels, I think)--
    Are there any classes like JTable, but a little more like an Excel spreadsheet where you have labels on the columns and rows???
    Or any other suggestions for displaying matrix values with swing would be helpful!!
    THANKS!!!!

    .

  • Using Report tool with Swing Application

    I'd like to use a reporting tool (Crystal Reports or anything else) with Swing application. Could anyone help me?

    You have to pass the values are parameters to the Oracle Reports report. Take a look at this: http://www.oracle.com/technology/products/database/application_express/howtos/howto_integrate_oracle_reports.html
    Also you can search this forum for "Oracle Reports"
    Mike

  • Can i use EJB with Swing?

    Hi,
    I am developing an application in which i am using the "Swing" for GUI.Can i use the "EJB" with swing?
    regards

    Hi,
    Sure you can. The earlier poster has said the same thing too. Just that hes made out like this is possible only in jboss. EJB is a distributed component framework and can support multiple types of clients. The client can be a servlet or jsp, another EJB or in your case a swing application. In fact many IDE's allow you to test your EJB called by generating an application client. You need to add a special application client deployment descriptor file ( atleast with weblogic) in order to do this.
    Hope this helps.
    cheers,
    vidyut
    http://www.bonanzasoft.com

  • How to link crystal report with swing

    I am developing applications in swing. I have done a report using crystal report.
    Now i don't know how to link it with swing. can anyone help me to solve this with some examles.
    thanx in advanz

    Hope these links are useful:
    http://www.must.de/default.html?Jareport.htm
    http://www.utdallas.edu/~pxm034000/files/integrating.html

  • Integrating flash with swings

    Hi,
    Im looking to integrate flash with swings. This is for a desktop application, not a web based application. I was looking for some help on this, if someone could help me with it.
    Regards,
    Ghost Rider

    Flash is proprietary technology and they don't play nice with others. Same reason why you can't load an MSWord doc in a Java GUI. If Flash WAS an open technology, then perhaps someone would/could build a plugin or some way to do it.

  • Post Goods Receipt Reversal with VL09 for customer returns in WM

    Hi,
         We have performed Goods receipt and stock was putaway with a TO confirmation in WM. Now we want to reverse the goods receipt and the quantity is not in 904 area for returns. How can I get the stock back to 904 from regular storage type with same dynamic bin number as my customer return delivery number? Basically When I do VL09 system complains that it canot find the dynamic bin number which is same as my delivery number. Answer will be rewarded.
    thanks,
    Sarvesh

    the optional solution can be as following steps:
    1) create the bin manually with ls01n: storage type 904, bin name is the delivery number,
    2) reverse with vl09 and a material doc will be created.
    3) check the bin stock with ls24, you will see negative stock in 904.
    4) create TO to offset this negative qty with lt06 with above mentioned material doc. this TO's source bin is just the one in regular storage type.
    5) confirm TO
    6) don't forget to delete the bin created in step 1,  this is because it is created manually but not dynamic bin that will dissapear automatically.
    pls reward if helpful.

  • Ajax with swing and multithreading

    i want to know ,can we use ajax with swing (multithreading)

    You have asked a question that is full of buzzwords that you obviously don't understand.
    The answer to your question is not going to help much.
    What are you really trying to do?

  • Can I build a GUI application with SWING only without [import java.awt.*;]

    I have seen several threads (in forums), books and tutorials about SWING and I see that they all mix SWING with AWT (I mean they import both Swing and AWT in their code).
    The conclusion that comes out is:
    It is good to learn about SWING and forget AWT as it won't be supported later. I have decided to do so, and I never include <<import java.awt.*;>> in my code.
    But I see that you cannot do much without <<import java.awt.*;>>. For example this line which changes the background color:
    <<frame.getContentPane().setBackground(Color.red)>>
    works only with <<import java.awt.*;>>. I have seen that codes in this and other forums import awt to change the background. Why is that?
    After all, I wonder, what can I do;
    My question is, can I change the background (and of course do all other things listener, buttons etc) without using <<import java.awt.*;>>.
    I would like to avoid using <<import java.awt.*;>> and using awt since my program will not work later.
    In addition, I believe there is no point to learn awt, which later will not exist.
    I know, I must have misunderstood something. I would appreceate it very much, if anyone could give me even a short answer.
    Thank you in advance,
    JMelsi

    Since swing is a layer on top of awt, AWT will exist for as long as swing does.
    If sun does ever remove AWT they will have to replace it something else swing can layer on to and you will probably only have to replace your import statements.
    The main difference is the way there drawn to the screen.
    You can do custom drawing on swing components but you can't on AWT.
    If your using a desktop PC system it's probably best to use swing just in case you wish to do some custom drawing.
    awt uses less memory than swing and is faster but swing can be extended. awt comes only as standard.
    Say for example you wish to implement a JButton with a ProgressBar below the button text, this can be done with swing!

  • Error while adding a custom field with Input help via AET

    Hi All,
    I need to add two custom field under Service orders at Item level in component BT140I_SRVP.
    One field is required to have the input search help f4 and autopopulates the second field
    I am able to add one field(not requiring help) successfully through AET .
    I have created one Zsearch_help in se11 and its successfully running  and Autopopulating seocnd field while I am testing it
    While adding second field through AET,I need to enter following details as -
    field label,search relevant ,serach help etc.
    When I type the name of my 'Zsearch_help' against field search help it gives me following error
    'Search help is not compatible'.
    Secondly,not getting getter and setter methods for the attrributes in BTAdminI.
    Last,please tell me if i create zhelp and activate it,would it automatically appear in the list on AETwhile assiging it to input field?
    Please help me out.Kindly be detailed as I am new to SAP CRM.
    Thanks,
    Shivani

    The question is answered in CRM 7.0 forum:
    Getting error while adding a custom field (with input help) through AET

  • Creation of report with the help of report painter

    Dear Experts,
                         I need report painter material, if any body have  pls  farward to me.
    my intension to create controlling report with the help of report painter.
    I am ready to award full points.
    Thanks in advance
    Regards
    avudaiappan
    Moderator - Please read this:
    /thread/931177 [original link is broken]
    Thread locked

    Hello Chinasammy,
    Report Painter allows you to create reports using data from SAP application components, which you can adapt to meet your individual requirements.
    Many of your reporting requirements can already be met by using the standard reports provided by various SAP application components. If these SAP standard reports do not meet your reporting needs, Report Painter enables you to define your specific reports quickly and easily.
    When executing a Report Painter report, it is displayed by the system in Report Writer format. You thus have access to the same functions as for Report Writer reports defined in the same way, and can combine Report Painter and Report Writer reports together in a report group.
    Report Painter uses a graphical report structure, which forms the basis for your report definition and displays the rows and columns as they appear in the final report output.
    To facilitate report definition, you can use many of the standard reporting objects provided by SAP (such as libraries, row/column models, and standard layouts) in your own specific reports. When you define a Report Painter report you can use groups (sets). You can also enter characteristic values directly.
    Advantages of Report Painter include:
    Flexible and simple report definition
    Report definition without using sets
    Direct layout control: The rows and columns are displayed in the report definition as they appear in the final report output, making test runs unnecessary.
    =============================================
    Below mentioned is the process for creating reports using Report Painter as a tool.
    Selecting and maintaining a library for your report: As the transfer structure to Report Painter you use a report table, which is defaulted by SAP and can not be maintained. This table contains characteristics, key figures and predefined columns. In a library, you collect the characteristics, key figures, and predefined columns from the report table, which you need for your Report Painter reports.
    When you define a Report Painter report, you assign it to a library. Reports assigned to one library can only use the characteristics, key figures, and predefined columns selected for that library.
    When you create or maintain a library, the Position field determines the sequence in which the characteristics, key figures or (predefined) key figures appear in the Report Painter selection lists when you define a report. This allows you to position the objects that you use regularly in your reports at the beginning of the selection lists. If you do not make an entry in the Position field, you will not be able to use this object in Report Painter reports.
    You can use either the standard SAP libraries for your reports or define your own.
    (ii) Selecting or maintaining a standard layout for your report: Standard layouts determine report layout features and the format of your report data.If the SAP standard layouts do not meet your reporting requirements, you can create a new  standard layout or change an existing one.
    (iii) Defining row and column models: A model is a one-dimensional, predefined reporting structure that you can insert in either the rows or columns of your report.If you often use the same or similar row or column definitions in your reports, it is recommended that you create row or column models.
    You must define the row and/or column models that you want to include in your report definition before you define the report.
    You can also use the standard column models supplied by SAP.
    (iv) Defining the report: Defining a Report Painter report involves the following steps.
    (a) Define the report columns: You define the report columns using the characteristics, key figures, and predefined columns selected for the library that the report uses. Alternatively, you can use a column model for column definition. Column models are predefined column structures which you insert into your entire column definition, instead of defining each individual column.
    (b) Define the report rows: You define the report rows using the characteristics selected for the library selected for the report.
    Alternatively, you can use a row model for your row definition. Row models serve the same purpose as column models, but are used to define a report row.
    Edit and format the report rows and columns in line with your requirements. (For example, you can hide rows or columns, define the column width or define colors for your report rows).
    (iii)Define general data selection criteria for the selection of your report data: Selection criteria are the characteristics used to select data for the entire report. You cannot enter characteristics as data selection criteria if they are already being used in the report rows or columns.
    (iv) Assigning the report to a report group: Once you have defined a report, you must assign it to a report group. A report group can contain one or more reports from the same library. However, reports that share the same data will select data more quickly and improve processing time.
    Hopw this helps you. Please let me know if you need anything more and assign points.
    Rgds
    Manish

  • Custom report templates with the help of BI Publisher.

    Hi All,
    I have created custom report templates with the help of BI Publisher it is working as we excepted.
    refered : https://blogs.oracle.com/kyle/tags/reports
    But our requirement want to change the color of heading and include filters in output report, It is possible, if yes pls share you comments?
    Best Regards
    Pradeep

    how silly of me!
    just restarting the tomcat sorted the problem!!!

  • Cannot clear document posted with FBS1 and Reversed with F.81 in F-03

    We have recently turned on OIM for a Balance Sheet account and are in the process of clearing it.  The postings in this account were generated with FBS1 (Accrual/Deferral Document) and reversed with F.81.
    Majority of the documents displayed with FBL3N cleared no problem after open item management was turned on, however, there are a handful that are not displayed in F-03 (or F.13).
    Please consider the following when answering:
    OIM was turned on for the account using ZRFSEPA02 (Copy of the standard/not-delivered program for turning on OIM).
    All of the entries were reversed with F.81 and the header of the documents does not contain a "Reversal Date".
    I have already tried turning off OIM with ZRFSEPA03 and then turning it back on again with ZRFSEPA02.
    My settings in FS00 are correct for the GL Account.
    Hundreds of items were cleared.  There are 7 documents that don't appear in F-03 or F.13
    Also, please do not give me "Beginner level" information such as "Tick the OIM box for the GL Account in FS00" (You cannot turn on OIM in that manner for an account that has line items posted to it - I have been doing R/3 Configuration for 23 years, so I am an advanced Analyst in the FI/CO Area).
    Thanks - Back to searching OSS!

    Hi,
    Actually when report is executed we get following message
    Do not use the report program to set up open item management for the
    account.
    Create a new account with the correct account assignment. Post your
    items to the new account. If you want to use the original account
    number, you must bring the account balance to zero, change the account
    assignment, and repost the items. You can remove the old items by
    archiving the documents.
    Hence, it is risky to execute this report.
    Are you getting these documents in FB03 ?
    Regards,
    Tejas

  • IPad 1 Safari crashes frequently. I went to many Apple stores in different countries and each Apple staff member had their own different opinions with no help. I had upgraded my iOS to 5.1.1 and the Safari crashing started about one year

    IPad 1 Safari crashes frequently. I went to many Apple stores in different countries and each Apple staff member had their own different opinions with no help. I had upgraded my iOS to 5.1.1 and the Safari crashing started about one year after the upgrade and some Apple staff blame this- but this started one year later after the iOS upgrade. Recently at the Apple Store in Vancouver an Apple staff reset my computer (erased everything and sent to iCloud to reset the iPad) and I hoped this would fix the problem. IPad Safari still crashes. Short of booking an appointment for taking it for repair to Apple technicians which will cost me money can anyone help me to fix this Safari crashing.

    Hi,
    You might have a 3rd party plugin that isn't compatible with Safari 4.0.4. Go here for help...
    Safari add-ons can cause performance issues or other situations
    If you are using a USB hub, try disconnecting and restarting with just your keyboard and mouse connected.
    From the Safari Menu Bar, click Safari / Empty Cache. When you are done with that...
    from the Safari Menu Bar, click Safari / Reset Safari. Select the top 5 buttons and click Reset.
    Mac OS: Web Browser Quits Unexpectedly or Stops Responding
    Also, you could download and install the 10.5.8 combo update (PowerPC) available here.
    http://support.apple.com/downloads/MacOS_X_10_5_8_ComboUpdate
    It contains fixes that might help. Then repair disk permissions.
    Quit any open applications/programs. Launch Disk Utility. (Applications/Utilities) Select MacintoshHD in the panel on the left, select the FirstAid tab. Click: Repair Disk Permissions. When it's finished from the Menu Bar, Quit Disk Utility and restart your Mac. If you see a long list of "messages" in the permissions window, it's ok. That can be ignored. As long as you see, "Permissions Repair Complete" when it's finished... you're done. Quit Disk Utility and restart your Mac.
    Carolyn

  • How do I reset the password that allows me to download reader - I worked with chat help - we rest my password and I can get into my adobe account but when I try to download reader and work my way through the process when I get to the password it will not

    How do I reset the password that allows me to download reader.. I worked with chat help two hours last night - we have reset a password that lets me into my adobe account but in the download reader process that password will not work - where it says Adobe reader wants to change something and please type in password, just vibrates with the dots glowing purple but will not open…. what do I do to reset that password or get it to function. they would not assist me further they said its a free download and I would need to seek help from forums ( all this is new to me )
    so "forums" help…what do I do ?
    thank you
    PL

    patricia here again:
    I am the system administrator - personal computer
    I have been able with your lead to find the password I need , and to have install happen
    however - when I then go to the website to download the Pdf document I need I get a screen with the big red adobe icon that says to complete and down load this document I must launch adobe reader a dn sign the terms of agreement , close browser and reopen.
    but thatscren has no choice buttons whatsoever, I cannot find anywhere a adobe reader image to launch - been into launch pad , preferences etc.
    so now the loop is the pdf document and the adobe screen saying I must do terms of agreement
    like is this Kafka like or what ...
    suggestions?
    thanks
    P.

Maybe you are looking for