Not allowing to delete in certain text in JTextPane

I want to create a program that Inserts some text AUTOMATICALLY into JTextPane and the user is not allowed to Delete that Code.

This posting shows how to prevents lines of code from being removed.
http://www.jroller.com/page/santhosh/Weblog/document_guard?catname=
You might be able to customize it for your requirements.

Similar Messages

  • System should not allow to delete PO line Item after GR/IR

    Hi,
    I am working on a SAP Retail Implementation project.
    Currently the system is allowing us to delete the PO line items after doing GR or IR against that PO line item. But the clients requirement is that the system should not allow to delete PO line item after doing GR/IR.
    We are using Account Assignment Category-N, Item Category-S.
    Please let me know if you have the solution for this requirement.
    Thanks in advance
    Thanks & Regards,
    Suresh

    Hi,
    Standard SAP will not allowed the PO to be deleted once it was GR done. The controlled is on the attributes of message to set as "E"
    Message no. 06115
    But if invoiced takes place, the is the point that PO can be deleted.
    You have to do have a Enhancement using MM06E005, insert you logic here to check PO history tables like EKBE, then check if invoice " Q" (BEWTP) exist, the PO cannot be deleted once the user delete the PO line and SAVE it. Ask you developer to help you on the following coding.
    Use MM06E005 and EXIT_SAPMM06E_012
    IF SY-TCODE = 'ME22N'.
    IF sy-ucomm = 'MESAVE' OR SY-UCOMM = 'YES'..
    LOOP AT TEKPO.
    IF TEKPO-LOEKZ = 'L'.
    SELECT SINGLE BELNR FROM EKBE INTO BELNR1 WHERE EBELN = TEKPO-EBELN AND EBELP = TEKPO-EBELP AND BEWTP = 'E'.
    IF SY-SUBRC = 0.
    SELECT SINGLE BELNR FROM EKBE INTO BELNR2 WHERE EBELN = TEKPO-EBELN AND EBELP = TEKPO-EBELP AND BEWTP = 'Q'.
    IF SY-SUBRC = 0.
    Regards,

  • BAPI_DOCUMENT_CHECKIN2-Status does not allow you to change certain data

    Hi Gurus,
    I am uploading the DIR attached files for the Documents in PLM. We have a custom program written to upload the attached files. When I tried to upload the file I am getting the BAPI Return error as "Status does not allow you to change certain data". The status of all the documents is "RL"
    File format is
    Doc type  Document No   Rev           File Name
    JPS          0021581PS,     X,       /in/PLM/JAPAN/Files/0021581PS.xls
    Please help me I need to upload the data.
    Thanks,
    Deepthi

    Check the status network for your doc type in config. You may find that the current status may not allow you to make changes. You may need to change the current status to another status before you can make the changes you would like.
    The config settings will tell you the status you may set in order to make your changes, if they are allowed.

  • The ipad music app does not allow me to play certain tracks that i have synced via my itunes. The tracks are clearly visibly in the music app but when tap on them to play they wont play. help and advice will be much appreciated

    The ipad music app does not allow me to play certain tracks that i have synced via my itunes. The tracks are clearly visibly in the music app but when tap on them to play they wont play. what do i do?

    Agree about the disaster part. I haven't found a fix within iTunes.
    I gave up and switched to downcast 2 days ago. Even though it was a hassle to re-subscribe to all my podcasts, im so much happier.
    To make switching easier, I found that in iTunes you can "get info" on the podcast and copy the RSS address to the clipboard. Put all of these in a message note. When iCloud syncs the note to your phone, you can copy and paste the urls into downcast one at a time to subscribe.
    Downcast has crashed on me occassionally when I'm subscribing to feeds, but so far it has recovered gracefully each time and no data was lost.

  • SBO 2007B PL18 is not allowing me to close certain production orders

    Dear All,
    Please help me in the problem I am facing while closing a few production orders.
    SBO 2007B PL18 is not allowing me to close certain production orders and flashing messages like:
    1)    Invalid Account Code  [Message 173-9]
    2)    Unbalanced Transactions
    Kindly also advice...how to close my previous questions.
    Thanks in advance
    Edited by: Jimmy Robert on Jul 19, 2010 1:28 PM

    Hi,
    You may check these first:
    Invalid Account Code Error In Prod. Receipt
    Invalid Account Code (Message 173-9)
    To close your previous posts, you just need mark them as answered.
    Thanks,
    Gordon

  • Mail not allowing to delete aliases

    Mail is not allowing to delete aliases, my aliases are not listed in Mail/preferences/accounts.  I verified and they are all active.
    If I try to add an alias, I tells me thatI have to wait a week for the last deletion to clear and I have not deleted any yet and I have not used all my aliases yet.
    HELP !!!!!

    This posting shows how to prevents lines of code from being removed.
    http://www.jroller.com/page/santhosh/Weblog/document_guard?catname=
    You might be able to customize it for your requirements.

  • I was not allowed to deleted them pdf's until I had restarted CF

    I have my CF server generate lots of pdfs but when I got to around 270 lying in a folder I was not allowed to deleted them pdf's until I had restarted CF,
    any ideas why this could have occured?

    I'm late to the conversation, but I had the same problem with populating a PDF form with data, saving that PDF, then flattening the PDF.
    Here's how I solved it in CF9:
    <cfset path = "#GetDirectoryFromPath(GetCurrentTemplatePath())#doc\">
    <cfset srcFile = "template\myPDFtemplate.pdf">
    <cfset destFile = "yourPDF.pdf">
    <!--- Using NAME instead of DESTINATION tells Coldfusion to create PDF in memory --->
    <cfpdfform action="populate" source="#path##srcFile#" name="#destFile#">
        <cfpdfformparam name="field1" value="some value">
    </cfpdfform>
    <!--- Using the variable in the SOURCE tells Coldfusion to read PDF from memory --->
    <cfpdf action="write" destination="#path##destFile#" source="#destFile#" flatten="yes" overwrite="yes" />
     Hope this helps others.  
    Mark

  • Hotmail will not allow contact delete before forward, recent problem how do I restore that feature

    e-mail being forwarded will not allow contact deletion software is mining contact information Hotmail or ??????

    unfortunately it is not possible to restore the close button to have only one (customizable) close button on the Tab bar without using an extension.
    The extension is necessary because you need to create a new toolbar button and bind the proper code to it to make the button act as a tab close button (command: BrowserCloseTabOrWindow()).
    *tabs closebutton restored: https://addons.mozilla.org/firefox/addon/tabs-closebutton-restored/
    * http://cat-in-136.blogspot.co.uk/2014/05/note-do-same-without.html

  • Why does Skype do not allow to delete conversation with single contact?

    IT is a simple question only if Skype can be HONEST and answer it truthfully.. What is the reason that we can not have a feature where we can delete the single conversation with one contact. Now the option skype has does not allow that. You either delete your entire history with all contacts or you have to keep the conversation history you do not want to keep.. I mean It has to be on purpose that Skype has not allowed this option. If you absolutely do not care and will not allow this option, then at least be honest and tell us this is the reason and we can either shut up or move on to some other service... I doubt I will get an honest ansewer

    Ever since MS bought Skype, it has gone to craps.. but I guess just like anything else in corporate America, Ethics is not the words, Executives want to hear.. I AM SURE  Mr. Sweden was not so " I do not give a S&&%T " kinda guy when he developed the Skype but then money came in and he said, WHY NOT? let us do whatever makes us most money and here we are , perfect exploitations of users just because we use free product so we have no right to complain

  • BD54 not allowing to delete logical system

    Hi,
    We did system refersh from Prod to Quality and further we found that while starting BDLS it was not allowing to do so. We got message like <Target> logical system already existing . Further checks revealed that in BD54 that our quality system's logical client entry was already there which would normally come after running BDLS post DB refresh activity for System refresh). Because of this issue we are unable to dlete the quality entry in BD54 and to further start our BDLS acitivty.
    Please to confirm us as we are stuck.
    Thanks & Regards,
    Ashish Robinson
    SAP BASIS Support

    Hi ,
    Thanks all. I resolved my issue.
    Solution:
    1) Removed quality system RFC "STQCLNT002" from SM59 just to b sure nothing was blocking
    2) Also entry of STQCLNT002 needs to be removed  from BD97.
    3) Further if you try to use ENTER when you try to delete entry inBD54 of quality it won't allow ,how many time you may try pressing enter to get away with the warning message. So solution here is to further double clieck on that warning message (in BD54) and see where its blocking . It will show you some method where its blocking .
    4) To locate the method use txn BD64 and scan through the entires to get to the affected link (here it was STQCLNT002).
    5) Be careful, do not delete the entry of STQCLNT002 itseld but actually the corresponding leaves of the methos needs only to be removed to over come the blocking in BD54 (where we wanted to remove the entry of STQCLNT002).
    6) Now goto BD54 and and you can easily remove entry of STQCLNT002.
    7)Now BDLS would easily start.
    Regards,
    Ashish Robinson
    Please grant me point if you find the answer useful. It surely did work for me absolutely fine.

  • Acrobat does not allow connection to a certain website

    I have a PDF with a link to a pdf-file on a certain website. When one user clicks the link it says ( it is in dutch, so i try to translate):
    Acrobat does not allow connection with www.XXXX  (the name of the link where the link addresses to)
    We work in Citrix, most users do not have the problem, only one user has.

    Compare the Security (enhanced) and Trust Manager settings for yourself and the user on the same machine. If they are not identical, make them so. If that doesn't work,
    I'm assuming the msg appears in a dialog and not the yellow msg bar.
    Ben

  • CCR - Execute Comparison/Reconciliation not allowing to delete ECC orders

    SNP Purchase Requisitions were created in APO as part of CTM solve and transferred to ECC. Some of these Purchase requisitions were not deleted in ECC even though it was deleted in APO. CCR (reconciliation program) shows up these Purchase requisitions as available in ECC and not in APO and only give an option to transfer to APO. Why am I not able to delete these orders (available in ECC not in APO) using CCR? The delete button just donu2019t become active.

    Followed up with SAP development team. As per development team functionality to delete PO's or Purchase req in R/3  that are not in APO is not supported at all by deltareport (CCR Report in SCM). CCR report only allows to send PO or Purchase req (missing in APO) to APO.
    However a customer specific enhancment can be made to program  /SAPAPO/CIF_DELTA3_INCFORM to activate the delete Button
    FORM create_errcat_configs :
    ls_errcat_configs-typ = gc_objtyp-t_prq.
    ls_errcat_configs-buttons = '10000'. --> change to '10010'
    This form is used for setting the configuration of the buttons for each objecttype-err_category - combination. The settings are stored in the table GT_ERRCAT_CONFIGS. The meanings of the settings are:  
      '1'  =  button on                                                  
      '0'  =  button off                                                 
      example: '011' means button1=off, button2=on, button3=on.                                                                               
    Error_categories:                                                  
      A = missing in APO                                                 
      B = missing in R/3 without ext.key                                 
      C = missing in R/3 with    ext.key                                 
      D = differences in content                                         
      E = not in active integration model                                
      F = too much in APO                                                
      G = differencies in io-nodes                                       
      H = differencies in operations                                     
      I = differencies in downtimes                                      
      S = stock not in R/3 -> delete in APO                              
      T = duplicate stock in APO -> delete and resend                    
      U = different quantities in R/3 and APO -> resend                                                                               
    Buttons:                                                           
      1.Button = send to APO                                             
      2.Button = send to R/3                                             
      3.Button = delete in APO                                           
      4.Button = delete in R/3
    Edited by: Allen Thomas on Sep 2, 2010 6:29 AM

  • Do not allow to delete Task in QN when Task is completed

    Hello Team,
    Is there is any way I can't allow user to delete task in QN when the task is completed, because currently system allow to delete task even if task in completed.
    Thanks
    Bhavesh Patel

    1.Define status profile for task
    SPRO>Quality Management>Quality Notifications>Notification Processing>Status Management>Define Status Profile>Maintain Status Profiles
    You can create own status profile for task.
    1-1.Check 'Task' for object types.
    1-2.Define user status (example below)
    Status-1-INIT-Initial-check 'Initial'-status change from 1 to 2
    Status-2-COMP-Completed-status change from 2 to 2 then go to detail
    1-3.Define transaction control for status-2-COMP
    Click 'New entry'.
    Check 'Allowed' and 'Set' for 'Complete Task'
    Check 'Forbidd.' for 'Delete Task'
    2.Assign status profile to notification type
    SPRO>Quality Management>Quality Notifications>Notification Processing>Status Management>Define Status Profile>Status Profile for Notification Type
    Now the user status will be assigned for new notification and you can prevent 'Delete task' for completed task.
    Regards
    Luke

  • Wifi/Internet Connects, but Will not allow me to access certain websites

    I have sudden-link 3G/5G wifi personal network at home. It has 50 mbps and I have access to many websites. Now here is the problem, whenever I try to use a search engine, it will not allow me to use it. I have tried using google.com, yahoo search engine, and bing. It will not even allow me to use Facebook. My girlfriend has a lenovo and all of her websites work just fine, even the search engines. So that tells me it is not a network issue, it is a macbook issue. I have looked at many other troubleshoots, tried changing ip addresses and dns server problems and even proxy servers. If anyone has any other troubleshooting tips or any kind of answer to this, then please let me know. It is quite annoying when I try to use a search engine and it won't work.

    Did you try all the suggestions mentioned in this article? iOS: Troubleshooting Wi-Fi networks and connections

  • I am not allowed to open a certain page

    I am not allowed to open www.lastpass.com
    Firefox says it is not safe. I say it is safe. What to do???
    Den här anslutningen är inte tillförlitlig
    Du har instruerat Firefox att ansluta
    till lastpass.com på ett säkert sätt, men det går inte att bekräfta att anslutningen verkligen är säker.
    När du i normala fall försöker ansluta på ett säkert sätt
    kommer webbplatser att presentera tillförlitlig identifikation som bevisar att
    du kommit till rätt plats. Den här webbplatsens identitet kan däremot inte verifieras.

    Do you only have a problem with a secure connection on the lastpass<i></i>.com site or on other websites as well?

Maybe you are looking for

  • How do I operate multiple monitors on my HP Pavilion Slimline Pavilion s3600t?

    Hello HP Forum, I am looking to operate 2 monitors on my HP Pavilion Slimline Pavilion s3600t that currently has GeForce 7100/NVIDIA nForce 630i.  I am not a computer technician and only semi-tech saavy (less than more).  I was told I needed a video

  • There was a problem connecting to the server "router"

    I just recently purchase AirPort Extreme and i have connected my External hard drive to my AirPort Extreme. when I open my MacBook Pro, I am getting this message "There was a problem connecting to the server "router". Also it says The server may not

  • Apple id and itunes

    i am using my moms email for my apple id and itunes.  I do have my own email address and have that as my rescue address, how do i switch the two?

  • Website Examples Animation Templates for Blend & SketchFlow

    Hi All, Apologies for asking stupid questions... I just don't have time spending years looking over white papers attempting to find or understanding all the changes, essentially name changes for marketing purposes.... IE:  1970's Mainframe Computing,

  • SMTP - Output Formats for RAW Text

    Hi, I am trying to set the output format in transaction SCOT for RAW Text. I want to set the format to HTM. However, HTM does not exist in the dropdown menu. Does anyone know how I can get HTM as an option for RAW Text? Thanks /Elvez