How to set data in rtf document?

Hi friends,
I have a rtf document can anyone suggest how to set data in cells of an rtf document?Is there any way?
Thanks in advance..
Regards ,
Soumyanil

Convert the resultSet from the db to a Object[][], let's call it result.
Then create a JTable (jTable1).
On the JTable you need to define the headers, and the data itself.
You can get the headers from ResultSetMetaData. Convert these to an array again (headers).
Now use these methods to create a model and set the model of the JTable.
Model model =  new DefaultTableModel(result, headers);
jTable1.setModel(model);That's about the basics.
If you need more info, use at the tutorial at sun's homepage.
How to use Tables:
http://java.sun.com/docs/books/tutorial/uiswing/components/table.html

Similar Messages

  • How to set date according to hjrah calender : nls_calender='English Hijrah

    Hello frnds
    how to set dates according to "English Hijrah".
    I have set my database nls_calender='English Hijrah' ,
    as many people aware that Hijrah dates are depend on moon ,
    so I want to know how to set the calender for next month date in the database according to "English Hijrah"
    I have set my database calender like this :
    Example 3-17 NLS_CALENDAR='English Hijrah'
    Set NLS_CALENDAR to English Hijrah.
    SQL> ALTER SESSION SET NLS_CALENDAR='English Hijrah';
    SELECT SYSDATE FROM DUAL;
    You should see output similar to the following:
    SYSDATE
    24 Ramadan 1430
    now I want to set the next month calender ...
    I think my question is litte bit confusing

    my db version 10.2.0.3
    and above metalink id 121061.1 , I have tried from this document , but the change is not effected ,
    the steps what I have down ;
    1) shutdown the database
    2)$oracle_home/nls/lxecal.nlt
    i have created new file , and the contents is: syntax or algorithm
    DEFINE calendar
    calendar_name="English Hijrah"
    DEFINE calendar_deviation
    deviation_data= {
              <"MAY-30-2009 ad">:11
    ENDDEFINE calendar_deviation
    ENDDEFINE calendar
    note: i have to subract 1 day from current month
    3) run the file
    $ lxegen
    4) sql>startup
    5) sql>ALTER SESSION SET NLS_CALENDAR='English Hijrah';
    6) sql>select sysdate+2 from dual;
    SYSDATE+2
    30 Jamada El Oula 1430
    but my expected output should be like this
    SYSDATE+2
    01 Jamada El Thaniah 1430
    note: that is after 2 days from today I need 1 st of next month , but its showing 30 th of present month , bcoz according to arabic month , present month is for 29 days only...

  • How to set date and time on apple tv

    how to set date and time on apple tv

    Assuming this is not the first time you have used your Apple TV
        1.    You might try restarting the Apple TV by removing ALL the cables for 30 seconds.
        2.    Also try restarting the router.
        3.    If the problem persists, try a restore, you may want to try the previous procedures several times before doing this.
    If this is a new Apple TV, it may also be that your network router is not allowing access to the timeserver, check that your router allows access over port 123.

  • How to set parameter in rtf template

    Hi,
    I've created a data model query using a parameter in BI Publisher Enterprise. When I'm showing the data I'm first ask for the parameter value.
    Now I want to create a rtf template in BI Publisher Desktop. What do I have to do that the user can set the parameter and then see the result? So how to set the parameter in my query?
    Thanks
    chrissy

    Hey Chrissy... i am realy sorry, i have guided u in the wrong way...
    Above which i have explained was about Variable....
    To test passing a parameter value, ff you are using the:
    XML Publisher Runner – on the Setting tab enter a new line containing:
    Name: xslt. InvThresh
    Value: 1000
    Template Builder
    In the config file under <<TEMPLATE_BUILDER_HOME>>/config enter under the Properties section:
    <property name="xslt.InvThresh">1000</property>
    <xsl:param name="InvThresh" select="0" xdofo:ctx="begin"/>
    InvoiceNumber     Inovice Amount
    Grp: Invoice13222-2     $100.00EFE
    Grp: Invoice= <?for-each:G_INVOICE_NUM?><?if:ACCTD_AMT>$InvThresh?>
    13222-2 = <?INVOICE_NUM?>
    $100.00= <?ACCTD_AMT?>
    EFE = <?end if?><?end for-each?>
    Hope this will help u out....
    sorry for tht .....
    Thanks
    Praveen Gollu.

  • How to set Data Subsetting Parameters in MOBILE SERVER

    Hello.
    How can I set data subsetting parameters in Mobile Server with patch 5.0.2.10.0 NLS.
    From Mobile Server "Control Center" -> "Applications" it's not appears at left screen the following field:
    * Data Subsetting
    * Registry
    * Access
    * Files
    The browser appears this error message:
    "http://120.0.0.1:2000/webtogo/admin/console/apppropinfo?applicationvp=%2FMyApp"
    Have you any idea for this problem?
    Thanks All.

    Thanks Oliver,
    I have to go in control center in "applications tab" then i have the list of application and i edit one of them, on the left clic Data Subsetting it's not appears.
    The following it not appears:
    * Data Subsetting
    * Registry
    * Access
    * Files
    The browser (internet explorer) appears (at buttom on the left browser) this error message:
    "error http://127.0.0.1:2000/webtogo/admin/console/apppropinfo?applicationvp=%2FMyApp missing link".
    Whereas (Oliver's solution) in Mobile Server "Control Center" -> "Users Tabs"
    i have the list of users go and i edit one of them, on the left clic Data Subsetting then clic on the right pan platform and then i see but not parameter are definited.
    Help me please.

  • How to set date formate dd/mm/yyyy from portal.

    Dear Experts,
    We are implementing ESS/MSS, my query is under ESS applications, date format is showing mm/dd/yyyy, then iam trying to change  user language is English (United Kingdom), from portal end, then its showing dd/mm/yyyy.
    My query is that is there any other way to change date format and how to set user language is English( united Kingdom) for mass users.
    Thanks in advance,
    Regards,
    Mahee.

    Hi,
    Iam trying to upload below format..for mass users....
    [User]
    UID=<employeeid>
    Password=init@123
    FIRST_NAME=xxx
    LAST_NAME=xxx
    group=xxxx
    Language=en_GB
    [User]
    by changing launguage = English (United Kingdom),Now I can able see the require format...dd/mm/yyyy.
    Thanks and Regards,
    Mahee.

  • How to set Date in RFC call.

    Hi,
    I am trying to set date in structure when calling RFC.
    ICall = function.getImportParameterList();
    ICall.getStructure("IORDER").setValue(eDate,"EDATE");
    EDATE is date field in Structure in RFC with data type "D" and it is taking date in "dd.mm.yyyy"; formate.
    I am setting date  "dd.mm.yyyy"; in string format with eDate variable and it is throwing error.
    Can any one tell me How I can set date for "EDATE" field in proper format.
    Can I do JCO.TYPE_DATE date1 = new java.util.Date();
    And How I can convert date in acceptable format "dd.mm.yyyy"; for RFC.
    Thanks for your help
    Ashish

    Hi Sateesh,
    Thanks for your Answer.
    I used java.util.date and it works fine.
    Icall.getStructure("IOrder").setValue(new java.util.date(), "EDATE")
    I came to know that java date variabel can be passed without any extra conversion to ABAP type D variable .
    Is it OK? As I am setting  java date variable directly to ABAP type d variable in RFC.
    I have awarded you points for very helpful answer.
    Thanks.
    Ashish.

  • How to set  Date in input field by hard coding in application

    Hi all,
    1.I have to make a date(its my choice to set the date) to appear in input field which is date type.
    2.How to compare two numbers of type decimal. for example greatest of two numbers
    urgent requirement

    Hi
    Check the http://java.sun.com/j2se/1.4.2/docs/api/java/sql/Date.html
    http://java.sun.com/j2se/1.4.2/docs/api/java/util/Calendar.html
    Sample Code
    Date now = new Date();
          DateFormat df = DateFormat.getDateInstance();
          String s = df.format(now);
          System.out.println("Today is " + s);
    java.sql.Date descends from java.util.Date, but uses only the year, month and day values. There are two methods to create a Date object. The first uses a Calendar object, setting the year, month and day portions to the desired values. The hour, minute, second and millisecond values must be set to zero. At that point, Calendar.getTime().getTime() is invoked to get the java.util.Date milliseconds. That value is then passed to a java.sql.Date constructor:
        Calendar cal = Calendar.getInstance();
        // set Date portion to January 1, 1970
        cal.set( cal.YEAR, 1970 );
        cal.set( cal.MONTH, cal.JANUARY );
        cal.set( cal.DATE, 1 );
        cal.set( cal.HOUR_OF_DAY, 0 );
        cal.set( cal.MINUTE, 0 );
        cal.set( cal.SECOND, 0 );
        cal.set( cal.MILLISECOND, 0 );
        java.sql.Date jsqlD =
           new java.sql.Date( cal.getTime().getTime() );
    The second method is java.sql.Date's valueOf method. valueOf() accepts a String, which must be the date in JDBC time escape format - "yyyy-mm-dd". For example,
        java.sql.Date jsqlD = java.sql.Date.valueOf( "2010-01-31" );
    creates a Date object representing January 31, 2010. To use this method with a Calendar object, use:
        java.sql.Date jsqlD = java.sql.Date.valueOf(
                cal.get(cal.YEAR) + ":" +
                cal.get(cal.MONTH) + ":" +
                cal.get(cal.DATE) );
    which produces a Date object with the same value as the first example.
    Regards
    Ayyapparaj

  • How to construct checkbox in rtf document using iText?

    Hi fiends
    I am developing a rtf document usng iText api ,I am facing problem when i want to draw a check box in the document so is there any way using iText only to draw a checkbox in rtf document?Or iText doesn't allow construct checkbox?please suggest.An example will be appreciated.Thanks in advance.
    Regards soumyanil

    For your kind information this is a site that provides support for JAVA programming and JAVA Servlets related questions.
    You need some information regarding a third party API, so please dont hesitate to contact your vendor.
    The vendor URL: http://itextdocs.lowagie.com/
    The tutorial you need to learn before starting iText is http://itextdocs.lowagie.com/tutorial/
    All the best!

  • How to set Date format and how to edit

    Hi all,
    I am supposed to select a date from calendar and put the date in a textfield in the format dd/mm/yyyy.
    Getting date from the calendar and putting it in textfield is not a big problem.
    Here I have to edit the date in the text field in such a way that clicking with a mouse on "dd" in the textfield dd part of the textfield should get selected and I should be able to edit date without affecting any other part in the textfield.Similarly clicking on the "mm" of text field,the mm part should get selected and i should be able to edit month without affecting other parts of the textfield and similarly the year field also.Here I should not be able to edit the "/" which is in between dd and mm, mm and yyyy.Is there any date format which i can set to textfield to achieve this.
    pls help me.
    this is urgent
    Thanx

    Can any one tell me how to make part of contents of textbox non editable and rest of the text editable???
    help me pls
    In the above dd/mm/yyyy format, "/" should be non editable and rest of the fields should be editable but can't be deleted.
    is it possible to achieve this...
    Pls respond............

  • How to set date format dd.MM.yy for chart time axis

    Is it possible to set default date format dd.MM.yy instead of MM/dd/yy in Flex charts without using label function ?
    In this case we do not know beforehand the length of the time span; it can be minutes, days or weeks.
    Setting locales in compiler options or locale settings for application seems not having any effect.

    For example
    - mx:Barchar
    - if time span is 4 minutes; time axis format is HH:mm and shows 10:00, 10:01, 10:02, 10:03 ; *this correct*
    - if time span is 5 days; time labels are automatically in MM/dd/yy format; question is how to change this automation
    to format dd.MM.yy
    - how to do this *without* dateformatter and *without* coding "if time span is is longer than day nyt less than week then use dd.MM.yy format" ?

  • How to Sort Date in RTF template

    Hi
    in my report i have name, date_arrival, Time_arrival, Hotel. I created a report grouped by hotel. On the screen it's working OK. when I print yusing RTF created template, the date is not sorted as expected.
    Thanks,
    Ribhi

    I have read much about date formating. I think some of the functionality in to_chat and to_date is changing between versions. I don't know that this is the simplest way, but it is the only way that worked for me:
    <?sort: xdoxslt:format_date (ssPrimaryRevenueCloseDate,’ yyyyMMDD’, ’MM/DD/yyyy’,’Europe/London’,’GMT’)?>
    I do not understand why this function is not in the documentation.
    Edited by: user10189185 on 17-Mar-2009 05:01

  • How to insert hyperlinks in RTF document shown in JEditorPane?

    This is a compound question so bear with me on this one :)
    What I need is to insert an hyperlink in a JEditorPane; Store it as RTF code; Retrieve it; Show it and click on it to go the the destination.
    1) So, first question, is there some method to automatically add the hyperlink and will it be saved in RTF with RTFEditorKit? (I'm actually using AdvancedRTFEditorKit but an answer to either will be enough)
    2) I tried a method that adds what appears as a link but the document that is stored doesn't have the necessary RTF codes, only the formatting that makes it look like a link. I also checked the actual RTF codes I'd need to add and they seem easy to do. So, is there a way to add the actual underlying RTF codes to the document while it's in the JEditorPane?
    I know the question(s) isn't too specific, if you can shed some light over the whole thing and point me in the right direction, it'd be great!

    Just a follow up to my own question. I found a way to answer my question 2) and I'm now storing the rtf code for hyperlinks. Now, when I show the document in JEditorPane with RTFEditorKit, I get the name of the hyperlink with no formatting indicating that it's a hyperlink.
    Example. The link "http://www.google.com" with the name "Google", only shows "Google" in plain text.
    Is it because the components I'm using don't support hyperlinks from RTF files even though they're supported from HTML files?
    Is there any way you can see this working? Is it possible to include something inside the JEditorPane that the user can click, instead of the hyperlink?

  • How to set date field in custom form to default to {NOW} plus one year.

    I am developing a subscription site. I have the custom form for inputing a users information. I have the subscribe date set up as a default field of {NOW} that works great.
    Now I need the renewal field to default to exactly one year from the subscribe date.
    Any help would definitely be appreciated.
    thanks in advance

    PHP? http://us2.php.net/manual/en/function.date-modify.php
    Alec Fehl, MCSE, A+, ACE, ACI
    Adobe Community Expert
    AUTHOR:
    Microsoft Office 2007 PowerPoint: Comprehensive Course (Labyrinth
    Publications)
    Welcome to Web Design and HTML (Labyrinth Publications)
    CO-AUTHOR:
    Microsoft Office 2007: Essentials (Labyrinth Publications)
    Computer Concepts and Vista (Labyrinth Publications)
    Mike Meyers' A+ Guide to Managing and Troubleshooting PCs (McGraw-Hill)
    Internet Systems and Applications (EMC Paradigm)

  • How to set "Date Modified" as default tab in Open File window

    Photoshop CS5.1
    When I click on Open File, the window that comes up has several default columns (FileName, Date, Size, etc).
    I can right-click on the tab bar and add "Date Modified" to the tabs, but I would like to have "Date Modified" be a default column whenever I open the file selector (and no matter which folder I open up).
    I cannot find a way to do this. I want to know the last date I modified a file, not when it was created.
    Is there a way to universally set this column as a default?

    Date modified always shows for me in Details view.
    I believe what columns are showing has to do with what columns you've set in Windows Explorer...
    Here's an excerpt paraphrased from my Configure the Windows 7 "To Work" Options book that may cover what you need:
    Open Windows Explorer...
    Navigate to a folder of the type you want to see (e.g., one containing your Photoshop images) and set Details view. 
    Make the window look the way you'd like future Explorer windows to look.  Reorganize Details view columns, e.g., to Name, Size, Type, Date Created, Date Modified, Attributes, etc. and size them so they fit.
    Choose Tools - Folder options, then click the View tab.
    Click [ Apply to Folders ] to apply the above settings to all folders.
    [ OK ] to exit.
    Hope this helps. 
    If the Date modified still doesn't stick for you, there are some other things I've done (and documented) to tweak the configuration of my systems that may help make my seeing the columns being set as shown in the attached image when I choose File - Open in Photoshop.
    -Noel

Maybe you are looking for

  • Ram issues in Macbook Pro

    Hi, I have had my Macbook Pro for about 2 years now and decided to upgrade the ram. It has a 2.16ghz processor and 1gb ram from apple. I decided to put 2 2gb sticks in (I know it will only read 3gb, just didnt want to risk reducing preformance by usi

  • Toshiba 40TL963 - no 3D possible

    Just tried my Tv to play 3d movie and cant get any setting to show up when i press the "quick menu" option on the remote. Been on the phone to Toshshiba support and reset TV but still no luck. The 3d player works fine as we have tested this on anothe

  • Logistics Invoice Verification (LIV) -IR before GR

    Hi All, We're going to post an invoice for a certain Purchase Order (PO) where no goods receipts had been posted yet. Is there any anyone who knows what tolerance key and system message should I need to configured in order for the system to check the

  • KERNEL PANIC [solved]

    After pacman -Syu (I already install some things before that)I get a: Kernel panic -not syncing:VFS:Unable to mount root fs on unnown -block(0,0) here is the fstab of my working mandriva;the root for arch is hda9 # This file is edited by fstab-sync -

  • Essbase unix file system best practice

    Is there such thing in essbase as storing files in different file system to avoid i/o contention? Like for example in Oracle, it is best practice to store index files and data files indifferent location to avoid i/o contention. If everything in essba