Urgent!!! cut function in JTextArea is not working

In my project, I am using a JTextArea. To remove a particular text in text area, i was selecting the text and I was using cut() function to cut the selected text. This functionality was working fine when I was running the the project on JBuilder. But when I run the same without using JBuilder( on jdk). It doesn't work i.e the text doen't get cut. But there are no errors.
Is cut() function a JBuilder library function?If it is so, How do I accomplish the same task without using
cut() ? Please help me...

and what if you use the javax.swing.text.DefaultEditorKit copy-cut-paste default actions for text components ?
copyButton = new JButton(new DefaultEditorKit.CopyAction());
Such an action can be set to a Button, Popup,...
Regards,
Stephane

Similar Messages

  • Repost Function using Variable is not working

    Hello experts!  I am on BW-BPS 3.5.  I have set up a repost function using variables to change a characteristic value for Business Unit.
    1. I created 2 variables as Bus.Unit From and Bus.Unit To in the Planning Area. I am not using the variables in my planning level.
    2. I entered the variables in the parameter group New Values area for the From and To Values.
    3. My goal is when the user executes the Repost Function for a Variable Prompt should appear and have the user select the From Business Unit and To Business Unit.
    The Variables are set up as USERVALUE User-Defined Values, Restriction of Values required by user and I have tried with/without option of Input Allowed by User. 
    Can you tell me what I am doing wrong, I expected a variable prompt when executing the Repost Function but it does not work.
    Thank you,
    Teri

    Ravi, Thank you for your reply however I contiue to have errors or the execution does not repost (change any value) as noted below.
    1. I have 2 Variables in Planning area var1 (from) var2 (to) for the same charateristic which is Business Unit
    2. Business Unit is in the level,  on the selection tab to add the variable I can only add 1 variable, So I added var1 (from) to the level. 
    3. Parameter group for old and new values - I have Var1 (from), var2 (to)
    4. Report Function - are you referring to Reporting variables in BPS? I have set this up as suggested in the "How to Use Reporting Variable in BW-BPS" document.
    5. Enter plan data: I receive prompt for VAR1, mandatory. At this point there is no value in Var2.
    6. Execute Repost function - I receive an error to "Restrict Var2"
    7. If I set variable values and add a value for Var2 I receive an error "The generated data is not contained in the selection condition".
    Next I removed VAR1 from my planning level and turned on the option 'Selection in package' for Business Unit. This seems to work well.
    What do you recommend?
    Thank you,
    Teri

  • My final cut pro x update is not working?

    My final cut pro x update is not working for 10.0.3
    I'm very upset, somesone help me I'll update lastest version of FCPX.
    my version is now 10.0

    Then perhaps you should post your question in the FCP forums rather than the iPhone forums.

  • Final Cut 6 and Color does not work

    Hello,
    I bought FInal Cut Pro Studio 2 and i receive the suite today and instal only apps ( no contents and loops )without problem
    Tried to open FCP6 and Color but not working.
    i launch FCP 6 or Color,2 jumps on dock and then quit.
    can be memory problem.( i have 768RAM on my imac G5 64VRAM)
    any pacth to resolv this problem?
    ps* SountrackPro 2,DVDStudio Pro,Motion3,LiveType,CinemaTools and Compressor woks fine in the same computer
    Computer configuration
    IMac G5 1.6 with 64VRAM and 768RAM
    thx in advance

    Ok,forgot Color,but and about final cut 6 ? why does not work?
    max resolution 1440x900.
    i was looking the systen requirements on fcp page
    Minimum Requirements to Install All Final Cut Studio Applications
    Final Cut Pro 6
    Macintosh 1.25GHz or faster PowerPC G4, PowerPC G5 = OK
    1GB of RAM = NO,my iMac have 768RAM
    1024-by-768 resolution or higher OK
    Mac OS X v10.4.9 or later OK
    QuickTime 7.1.6 or later OK
    A DVD drive for installation OK
    Can i deduce that problem is because i don't have RAM enought?
    THX

  • SUBMIT FUNCTION ON COMPRESSOR IS NOT WORKING

    Hi Everybody!
    I was overseas for a while and when I came back to work, my workstation was updated I guess.
    I'm using the FINAL CUT STUDIO 3, I did not any updates yet.
    My issue is when I'm trying to send a sequence, from the timiline in final cut (SEND TO/COMPRESSOR) everything seems to be normal. Once I do all the settings and destinations on COMPRESSOR, and I'm ready to start the render, I'm able to see the SUBMIT button, but it seems to be inactive...
    Probably u have already figured out the way to fix this issue...
    please help guys, this is delaying my overall process so much!
    Thanks!

    Hi everybody!
    Compressor don't works! I can't use the submit function because it doesn't work. Help me!
    I removed compressor and Qmaster and re-installed them: in this way the submit function works and I can save the job on "this computer", but when I download the compressor's upgrade the submit function stops to work.
    I'm sorry, I'm italian and my english is very bad!

  • For years FF has worked beautifully with Constant Contact. Now sevear function in CC will not work in the FF browser - they work in all other browsers. Help

    Until one week ago, I had no difficulty or problems working Constant Contact while open in my Firefox browser. Now I have several with some functions in CC not working.
    Inserting images, setting hyper links, changing background color - These are three necessary functions that I use in Constant Contact emails that no longer function when opening CC in Firefox browser - latest update was today 10/29/2013.
    The function work in the Chrome and Internet Explorer browsers.
    I have contacted Support at Constant Contact and the issue is not with their program.

    Hi eaglegrafix, try disabling ALL nonessential or unrecognized extensions (i.e., anything you don't think you'll need for 24 hours) and see whether that solves it. You can do that on the Add-ons page:
    orange Firefox button (or Tools menu) > Add-ons > Extensions category ''(in the left column, click Extensions)''
    Usually a link will appear above at least one disabled extension to restart Firefox. You can complete your work on the tab and click one of the links as the last step.
    Does that help narrow it down?

  • Cut and Paste between Events not working

    Using iPhoto11, I can drag and drop pictures between events, no problem...but Cut and Paste does not work.
    I select a photo and cut in event A, go to event B, I right click and get a PAST button, It even clicks but nothing happen, the Cut image never gets pasted.
    Is this a bug? whats the solution?

    To delete the test user, go to the black apple menu, click on system preferences, then on accounts. From an administrator account, click on the "test" user and hit the "-" key. when the dialog box comes up, hit "delete the home folder" and it will be gone.
    For the startup disk issue you should repair permissions. From the finder, click on the "go" menu, then on "utilities". Select disc utility. Select your HD and click on repair disk permissions. This will take several minutes (5 or more).
    If that has not done the trick then you may need to reset the parameter ram (PRAM).  Turn your computer off. When you turn it back on, simultaneously hold 4 keysL command-option-p-r. Keep holding them. The startup chime will ring. Continue to hold until you have heard the chime at least 2 times (more won't help or hurt). Then release.

  • The minimize function for Chrome is not working

    Hello everyone,
    since yesterday the yellow round icon (which allows you to minimize the window) on Google Chrome it turned grey and it's not working anymore. Also all the other ways to minimize windows are not working.
    This is happening only with Chrome, and when I'm working with it the dock disappear...
    How do I restore the minimize function for Chrome?
    Thank you,
    Silvia

    I'm using 10.7.2.  When I highlight some words, the highlight turns into a colored oval!   The PDF file is from a vendor.

  • Java downloading function FtpClien.get() do not work in Solaris 10

    I wrote a java ftp code using java class provided by sun (sun.net.ftp.FtpClient). It worked nicely in Solaris8. After new update from Solaris8 to Solaris10, this function does not work anymore. Specifically this function "TelnetInputStream in = ftpClient.get(remotefilename)" does not work. It stucks there forever enven without giving an exception. Does anyone know this problem?
    Thanks
    P.S. I still can use the java function "ftpclient.put()".

    http://forum.java.sun.com/thread.jspa?threadID=5276131
    (never mind that this OpenSPARC forum is utterly wrong for your question)

  • Nudge function with arrows will not work in PS cs2

    I recently installed photoshop cs2 on my pc with windows vista home premium. And the nudge function will not work using the arrows. Is there a work around for this?

    SWSinNC wrote:
    I will, thanks
    so your saying that if it's fake...that specific function is a common flaw ?
    Exactly!
    Unfortunately the full thread recounting this saga got lost in the forum changeover, but the fake copies come in authentic looking shrink-wrapped boxes with printed documentation; and everything works except the nudge.
    Or sometimes other keyboard combinations.

  • JTextArea Editable not working

    I have a dialog which creates different types of components(textfield,textarea etc).
    that's the reason i have components in my code
    JComponent components = new JComponent();
    components = new JTextArea();
    ((JTextArea)components).setLineWrap(true);
    ((JTextArea)components).setWrapStyleWord(true);
    ((JTextArea)components).setPreferredSize(new Dimension(3,25));
    ((JTextArea)components).setEditable(true);
    JScrollPane scroll = new JScrollPane();
    scroll.setPreferredSize(new Dimension(65,50));
    scroll.setVerticalScrollBarPolicy( ScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
    scroll.add(components);
    scroll.getViewport().setView(components);
    add(scroll);1.I can't see what is wrong with this code, but for some reason the textarea is not editable.
    2. When I increase the dimensions of the textarea, a white rectangular area appears in the dialog next to the textarea. If I reduce the size of the textarea , the white area also shrinks, don't know what's going on there.
    thanks.

    Well, I don't think the snippet you posted can be EXACTLY your real code, because JComponent is abstract: you can't say "new JComponent". When I try running your code, if I replace the first two lines with simply
    JComponent components=new JTextArea()The area is, in fact, editable, and I don't see any strange shadow areas. Perhaps we'd have to see what the frame or panel is that you're trying to put this on.
    That said, you're making things hard for yourself in a number of ways. Here's the code I generally use to make a scrollable text area:
    JTextArea area=new JTextArea(4,40);
    area.setLineWrap(true);
    area.setWrapStyleWord(true);
    content.add(new JScrollPane(area),BorderLayout.CENTER); // or wherever we need to put itHard-setting the preferred size of the JTextArea makes scrolling work strange: you scroll an area of size equal to preferredSize, but if you've entered more text than that, it won't scroll. Perhaps when you say that you can't edit you really mean that you can't get to text that gets written off the bottom? Especially given the very small size you give: Do you realize that Dimension(3,25) means 3 pixels wide -- which is perhaps half a character -- and 25 pixels tall, which is maybe a line and a half?

  • HT4775 Final cut pro tab share does not work with mountain lion V10.8

    I have upgraded to mountain lion and since  than the tab share in final cut pro X is not working anymore.
    Any suggestions???  Thanks

    Trash preferences and repair permissions in Disk Utility.
    If that doesn't free Share up I'd drag app to trash, reinstall it and run repair permissions again.
    Good luck.
    Russ
    BTW, not that it matters a lot, but this is the Compressor forum.

  • Javascript functions to control QuickTime not working in Firefox

    I am using the provided Javascript functions to control QuickTime (7.6.2); however, the functions are not working in Firefox (3.0.11), whereas they are working in Safari (4.0.1).
    I create a QuickTime Player, as follows:
    QT_WriteOBJECT('Music.mp3', '0', '0', '', 'AUTOPLAY', 'True', 'KIOSKMODE', 'True', 'CONTROLLER', 'False', 'LOOP', 'False', 'obj#id', 'qtp', 'emb#name', 'qtp', 'emb#id', 'qtpID', 'ENABLEJAVASCRIPT', 'True', 'SHOWLOGO', 'False', 'VOLUME', '256');
    The Music.mp3 file starts playing in both Safari and Firefox; however, the Javascript functions to control that playing work only in Safari, not in Firefox.
    Examples of QuickTime functions that work in Safari, but not in Firefox:
    document.qtp.Stop();
    document.embeds[0].GetRate();
    document.embeds["qtp"].GetTime();
    document.embeds["qtpID"].GetQuickTimeVersion();
    The GetRate and GetTime functions always return a "0" in Firefox, the Stop command is ineffectual in Firefox, and the GetQuickTimeVersion function aborts the Javascript code in Firefox.
    Any ideas what's happening?

    Dave, what you have done is very similar to what I have done, with the following exceptions:
    1. I'm using the regular HTML version of QT_WriteOBJECT rather than the XHTML version.
    2. My first parameter is an .mp3 file rather than a .mov poster in combination with an 'href'.
    3. I'm not using some of your parameters, such as, 'target', 'targetcache', 'scale', 'href', and 'name'.
    4. Instead of 'name', I'm using --- 'obj#id', 'qtp', 'emb#name', 'qtp' --- which allows me to then reference the QuickTime functions as --- document.qtp.Play(); document.qtp.Stop(); --- etc.
    5. I'm not creating HTML buttons as player controls; rather I am using my javascript program to detect and control the player operation with functions such as --- document.qtp.GetRate(); document.qtp.GetTime(); document.qtp.GetDuration(); document.qtp.SetVolume(); document.qtp.SetMute(); document.qtp.Play(); document.qtp.Rewind(); document.qtp.Stop() --- etc.
    6. I change my .mp3 files using --- document.qtp.SetURL();
    7. All my javascript is contained in an iWeb HTML snippet using an iframe.
    Essentially, I've created a jukebox with button images of album covers that can be visually scrolled and then clicked to play an album via the HTML onClick, onMouseOver, and onMouseOut functions.
    This all works without a hitch in Safari; however, in FF, NN, and Opera, it only works if the iframe is completely visible on the screen. It can't be scrolled offpage, and the HTML album cover buttons in the iframe cannot be dimensionless, hidden, or blocked from view.
    I really think it's the iframe that is causing this behavior in all the browsers (except Safari).
    BTW, as an aside, I don't have a Windows machine, but no one I know using IE on a PC has been able to get my QuickTime Player working. I think it's because, when I want to collapse an album cover, I set its width to '1px' ('0px' works only in Safari), but I think IE may require a minimum width of '2px'. I have not tried changing my image widths to '2px' yet.

  • Search Function in Finder is not working

    I'm a MacBook Pro User. The problem which I'm facing is with Finder Search function
    Its search function is not showing any result. I tried with the know file name and with the known location, but its search command is not working.
    eg: I created a doc file and saved it on desktop, then in finder search box I used the same name of the file which I saved on desktop, but its not showing any result.
    I have huge amount of data on HD and I want to locate one file which is making my life miserable, and I can not bear my mac to add insult to my injury.
    PLEASE HELP

    Add me to the list of confused.
    Just purchased a used macbookpro - working very well in all aspects, except finder and spotlight are not working. Thanks to this site I am working around the problem with easyfind, but would prefer to work straight from finder.
    - heres the specs...
    Model Name:    MacBook Pro
      Model Identifier:    MacBookPro4,1
      Processor Name:    Intel Core 2 Duo
      Processor Speed:    2.4 GHz
      Number Of Processors:    1
      Total Number Of Cores:    2
      L2 Cache:    3 MB
      Memory:    4 GB
      Bus Speed:    800 MHz
      Boot ROM Version:    MBP41.00C1.B03
      SMC Version (system):    1.27f3
      Serial Number (system):    W8830FGWYJX
      Hardware UUID:    B15949A7-2F79-5A07-8860-7FFF7B8E1C02
      Sudden Motion Sensor:
      State:    Enabled

  • Functions (back & stop ) are not working in production environment

    Hi All ...
    Some functions (back and stop) are not working in production environment, where as those functions are working in QA testing environement..please answer.. what could be the reasons for not working some functions
    in production environement.
    Regards,,
    Krishna

    Hi,
    Based on the error message, it is related to the item in your production environment, then the workflow will occur exception.
    As your workflow worked perfectly in your other environments, I suggest you can check if some item has is valid in the document library.
    You can try to use Fiddler to track the web request and find in which item the workflow occurs exception.
    Here are some detailed articles for your reference:
    https://msdn.microsoft.com/en-us/library/vstudio/ee231573(v=vs.100).aspx
    http://www.andrewconnell.com/blog/SP2013-Workflow-Advanced-Workflow-Debugging-with-Fiddler
    Thanks
    Best Regards
    Jerry Guo
    TechNet Community Support

Maybe you are looking for

  • Suddenly I can't download podcast episodes to iPhone, but they'll still stream

    I seem to no longer be able to download podcast episodes on to my iPhone. When I update/refresh podcasts, the little numbers appear over podcasts, indicating there are new episodes: but when I go through to the podcast, I see the little "cloud + arro

  • Ipod not recognised by mac or itunes and won't restore

    i think this is a very similar problem to everyone else but i can't find a helpful answer so i'm going to outline my situation to see if anyone can help. to start with my ipod was ok, then when i plugged it in to load new songs on it my mac and itune

  • Changing Ipod connection fom Windows to Mac.

    I am trying to change over my Ipod to update from my Mac instead of my PC. Have downloaded the Ipod updater using software update my Mac so presumably it is the correct format (ie not Windows) Followed the steps advised in previous related topics, ie

  • SAP HR new joining, plz help!!!

    Hello Experts, I'm new in SAP HR, have just shifted career from HR Dept. to SAP HR Consulting Dept (I work for ERP Services Comp.). Over the last 3 months, I've spent fulltime on self-research on SAP HR but it is such harsh work when I don't have any

  • CS5 and mountain lion

    What problems can I expect upgrading to Mountain Lion, the products I use most are Photoshop, Dreamweaver and InDesign. I have a student edition so my Photoshop is 12.0.4, I don't know if aI am eligible to upgrade to 5.1