Tuesday 17 May 2011

Swing vs. ADF UI components

I am trying to build a small application to help the voting system for contests at ROMANIAN HAIKU,  a yahoo group dedicated to Japanese short-poem writers that I have recently joined.

I am planning to develop two versions of the application, at first using Swing, and then ADF UI components, in order to be able to compare them and draw some useful conclusions. (I already feel that the central point might be the fact that most of the Swing API is not thread safe.)

I hope this task I have set for myself to result in an article that I will publish here, dedicated to a friend that I have recently disappointed in a discussion over Swing. (Please forgive me...)

As a starting point I shall use this example of displaying and editing table data with JTable:
http://download.oracle.com/javase/tutorial/uiswing/components/table.html

Happy programming!

6 comments:

javaGirl said...

I have only opened JDeveloper to start working, and I already have a question: what kind of application am I going to develop? A Fusion Web Application(ADF), a Java Desktop Application, a Java EE Web Application or an ADF Java Desktop Application? I guess I'll begin with a Fusion Web Application, hopefully I won't have to write any single line of code :)

javaGirl said...

"A journey of a thousand miles begins with a single step." (Lao-tzu)


https://profiles.google.com/Cristina.Fierbinteanu/posts/bDLn5tgPLG7

javaGirl said...
This comment has been removed by the author.
javaGirl said...
This comment has been removed by the author.
javaGirl said...

Refashioned database diagram:

https://profiles.google.com/Cristina.Fierbinteanu/posts/7oFz1RyD75r

javaGirl said...

Script to generate tables:

ALTER TABLE VOTES
DROP CONSTRAINT VOTES_AUTHORS_FK1;

ALTER TABLE VOTES
DROP CONSTRAINT VOTES_ENTRIES_FK1;

ALTER TABLE ENTRIES
DROP CONSTRAINT ENTRIES_AUTHORS_FK1;

DROP TABLE VOTES;

DROP TABLE AUTHORS;

DROP TABLE ENTRIES;

CREATE TABLE VOTES
(
WHO NUMBER NOT NULL
, HAIKU_ID NUMBER NOT NULL
, GRADE NUMBER
, CONSTRAINT VOTES_PK PRIMARY KEY
(
WHO
, HAIKU_ID
)
ENABLE
);

CREATE TABLE AUTHORS
(
AUTHORID NUMBER NOT NULL
, NAME VARCHAR2(30 CHAR)
, CONSTRAINT AUTHORS_PK PRIMARY KEY
(
AUTHORID
)
ENABLE
);

CREATE TABLE ENTRIES
(
AUTHOR NUMBER
, POEM_NUMBER NUMBER NOT NULL
, POEM CLOB
, CONSTRAINT ENTRIES_PK PRIMARY KEY
(
POEM_NUMBER
)
ENABLE
);

ALTER TABLE VOTES
ADD CONSTRAINT VOTES_AUTHORS_FK1 FOREIGN KEY
(
WHO
)
REFERENCES AUTHORS
(
AUTHORID
)
ENABLE;

ALTER TABLE VOTES
ADD CONSTRAINT VOTES_ENTRIES_FK1 FOREIGN KEY
(
HAIKU_ID
)
REFERENCES ENTRIES
(
POEM_NUMBER
)
ENABLE;

ALTER TABLE ENTRIES
ADD CONSTRAINT ENTRIES_AUTHORS_FK1 FOREIGN KEY
(
AUTHOR
)
REFERENCES AUTHORS
(
AUTHORID
)
ENABLE;