Can Java create HTML tables without running a web server?

Hello,
I would like to know if Java can output data into a simple HTML-like table without having to run a web server or jsp etc.
I want my program to access a database and print records in HTML-like table cells.
It is actually for an events calendar program, where each event would be printed in a cell (date). There would be a variable number of events per cell (date), with each one being editable.
I have seen various "web" calendars like this but I want to make it a desktop application so that it is not dependant on the functioning (or non-functioning!) of a web server.
Can Java do this? I would settle for any type of prewritten table creator (not necessarily HTML) but I do not want Excel type tables or a table where entries must be GUI buttons, such as in Outlook.
Thank you very much for any idea you may have,
Cat

Thank you for the replies :)
I found something with Jeditorpane (JTextComponent and HTML Text Display) at
http://msp-of.de/oreilly/books/javaenterprise/jfc/ch03_21.htm
which looks like what I want. It allows hyperlinks within the table cells and I'm not sure if JTable allows for that. Also, I will want multiple lines and even images (eg moon phases for the calendar) in each cell. I ran the example above and it works great. And yes, it makes use of the HyperlinkListener.
I don't want to create an HTML file for those who suggested that. I just want the flexibility of HTML formatting withing my standalone Java application.
I am still not sure why everyone is suggesting JTable though :) So I will look at it some more. The link above also has a turorial on JTable and does say its faster that JEditor pane because it doesn't have to do any HTML rendering. But it doesn't look to me like it can really ever look like a calendar.....
Thank you again! Being a total Java novice, I am very impressed with how easy JEditorpane is.
Cat

Similar Messages

  • Can I create a table in a procedure submitted to job queue?

    I have created a package (with AUTHID CURRENT_USER) where some of the procedures create temporary tables to facilitate processing. These procedures run just fine when executed directly from within an anonymous block at the SQL*PLUS level. However, when I submit the procedures to the job queue (via DBMS_JOB.SUBMIT), the job is submitted successfully but fails when run. Investigating the Alert Log shows an error of insufficient privilege on the CREATE TABLE command in the procedure.
    QUESTION:
    Can I create a table from a procedure running in the Job Queue? If so, then how to get it to work? Does the job run in a different environment that needs Create Table privileges set to my schema?
    Thanks for any info you can provide.
    John

    FYI: Found the problem. In the Administrator's Guide (of course not in the supplied packages documentation about DBMS_JOB) I found:
    "How Jobs Execute
    SNP background processes execute jobs. To execute a job, the process creates a session to run the job.
    When an SNP process runs a job, the job is run in the same environment in which it was submitted and with the owner's default privileges.
    When you force a job to run using the procedure DBMS_JOB.RUN, the job is run by your user process. When your user process runs a job, it is run with your default privileges only. Privileges granted to you through roles are unavailable."
    And of course we had set up our users to get all privileges through Roles, so CREATE TABLE wasn't one of my DEFAULT PRIVILEGES!
    It sure would be nice if Oracle documentation could get its act together and provide ALL information about a topic in a logical place. The effort to find the information about privileges occurred after it took me 1/2 hour to figure out why my submissions were failing - I didn't have the ';' included in the quoted string for the procedure to be called - which I only figured out after looking at the code for DBMS_JOB where it made the note to make sure you include the ';'. Wouldn't it be good to have that MINOR DETAIL mentioned in the description of DBMS_JOB.SUBMIT?????

  • How Can I create plan Table

    Dear Experts,
    How Can I create plan Table.
    How can i read it?

    run UTLXPLAN.SQL
    under
    $ORACLE_HOME/rdbms/admin/
    check this link for detailed information
    http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14211/ex_plan.htm#i19260

  • I just bought a new Ipad mini a while ago, a created a new apple ID "***************" , I can't download anything on apps store, it keeps on asking for a credit card but I don't have one. Can I create an account without a credit card?

    I just bought a new Ipad mini a while ago, and created a new apple ID *********** , I can't download anything on apps store, it keeps on asking for a credit card but I don't have one. Can I create an account without a credit card?
    <Edited by Host>

    Read this:
    iTunes Store: Accepted forms of payment
    It is the same for the app store. You are required to have some sort of payment method in the record.
    Barry

  • No data media can be created for the proposal run - Bacs Payment

    Hi,
    When i schedule program RFFOGB_T for bacs payment and select proposal run only i get the following error "No data media can be created for the proposal run". But when i execute the program with out selecting the check box " Proposal run only...a file was getting generated...Could any onle pls help me resolve this problem.
    With Best Regards,
    M.Naveen Kumar

    The post has been answered

  • HT5114 How can I create multiple accounts without the necessity to create multiple email addresses?  I now have 2 i-phones (mine and my wife's#, 1 i-pad #mine#, 1 i-pad mini #10 year old's#, and 1 I-pod touch #11 year old's).  I would like to maintain pur

    How can I create multiple accounts without the necessity to create multiple email addresses?  I now have 2 i-phones (mine and my wife's), 1 i-pad (mine), 1 i-pad mini (10 year old's), and 1 I-pod touch (11 year old's).  I would like to maintain purchase control, but would like to be able to have a separate account ID for each person.  Is that possible?

    Each email address can only be on one iTunes account, and all purchases are tied to the account that buys them. If you want to have separate iTunes accounts on each then you will need separate email accounts for each iTunes account

  • Can I create a table in my form?

    Our need our teachers to fill out a field trip form using a table format?
    Can I create a table in my form?
    and if yes, how?
    thank you
    Need it to look like this:
    DATE
    TIME
    To start/finish
    Name of Program  
    TEACHER’S
    NAME
    TEACHER’S EMAIL
    # OF
    STUDENTS
    Setup in
    Room #
    02-07-14
    9:20-10:35
    Soil Rocks
    Juday
    20
    118
    02-07-14
    10:50-12:05
    Soil Rocks
    Guild
    20
    118
    02-07-14
    12:45-2:00
    Soil Rocks
    Neptune
    20
    118
    02-07-14
    2:15-3:30
    Soil Rocks
    Webb
    20
    118

    Yes and yes.
    If you have questions about creating the PDF form, you can use the Acrobat Forms forum: http://forums.adobe.com/community/acrobat/forms?view=discussions

  • Can we create internal table dynamically ? how?

    hi to all experts,
                           can we create internal table dynamically ? how?plz explain me with an example.Anybody with good example  will be rewarded.it was asked in an interview what the answer for it

    HI
    Yes you can create
    see this
    /people/rich.heilman2/blog/2005/07/27/dynamic-internal-tables-and-structures--abap
    JUST USE THIS CODE AND DO THE ESSENTIAL CHANGES ACCORDING TO YOU
    STEP: 1 - get backend field catalog (currently displayed alv)
    CLEAR: tl_fieldcatalog. REFRESH: tl_fieldcatalog.
    CALL METHOD w_grid->get_backend_fieldcatalog
    IMPORTING
    et_fieldcatalog = tl_fieldcatalog.
    STEP: 2 - create a new fieldcatalog for dynamic internal table
    CLEAR: sl_fieldcatalog.
    CLEAR: t_outtab_fieldname. REFRESH: t_outtab_fieldname.
    CLEAR: tl_fieldcatalog_new. REFRESH: tl_fieldcatalog_new.
    CLEAR: t_download_fieldname. REFRESH: t_download_fieldname.
    CLEAR: t_download_fieldheading. REFRESH: t_download_fieldheading.
    LOOP AT tl_fieldcatalog INTO sl_fieldcatalog.
    STEP: 2.1 - populate data in T_OUTTAB_FIELDNAME
    APPEND sl_fieldcatalog-fieldname TO t_outtab_fieldname.
    STEP: 2.2 - populate TL_FIELDCATALOG_NEW & T_DOWNLOAD_FIELDNAME
    IF sl_fieldcatalog-no_out EQ ''.
    IF sl_fieldcatalog-fieldname NE 'STATUS'
    OR sl_fieldcatalog-fieldname NE 'MESG_STATUS'
    OR sl_fieldcatalog-fieldname NE 'ZLOCK'
    OR sl_fieldcatalog-fieldname NE 'T_PLANT'
    OR sl_fieldcatalog-fieldname NE 'T_CSR'.
    If field is COMM_PLANT, change its length
    IF sl_fieldcatalog-fieldname EQ 'COMM_PLANT'.
    sl_fieldcatalog-outputlen = 1800.
    sl_fieldcatalog-intlen = 1800.
    sl_fieldcatalog-dd_outlen = 1800.
    ENDIF. "comm_plant
    sl_fieldcatalog_new = sl_fieldcatalog.
    APPEND sl_fieldcatalog_new TO tl_fieldcatalog_new.
    APPEND sl_fieldcatalog-fieldname TO t_download_fieldname.
    APPEND sl_fieldcatalog-scrtext_l TO t_download_fieldheading.
    CLEAR: sl_fieldcatalog, sl_fieldcatalog_new.
    ENDIF.
    ENDIF.
    ENDLOOP.
    STEP: 3 - create dynamic internal table
    FREE: ref_download.
    CALL METHOD cl_alv_table_create=>create_dynamic_table
    EXPORTING
    I_STYLE_TABLE =
    it_fieldcatalog = tl_fieldcatalog_new
    IMPORTING
    ep_table = ref_download
    E_STYLE_FNAME =
    EXCEPTIONS
    generate_subpool_dir_full = 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.
    ASSIGN ref_download->* TO <ft_download>.
    CREATE DATA ref_wa LIKE LINE OF <ft_download>.
    ASSIGN ref_wa->* TO <fs_download>.
    STEP: 4 - populate data in dynamic internal table
    LOOP AT t_outtab INTO wa_outtab.
    LOOP AT t_download_fieldname.
    ASSIGN COMPONENT t_download_fieldname OF STRUCTURE
    <fs_download> TO <fs_download_field>.
    IF t_download_fieldname-field EQ 'COMM_PLANT'.
    STEP: 4.1 - get long text from database table
    CLEAR: wal_table.
    SELECT SINGLE * FROM zshaven_plnt_txt
    INTO wal_table
    WHERE vbeln = wa_outtab-vbeln
    AND posnr = wa_outtab-posnr
    AND del_no = wa_outtab-del_no
    AND del_itm = wa_outtab-del_itm.
    IF sy-subrc EQ 0.
    STEP: 4.2 - break long-text into separate lines
    CLEAR: tl_text. REFRESH: tl_text.
    SPLIT wal_table-plant_comm
    AT '~'
    INTO TABLE tl_text.
    STEP: 4.3 - Combine these separate lines with space in
    between two lines
    CLEAR: wal_text, final_text.
    LOOP AT tl_text INTO wal_text.
    IF final_text IS INITIAL.
    final_text = wal_text.
    ELSE.
    CONCATENATE final_text '-' wal_text
    INTO final_text.
    REPLACE '-' WITH ' ' INTO final_text.
    ENDIF.
    ENDLOOP.
    STEP: 4.4 - move long text to work-area
    <fs_download_field> = final_text.
    ENDIF. "subrc
    ELSE. "t_download_fieldname
    READ TABLE t_outtab_fieldname
    WITH KEY field = t_download_fieldname-field.
    ASSIGN COMPONENT t_outtab_fieldname-field OF STRUCTURE
    wa_outtab TO <fs_outtab_field>.
    <fs_download_field> = <fs_outtab_field>.
    ENDIF.
    ENDLOOP.
    STEP: 4.5 - Move data from work-area to dynamic internal table
    APPEND <fs_download> TO <ft_download>.
    CLEAR: <fs_download>.
    ENDLOOP.
    STEP: 5 - download
    CALL FUNCTION 'DOWNLOAD'
    EXPORTING
    filename = 'C:\zshaven.xls'
    filetype = 'DAT'
    filetype_no_show = 'X'
    filetype_no_change = 'X'
    TABLES
    data_tab = <ft_download>
    fieldnames = t_download_fieldheading
    EXCEPTIONS
    invalid_filesize = 1
    invalid_table_width = 2
    invalid_type = 3
    no_batch = 4
    unknown_error = 5
    gui_refuse_filetransfer = 6
    customer_error = 7
    OTHERS = 8.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.

  • Can we create a table in temp tablespace?

    Hi Support ,
    I have confused about on point that Can we create a table in temp tablespace.
    thanks

    I so not think the question is so bad except that it was as suggested something you can determine for yourself in 20 seconds:
    > /
    create table mark (fld1 number) tablespace tmp
    ERROR at line 1:
    ORA-02195: Attempt to create PERMANENT object in a TEMPORARY tablespace
    Other database products allow users to create tables in the temporary tables such as SQL Server.  I just tested using SQL Server 2008 R2 and I could create a table in TEMPDB.
    SQL Server also creates temporary tables, create table #table_name, in TEMPDB.  You can see these objects while in use.
    IMHO -- Mark D Powell --

  • Can I create a table called user

    Dear buddies,
    Can I create a table called user in my database.
    Please guide me.
    Thanks in advance.
    Nith

    user645399 wrote:
    I was required to create one for some reasons by a vendor so that Oracle will work with their tool.
    This tells you more about the vendor than the vendor would like you to know ......
    Like the vendor that told me their product would work with an oracle database, but they preferred SQL Server because "oracle doesn't perform will with more than 5 concurrent connections". Fortunately we were still in product evaluation and I was able to get them cut from the short list.
    After seeing all your replies, now, I have contacted them asking for alternatives and explanations.
    Anyway, Thank You to everyone of you.
    Nith

  • Can we create Named instance without installing Default instance

    Hi experts,
    i'm new for sql dba,
    Can we create Named instance without installing Default instance
    Thanks in advance.
    Regards,
    Madhu

    Yes you can
    You can also have mutiliple instance in think max (16 instances) for différents versions of SQL server (2000, 2005, 2008 and 2012) in the same physical machine.

  • Can i create External Table dynamically

    Hi,
    Is it possible to create External Table dynamically ?
    I want to use the following dynamically to create External Table.
    1) fields
    2) field position
    3) file location
    Thanks

    The answer shouldn't be very different of already given answers in your Can i create external table dynamically? of the last month, is it ?
    And question is still same : why wanted such thing ?
    Nicolas.

  • Hi. How can I delete the table without deleting the content? My pages is 5.2.2.

    Hi. How can I delete the table without deleting the content? My pages version is 5.2.2. Thank you for your help.

    There is no convert Table to text capability in Pages v5.2.2, as there was in Pages ’09 v4.3.
    You can keep the table while making the table grid vanish, leaving the existing tabular text structure. Select the table, and under the Format panel > Table tab, the following settings will produce this output. If selected, you can refine its document placement in the Arrange tab.

  • Can i create apple id without use the credit card?

    can i create apple id without use the credit card?

    I'm getting the same thing. I created a new Apple ID via the Internet (appleid.apple.com) When I go to my device to try to use it, I have to review it first and in that process, I'm asked for a credit card or iTunes gift card. There is NO 'none' option.
    I work in a school district and we'd like employees to use their own apple ID for free apps which will allow them the freedom to explore apps without weighing down our tech dept with myriad requests for random apps. I deal with a broad demographic and many users are suspicious of putting personal credit card info on an Internet-based account.
    However, it appears they are locked out of the store unless they have some form of payment on file. Even if they enter a gift card, what happens when it's used up? Will they get locked out of the store if they don't have a balance?
    Anyone have a work around? If not ... APPLE Please update your support materials to explain this, or fix the bug.
    Thanks!

  • HT201359 How can I create apple Id without submitting credit card details

    How can I create apple Id without submitting credit card details

    There are instructions on this page for creating a new account withou giving a credit card number : http://support.apple.com/kb/HT2534 e.g. select a free app in the store and click on 'create Apple id' when 'buying' it

Maybe you are looking for

  • Help with test case

    Hi, I'm trying to produce a test case for a subtle problem, but can't get a simple one to work :-( I think I'm doing something wrong: Source: package kodo; import java.io.InputStream; import java.util.ArrayList; import java.util.Collection; import ja

  • Prob: Creating Image in memory and printing "hello" on it, then saving it.

    How can i create an Image instance in memory and then do a drawString "Hello" on it, then save it to disk. I'm not loading the image, i'm not displaying it onscreen.... It's all in memory. So i can't to createImage, like in an applet... or Window.cre

  • Preview Images for iPhoto Items Not Showing

    When cycling through my albums and slideshows I am not seeing the preview images to the left of the iPhoto titles. I tried rebuilding the iPhoto library using the Cmd-Opt keys when starting iPhoto and that still did not do it. Is there a preference s

  • CS Crashes While Saving

    There seems to be an incompatibility problem that causes PS CS to crash while saving under OSX 10.4.11. Crash reports say Exception: EXC_BAD_ACCESS (0x0001) Codes: KERN_INVALID_ADDRESS (0x0001) at 0xfffffff4 and strange folders ( ¬∂ßå∆∂´ ) are create

  • Sorting Objects Using Comparator

    Alright, I have an ArrayList of Audio Objects: public Audio(String title, String author, String genre, int year)           this.title = title;           this.author = author;           this.genre = genre;           this.year = year;      }Now, accord