Is there a way of inserting symbols into JTextPane?

Hi there folks. Is there a way of inserting symbols like greek letters in a standard way into JTextPane?

use getDocument(). insertString(offs,str, attributes);
str should contain proper unicode chars and attributes must contain proper font family to show the chars.
use StyleConstants.setFontFamily()
regards,
Stas

Similar Messages

  • Is there a way to insert comments into numbers on an ipad, or an alternative?

    Is there a way to insert comments into numbers on an ipad, or an alternative?

    If you mean in the iBooks app - tap on Collections in the upper left corner. Then tap New. Name the collection. Tap Done. Then tap the Edit button in the upper right. Tap on the books that you want to move to select them. Tap Move in the upper let corner. Select the newly created collection.

  • Is there a way to Insert Data into a Lookup Column Type on a SharePoint List Destination in SSIS?

    Greetings.
    I have successfully worked out inserting SQL data (2008 R2) into my 2010 SharePoint list (New, Update, Delete) by creating an SSIS Data Flow Task as outlined here:
    http://fsugeiger.blogspot.com/2010/01/synchronise-sql-table-with-sharepoint.html
    However, the problem I am running into is inserting data into the SharePoint Columns that are "Lookup" column types. I verified that all of the values I am copying from SQL into the SharePoint lookup column exist in the customn list it is pointing to. It
    is important to have this column be a lookup column as it links to another custom list that has many more columns of related information.
    I have read and re-read the SharePoint SSIS Adapters 2011.docx from
    http://sqlsrvintegrationsrv.codeplex.com/ and the only section that seems to apply is this:
    "Looking Up Values in a SharePoint List
    If you have to look up a value in a SharePoint list, you can use the Lookup transformation in your data flow, and use the SharePoint List source to load the lookup table. You may have to add a Derived Column transformation or a Script component that splits
    data in the lookup column on the ";#" delimiter to separate the ID value from the description.
    If you are replacing values in your data with the values that you look up in the list, then loading the changed data back into SharePoint, you only have to include the ID from the lookup column. SharePoint ignores the description if you include it."
    I am not sure if the above statement means that I should be passing the assocaited ID's other than the actual data into the SharePoint List destination. If that is the case, that will not really work as the lookup contains hundreds of rows. Not too mention
    I have several of these lookup column types pointing to several different lists.
    Any guidance in how I can put data into a SharePoint Lookup column type via Data Flow Task would be so much appreaciated.
    Thank you.
    My errors are:
    Error: 0x0 at Data Flow Task, SharePoint List Destination: Error on row ID="1": 0x1 - Unspecified error, such as too many items being updated at once (batch), or an invalid core field value.
    Error: 0xC0047062 at Data Flow Task, SharePoint List Destination [1903]: Microsoft.Samples.SqlServer.SSIS.SharePointListAdapters.PipelineProcessException: Errors detected in this component - see SSIS Errors at Microsoft.Samples.SqlServer.SSIS.SharePointListAdapters.SharePointListDestination.ProcessInput(Int32
    inputID, PipelineBuffer buffer) at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostProcessInput(IDTSManagedComponentWrapper100 wrapper, Int32 inputID, IDTSBuffer100 pDTSBuffer, IntPtr bufferWirePacket)
    Error: 0xC0047022 at Data Flow Task, SSIS.Pipeline: SSIS Error Code DTS_E_PROCESSINPUTFAILED. The ProcessInput method on component "SharePoint List Destination" (1903) failed with error code 0x80131500 while processing input "Component Input" (1912). The identified
    component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will

    I have found a solution to my problem and thought I would share it here in case there are others who are struggling with the above scenario. If you have a better way, I would love to hear about it since my way is a bit tedious.
    In a nutshell, in order to have an SSIS package put data from an OLE DB Source into a SharePoint List Destination Lookup Column, you need to pass the ID of the value that is being looked up, not the value that is in the “master” OLE DB source.
    Rough explanation, OLE DB Source value for column “Approp” is “4005” --> SQL matches “4005” with the ID in the new lookup table (“4005” = ID “5” as defined in the SharePoint lookup list) --> “5” gets passed into SharePoint List destination lookup
    column --> SharePoint displays “4005” and successfully links to the lookup list.
    Funny thing (not really), the error(s) outlined in my original post are not related in getting data into a SharePoint Lookup column as I am now successful in getting data into the system but I am still getting the same above error(s). I think it has to do
    with the ID column in the SharePoint list destination. What I can’t seem to figure out is why since I am not linking any data to that ID column (at least on new records). I am however linking it on Update and Delete and the errors mentioned above disappear
    and things work well.
    There are three tasks that need to get done in order to get data from SQL into a SharePoint lookup column assuming you have already set up your SharePoint lookup lists:
    1. Create new lookup table(s) in SQL that has the IDs from the SharePoint Lookup list and the values coming from the “master” OLD DB Source. You can see the ID column in SharePoint by toggling it on in a view.
    2. Create a SQL command that JOINs all the databases and tables so that the ID is passed and not the value into the SharePoint lookup column
    3. Change the “Data access mode” to “SQL Command” instead of the “Table or view” in the OLE DB Source and paste your command into the “SQL command text:” area.
    Other helpful info is that you may also need to add additional columns in the new lookup tables in SQL for the scenarios when the data is not unique. You can see this two times in my SQL command example for Units and JobTitles:
    SELECT
    pps.SSNm,
    pps.file_updated,
    pps.Employee_id,
    /* pps.CheckDistNm,*/
    Check_Distribution_id = COALESCE( d.ID, 0 ),
    pps.Job_nbr,
    pps.SeqNm,
    pps.action_eff_dt,
    Fund_id = COALESCE( f.id, 0 ),
    Appropriation_id = COALESCE( ap.id, 0 ),
    ActionCode_id = COALESCE( ac.id, 0 ),
    SpecNumber_id = COALESCE( jt.ID, 0 ),
    pps.Employee_id,
    /* pps.Fund,
    pps.Approp,
    pps.Unit,*/
    Unit_id = COALESCE( u.ID, 0 ),
    PosNm,
    PosCode,
    pps.LastName,
    pps.FirstName,
    pps.MI
    FROM
    x_PPS.aReportVw.pps_screens_active AS pps
    LEFT OUTER JOIN dbo.DistributionNumbers AS d ON
    pps.CheckDistNm = d.Check_Distribution
    LEFT OUTER JOIN dbo.Units AS u ON
    pps.Fund = u.Fund AND
    pps.Approp = u.Approp AND
    pps.Unit = u.Unit
    LEFT OUTER JOIN dbo.Appropriations AS ap ON
    pps.Approp = ap.Approp
    LEFT OUTER JOIN dbo.Funds AS f ON
    pps.Fund = f.Fund
    LEFT OUTER JOIN dbo.ActionCodes AS ac ON
    pps.ActionCode = ac.ActionCode
    LEFT OUTER JOIN dbo.JobTitles AS jt ON
    pps.SpecNm = jt.SpecNumber AND
    pps.JurisClass = jt.JurisClass

  • Is there a way to insert AFDs into a file upon export?

    I don't *think* this is possible, but I wanted to get confirmation.  Can Premiere insert an AFD flag to a file upon export?

    AFD = Active Format Description.  A flag contained in either a file's metadata or VANC that tells a receiver/IRD/set-top-box how to display an image.  For example, an HD file/stream may contain an AFD flag for 16:9 Letterbox, so if the file/stream is downconverted the receiver/IRD/set-top box will display the SD version letterboxed, as opposed to center cut, anamorphic, etc.
    I know there are a lot of hardware items that can insert AFDs (AJA FS1, FS2, etc) and dedicated transcoders (FlipFactory, Carbon Coder, Elemental) but it would seem like this is something an editor could do as well.  Maybe not, but I'd like to know for certain...

  • Is there any way to insert a pop up calender and tick boxes into pages on the ipad? And if not if I do it on a mac will the document work on pages on the ipad?

    Is there any way to insert a pop up calender and tick boxes into pages on the ipad? And if not if I do it on a mac will the document work on pages on the ipad? I'm trying to set up a document with quick check boxes to tick and a date to choose rather than type? I know it possible to do it on pages on a mac but i haven't been able to find anything on the ipad to create such a thing, and I don't know if it will work on the ipad if I create it on the mac

    RGA,
    Unfortunately, I do not believe that it is possible for a DAQ board to generate an AI Start Trigger from an analog trigger, but not be triggered itself until it receives a digital trigger.
    Spencer S.

  • Is there a way to insert a file (such as a PDF or Word doc) into a presentation?

    I have a few pdf "highlight sheets" that I'd like learners to be able to access and print out if they'd like, while watching the presentation.
    Is there a way to insert a file into the course? (For instance, if they click a certain button, the file would be downloaded to their computer?)
    Thanks,
    Inna

    While Michael's answer is technically correct, I never advise to use the browse button to locate the file. Doing so puts the link in peril as it typically creates an absolute path leading to the document you wish to link to. So use the button if you must, but before committing the link, ensure you remove any pathing information and leave behind only the document file name.
    Cheers... Rick

  • Is there a way to insert a Ai graphic into msWord and the graphic text be searchable in msWord?

    Is there a way to insert a Ai graphic into msWord and the graphic text still be searchable in msWord? I would like the text in my Ai graphic to be searchable once the graphic is inserted in msWord. I have tried different Ai exports, but all come into msWord as pictures. Is there a way to keep the Text Layer in my Ai file searchable in msWord.

    Which version of Illustrator are you using?
    Which version of Word are you using?
    What OS?
    Do you have a recent version of Acrobat?

  • Is there any way to insert a sharp into excel through OLE?

    Dear Expert,
    Is there any way to insert a sharp into excel through OLE ?If have , Would you please give a sample code?
    BR Edward

    Hi,
    Check this link..[OLE2, Excel, WinWord |http://translate.google.com/translate?hl=en&sl=ru&u=http://www.sapnet.ru/] you can find the code snippets.

  • Is there an easier way to insert date into an MS SQL Server database ?

    Is there an easier way to insert date into an MS SQL Server database without using the DateFormat?

    USe a PreparedStatement and then the method setDate (or setTimestamp )
    http://java.sun.com/docs/books/tutorial/jdbc/basics/prepared.html

  • Is there a way to enter data into a numbers cell on the screen directly, no keypad?

    Is there a way to enter data into a numbers cell on the screen directly, no keypad?
    Using a stylus or finger?

    No. You have to use the built-in keyboard or a bluetooth connected external keyboard.
     Cheers, Tom

  • Is there a way to insert a clickable hyperlink in the long text of an order

    Is there a way to insert a clickable hyperlink in the long text of an order header instead of using the attachment option?
    Thank
    JAM
    Edited by: Jimmy Mendoza on Dec 6, 2010 8:48 PM

    hi jimmy,
    You can very well add hyper links in the long text ,the long text should be in word format,suppose you want to use www.google.com you can type this and when click on it,it will take you to the website.
    Regarding objects sap has not given this facility to add an attachment,for this you can use DMS functionality.

  • HT2729 Is there a way to store videos into a separate album right after you shoot it on iPhone camera?

    Is there a way to store videos into a separate album right after you shoot it on iPhone camera?
    Finding videos in iPhone photo album requiers you to search through everything on your album. Is there a way to create separate video album or have them automatically save to a dedicated video album?
    It's a pain finding videos when you use the camera so much and as it is I'm constantly organizing the photos.

    Not even an app that might do this?

  • I apparently have 3 apple IDs, and it's making it challenging to set up iCloud. Is there a way to combine them into the one I actually use?

    I apparently have 3 apple IDs, and it's making it challenging to set up iCloud. Is there a way to combine them into the one I actually use?

    You can't combine or merge iCloud IDs, but you can migrate the iCloud data from one account to another if you wanted to move it to a different ID.

  • Is there a way to download data into CSV format?

    Is there a way to download data into CSV format?
    I can't do this using delimiter as ',' because user wants the decimal format in the ','s only.
    Any suggestions?

    go through this link...
    Download CSV file in presentation server through FM GUI_DOWNLOAD
    Re: how to create a CSV file
    type-pools:TRUXS.
    data: begin of itab occurs 0,
          vbeln like vbap-vbeln,
          posnr like vbap-posnr,
          end of itab.
    data:  itab1 type TRUXS_T_TEXT_DATA.
      select vbeln
             posnr
             up to 10 rows
             from vbap
             into table itab.
    CALL FUNCTION 'SAP_CONVERT_TO_CSV_FORMAT'
    EXPORTING
       I_FIELD_SEPERATOR          = ','
      TABLES
        I_TAB_SAP_DATA             = itab
    CHANGING
       I_TAB_CONVERTED_DATA       =  itab1
    EXCEPTIONS
       CONVERSION_FAILED          = 1
       OTHERS                     = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
       CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename = 'C:TEMPtest.TXT'
        TABLES
          data_tab = itab1
        EXCEPTIONS
          OTHERS   = 1.

  • Is there a way of merging photos into one event on ipad mini without syncing from PC ?

    is there a way of merging photos into one event on ipad mini without syncing from PC ?

    Unfortunately cutting and pasting doesn't work.  The margins are so different for each document as the first document is a standard report with the text centered on the page while the second document is in the form of a letter that is off center toward the right side of the page.  Cutting and pasting either one into the other (I've tried both ways) alters both documents in a way that causes the images, quotes, etc that are interspersed throughout each of them to show up in the wrong place (and they cannot be moved to the correct location due to the differences in margin. 
    They really need to simply be placed end to end rather than trying to combine them into one.  This is apparently a simple thing with Pages on the Mac itself but it does not appear to be as simple with the iPad app.  Thanks anyway for your help.
    John

Maybe you are looking for