Question about creating Forms in Java.

Hello , im new to Java , i find kinda weird how Java creates Forms , its pretty simple in Oracle Forms ,
why did Java designers make it this difficult ? do people say this is something bad about Java ?
when i learned about the Layout Managers that Java provides i found out how much code one have to write just to create a simple form ,my question to the experienced java developers : what do you do to create a form , do you hard code it ? , or do you use something like GUI Builder in an IDE like NetBeans for example? and is the code generated by this builder easy to deal with and modify ?
Thanks ....

HeavenBoy wrote:
Hello , im new to Java , i find kinda weird how Java creates Forms , its pretty simple in Oracle Forms ,
why did Java designers make it this difficult ? do people say this is something bad about Java ?Some Oracle Forms fans certainly do. But the truth is that Oracle Forms application tie down all the components in fixed pixels. The typical Swing form can be resized and can function at different screen resolutions. So, when designing a Java form, we don't tend to work on a fixed grid but define the sizes and positions relative to other components. What's more the interface between the form elements and the data is completely flexible, and flexibility means extra effort.
>
when i learned about the Layout Managers that Java provides i found out how much code one have to write just to create a simple form ,my question to the experienced java developers : what do you do to create a form , do you hard code it ? , or do you use something like GUI Builder in an IDE like NetBeans for example? and is the code generated by this builder easy to deal with and modify ?
Most I've tried have been a bit of a straitjacket, but I've recently been using the latest Netbeans offering and it's pretty good. I think the breakthrough was the introduction of the GroupLayout layout manager. This is a layout manager really designed for WYSIWYG form designers (pretty challenging to use hand coded).
The way these things work is that the class generated contains some methods which cannot be edited by hand, but you can add any amount of your own code without interfering with the generated code. You hook your own code snippets into the generated code, for example you can select a property of an object, say the model of a JTree, and select "user code", then type in an expression returning the TreeModel you want to use.
With listeners the designer will generate the method signature etc. but you can edit the body of the listener method.
However I would always recommend that you hand code a form or two before resorting to on of these editors because it's important you understand the code, even where a designer writes it.

Similar Messages

  • Question about Creating Forms in Acrobat 9 Pro

    I designed an invoice form to send to my clients that allows me to easily fill out form data and automatically email to my client. Everything works great, but when I send it, the form is still active and I want the fields to be closed for alteration. How can I make this happen?
    many thanks!

    What I would do is flatten the form, which converts the form fields to regular page contents so that they are no longer interactive. There are a number of ways to do this, including JavaScript, PDF Optimizer (Discard Objects > Flatten form fields), and Preflight (Flatten all form fields fixup).
    Edit: I did not see the previous responses when I posted this, due toforum wierdness, so sorry for the duplication.

  • Few common questions about Mobile Forms

    Hello, everyone!
    I have a few questions about mobile forms:
    Can a form be integrated with a portal, which is build NOT on Adobe CQ\AEM technology?
    I've created a form and loaded it to the server repository via Form Manager. Now I can access it in my browser like this:
    http://testlcserver:8080/lc/content/xfaforms/profiles/hrform.html?contentRoot=repository%3 A%2F%2F%2FApplications%2FTest%2F1.0&template=UberForm.xdp&dataRef=
    And the question is: what is the right way to share forms to users on a production environment (without integration in a portal pages on so on, let it be just a link to a form which users have to fill in)?  I mean, should it be the same link, or it is only for developers need and to share forms to users some other way must be used?

    For integrating on custom portal, you would need to integrate with form submit proxy for handling of submission as mentioned @ http://helpx.adobe.com/livecycle/help/mobile-forms/mobile-forms-service-proxy.html.
    As far as url of form is concerned, it’s really up you. You can choose to hide the request parameters as couple of other customers are doing. You can find more information about hiding form template and content root from request parameter @ http://blogs.adobe.com/foxes/hide-parameters-from-mobile-form-url/

  • A question about creating packages as local objects in ABAP

    Hi,
    I have a question about creating packages with SE80. Whenever I create a new package it is assigned a new transport request. After that, I can create new programs inside this package, and each time I can choose whether to assign the new program to a transport request or just save it as a local object (I often do this for test programs that I don't transport and I remove them once my tests have been done).
    What I would like to ask is that, is it possible to create a package (and not just programs inside a given package) as a local object? so that every new object created in this package will be considered as a local object?
    Thanks in advane,
    Kind Regards,
    Dariyoosh

    Thomas Zloch wrote:
    Please also check the F1 help for the package field e.g. in SE80, SAP standard is in range A-S and U-X, namespaces start with "/", so you should be save. I am using the T namespace for temporary stuff since a long time and did not have a problem so far.
    > Thomas
    >
    > P.S. this applies to the package name only, of course
    Thank you very much for this remark, I checked F1 help for the package field and in fact as you mentioned these ranges are for local objects.
    Once again, thank you very much for your help.
    Kind Regards,
    Dariyoosh

  • A question about creating READ ONLY users.

    Dear all,
    I have a question about read only user accounts and I would appreciate if you could kindly give me a hand. I have a schema named SCHEMA1. Whenever I want to connect by using sqlplus I run the following:
    sqlplus user1/[email protected] SCHEMA1.WORLD is the entry in the tnsnames.ora referring to the schema SCHEMA1.
    I need to create a read only user who is able to SELECT all tables and views created by user1 on SCHEMA1 (this user will not modifiy anything at all. The user is used only for a person using SQL queries to read data). for several tables I write the grants explicitly, for example:
    CREATE USER user2 IDENTIFIED BY user2;
    GRANT CREATE SESSION to user2;
    GRANT SELECT ON S001_COR_ECLASS TO user2;
    GRANT SELECT ON REF_ECLASS511 TO user2;Is there anyway to do the same thing but for all the tables (because there are a lot of tables and views)? Besides, even with these granted permissions when the user connects with SQL Developer to the database, he is not able to view the list of tables/views in SQL Developer GUI. What causes this problem?
    Thanks in advance,
    Dariyoosh

    Hello Dariyoosh,
    he is not able to view the list of tables/views in SQL Developer GUIyou can either go to "Other Users" - user1 - tables. There you see every table you have permission to select.
    Or you can create a synonym in schema2 for each table in schema1 and set a filter on the tables node of user2 "Include synonyms".
    Regards
    Marcus

  • Simple question about tabular forms: error in MRU

    hi to all,
    i write here to check if what i think about tabular forms is confirmed.
    If i build a master- detail or tabular form and the underlying table are modified, the page where the tabulare form is contained doesn't work anymore.
    if what i've written above is correct, is there a way to realign the fields of the tabular forms to the db fields and make my page work again without rebuilding all?
    Can i modify something, somewhere inside apex to make my page run again?
    The error i get (in italian / english)
    Error in mru internal routine: ORA-20001: Errore in MRU: riga= 0, ORA-20001: ORA-20001: La versione corrente dei dati nel database è cambiata da quando l'utente ha iniziato il processo di aggiornamento. checksum corrente = "ED73B05FA6016F8D5F3B4B5B69AF482D", checksum elementi = "CFD72DCC4221A340057D654B54EA7A04"., update "NEWPROJ"."CNT_VAL_SEG_DEMO" set "ID" = :b1, "FK_CNT" = :b2
    Means: The version of data in db (fields of the tables?) has changed since the user started the update process.
    By the way this sentence under my opinion can trick you as
    in italian 'La versione corrente dei dati nel database'
    can means both that data contained in tables have changed (dml error / process error / data the user see not are the real underlying data). Can mean as well the field definition is changed, however a more meaningful message in italian is: ' la definizione delle tabelle usate dall'oggetto tabular form é cambiata'.
    That translated in english is ' DDL of table/s used by tabular form has changed'.
    thanx a lot
    Message was edited by:
    Marcello Nocito

    HI Heinz,
    yes is now clear, however is a pity that a litte change in the query has a lot of
    implications: a change in the structure of DB means new feature / the data model is not alligned with current requirement. So usually (but not always) it means changing the SELECT as well.
    Such Apex is a Rad an impression is that if you build a complex forms with several linked reports / field and one day you have to change the query of the TABULAR FORM / MASTER DETAIL generated with report you get a lot of rebuilding.
    I think i will avoid the use of this 2 object in the future and use more htmldb.items in the select.
    bye bye

  • Question about creating objects in Forms 6i

    Hi,
    I'm trying to create by code dynamic items in a form, but I don't find the way to do it, or any tutorial in the internet.
    Taking a look at the Forms Help it says 'Once you create a data or control block, you can create items in that block at any time. Create items via the Object Navigator by inserting them under the desired block, or via the Layout Editor by drawing them on the desired canvas.'
    Is there a way to create items and assign them to datablocks by code? something like CREATE_ITEM?
    All I want is a button that inserts textboxes in a canvas, as many items as you want.
    Thank you in advance

    Hello,
    There is no Create_item() built-in to create item at runtime.
    You can create hiden item at design time then show them at runtime.
    Or you can use some java code to create component at runtime.
    Francois

  • Question about creating interactive PDF form

    Someone provided me a PDF brochure file that was converted from an image file and was asking if we could setup the form where it could be published online and some of the fields could be filled out on the form and submitted as a registration online (name, phone, etc).  I currently have Adobe Flash CS4, Adobe Indesign CS4, Adobe Acrobat 9 and was wondering what the best way was to go about setting this process up.  I have setup some basic forms using Flash and php to submit form data via email but I was hoping to embed these form fields directly in a PDF file so they could be filled in online... would look nicer and more professional.
    Thanks!

    Sure it's possible. One way to help insure that the original blank form does not get overwritten it to make it read-only in the file system. To do this in WIndows, open an Explorer window, find the file, right-click on it, select Properties, and select read only. You cna do the same type of thing on a Mac in FInder > Get Info
    When you save the filled-in form, just save it with a new file name. If you accidentally forget and atttempt to overwrite the original, it won't be allowed and you'll be notified.

  • Question about creating Custom JSF form tag and renderer

    Is it possible to build a custom form tag in JSF and have it replace the standard jsf form tag. Are there any potential issues with child forms or anything else.
    I created the following
    - custom form component class that extends javax.faces.component.UIForm (the only changes I made was to change the value of the COMPONENT_TYPE attribute and change the value for renderer type)
    - custom form renderer class that extends HtmlBasicRenderer and I made changes to the encodebegin method and encrypt the value of the id and action url)
    - custom form tag class that extends UIComponentELTag ( I did not make any changes here)
    - tld for my custom form tag
    - created an entry in faces-config.xml of my web-app for my custom form tag
    Are there any issues with the above.
    Is there something I should do in addition.

    In theory you should be fine. Some of the open source libraries either swap out the renderer for the standard h:form component or supply their own form components. You could look at their code for reference if need be.

  • Questions About Data Form

    Hi guys,
    just a general question: When we make a "big" data form, it typically causes performance issues or crashes. My question is, what is limiting the size of the data form? Is it the fact that Essbase has to pull up a lot of data at once? Is it the fact that web applications are limited in capacity? Would just like to get people's thoughts on this general issue.
    Another general, somewhat vague question: IF I did want to make a huge data form, lets just say 10 cost centers, 400 accounts per cost center on the rows and period, a couple of scenarios and years on the columns, would it help if I created a machine dedicated to the planning web app? Would increasing RAM/CPU help ?

    Increasing the RAM will certainly help with forms as large forms can cause the Java application to crash, remember if it is 32bit planning you are restricted on the maximum memory setting, which is 2GB but in reality about 1.4-1.6GB
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Very Nube Question About Creating a Very Basic Application Bundle / Package

    I don't know anything about XCode or AppleScript, other than that they exist, so I'm coming at this with only conceptual knowledge of how applications on OS-X work. Nonetheless, I have a goal that I feel should be really easy to accomplish, I just don't know where to begin.
    What I have is an html file with an embedded flash project that also references some outside files, such as pdfs for printing. This was designed to live on the web, but in reality it will be shipped out on a CD. Right now, if you insert the cd, you see the file contents (the above mentioned HTML file, as well as two folders containing the flash files and the pdfs that are embedded in or linked out from the html file).
    This isn't very elegant, and doesn't accomplish the "app" feel I'm shooting for. What I'm wondering is: is there a way to create an application package that has the html file and content folders tucked inside of it, so that when a user clicks on the application package, the html file is automatically launched? What resources might you point me to in order to learn how to do this in a relatively short amount of time? (I'm not even positive if I'm using the correct terminology to search for solutions... is it an application package or an application bundle?)
    Now for the limitations:
    These files were generated on a Windows machine by an eLearning tool ("Articulate Presenter") and therefore really can't be fiddled with much. I can't open any of the flash files and change the directory paths for the resource files the main presentation needs. I'm fairly confident the presentation just refers to the folder the html file is in as its root, so if the file structure could stay relatively intact once all the files move inside this "bundle," I think everything will still work.
    The Articulate Presenter folks aren't particularly helpful in solving Mac compatibility issues, so I thought I'd pose my question here. If I'm not being clear, I am happy to add additional details. Thanks very much for your patience with, and willingness to offer advice to, a complete newbie.
    Cheers!

    It's even easier than you think.
    Open AppleScript Editor.
    Type in the following code:
    set htmlFile to (POSIX path of (path to me)) & "Contents/Resources/index.html"
    set openCommand to "open " & quoted form of htmlFile
    do shell script openCommand
    Then do File > Save, and use 'Application' as the file format.
    Then the "Bundle Contents" button on the toolbar will be enabled. Click it to open up the drawer.
    Drag your HTML content and resources into the drawer.
    Do File > Save again. Ta-da, you have your web-content packaged as an application.
    This assumes that the top-level has a file named index.html. If not, modify to suit.

  • Question about using Forms in a special project or not

    Hi,
    We have a project which must be available via internet. The estimated users of this application, in worth case, can be something about 2000. All users belong to a company but are distributed around the country.
    All the development team in our company know Forms Builder (up to 10g) and have several years experience in using that in different projects. Two of our developers know APEX and non of us knows java and ADF.
    My question is that is it really possible to develop such an application using Forms? Can we just use APEX for that? or we have to jump into Jdeveloper and ADF? Please look at the problem from all aspects if you would like to guide me. What i mean is that if you say we have to use java and ADF, then learning of these is a seperate project itself and we don't have a large time window for project. The budjet of project is also a serious thing.
    Thanks in advance,
    Alireza Vali

    2000 concurrent sessions...now that would require quite a big application server farm if you are using forms for this project. As you have experience in PL/SQL and none in Java/ADF the decision shouldn't be that hard. Java is an Object Oriented language whereas PL/SQL is procedural which means quite different ways of doing things when you e.g. want to write APIs. If you don't have any expierience in any Object Oriented language starting off with a quite big project in java might not be a good idea. This doesn't mean that you shouldn't learn java at all, but when learning a new language you usually start with a "Hello World" application, and not with writing a operating system with that language.
    APEX on the other hand is plain PL/SQL and not just for small websites; a good sample is the asktom site; it is written in APEX and I guess it has a fair amount of traffic.
    So APEX has some benefits
    - you have already knowledge in house
    - you are familiar with the language
    - APEX doesn't require an application server license; you can use oracle XE and if you don't want to expose the database to the www use a plain apache server to handle the http request
    So if it were me, APEX would be the way to go.
    cheers

  • Question about creating Stack!!

    Can someone please help me....I need help on creating a stack..I don't understand the whole point of stack..I help on how to this question...please show me how to start this question..
    You are to implement a class called Stack using arrays as internal storage mechanisms . Note well, you cannot use the java Stack class. You are to implement the following instance methods (interfaces are provided below)....etc

    It sounds to me as if you need to understand the nature of a stack before you go about implementing it. Use http://www.google.com and search for "stack data structure java". There are a number of good references available there.
    Chuck

  • Questions about creating a foreign key on a large table

    Hello @ll,
    during a database update I lost a foreign key between two tables. The tables are called werteart and werteartarchiv_pt. Because of its size, werteartarchiv_pt is a partitioned table. The missing foreign key was a constraint on table werteartarchiv_pt referencing werteart.
    Some statistics about the sizes of the mentioned tables:
    werteart 22 MB
    werteartarchiv_pt 223 GB
    werteartarchiv_pt (Index) 243 GB
    I tried to create the foreign key again, but it failed with the following error (Excuses for the german error message):
    sqlplus ORA-00604: Fehler auf rekursiver SQL-Ebene 1
    sqlplus ORA-01652: Temp-Segment kann nicht um 128 in Tablespace TEMPS00 erweitert
    The statement I used:
    alter table werteartarchiv_pt
    add constraint werteartarchiv_pt_fk1
    foreign key (schiene, werteartadresse, merkmale)
    references werteart (schiene, werteartadresse, merkmale)
    on delete cascade
    initially deferred deferrable;
    So the problem seems to be, that Oracle needs a lot of temporary tablespace to generate the foreign key and I do not know how much and why.
    My questions now are, and hopefully someone is here, who can answer all or a part of it:
    1) Why does Oracle need temporary tablespace to create the foreign key? The foreign key uses the same columns like the primary key.
    2a) Is it possible to tweak the statement without using the temporary tablespace?
    2b) If it is not possible to avoid the usage of the temporary tablespace, is there a formula how to calculate the needed temporary tablespace?
    3) Is it possible to modify data in the tables while the foreign key is created or is the whole table locked during the process?
    Any help or hint is appreciated.
    Regards,
    Bjoern

    RollinHand wrote:
    My questions now are, and hopefully someone is here, who can answer all or a part of it:
    1) Why does Oracle need temporary tablespace to create the foreign key? The foreign key uses the same columns like the primary key.Because it's validating the data to ensure the foreign key won't be violated. If you had specified ENABLE NOVALIDATE when creating it then the existing data in the table wouldn't need to be checked and the statement should complete instantly (future data added would be checked by the constraint).
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28310/general005.htm
    Search for "Enable Novalidate Constraint State"

  • Question about "Create Item" page

    Im working on trying to Insert a new item into a Self-Service Web Applications page.
    As part of my research, I have been looking at this doc:
    Oracle® Application Framework
    Personalization Guide
    Release 11i
    Part No. B25439-02
    From:
    http://download.oracle.com/docs/cd/B25516_18/current/acrobat/115fwkpg.pdf
    The document does not seem to go into much detail about how to Insert an item on a page. I also checked the "OA Component Reference" document.
    I checked the online help via "Create Item Page" - e.g.
    http://oursite/pls/PSAT/fndgfm/fnd_help.get/US/FND/CUST_PERSADMIN_CREATEITEM.HTM
    Again, that doesn't give a lot of information.
    As part of my testing / research, I would like to add a new Item to a page, and have the value of the item to be taken from an existing SQL Query.
    For example, in iProcurement, when viewing a Requisition Details, e.g. via this page:
    http://oursite/OA_HTML/OA.jsp?page=/oracle/apps/icx/por/reqmgmt/webui/ReqDetailsPG&reqHeaderId={!!BX6R96mkQOcfNZ60BeTaJQ}&retainAM=Y&addBreadCrumb=Y&_ti=245778094&PersonalizationParam=PersonalizationParamAdmin&oapc=12&oas=mYF7zP1VI7xoAWcUQHTEkQ..
    I would like to add in the "NOTE_TO_AUTHORIZER" field from the "po.po_requisition_headers_all" table.
    From looking at the "About this Page" link, I can see there is a View Object called "oracle.apps.icx.por.reqmgmt.server.ReqHeaderVO".
    This ViewObject contains an Attribute called "NoteToAuthorizer" with a Type of "java.lang.String".
    When I go to the "Create Item" page, and choose and Item Style of "Message Styled Text" there seems to be no way to say which database field you want to include.
    From looking at a previous customisation that a developer did, I can see you can pull in an Attribute via the "View Attribute" field, and link in the VO via the "View Instance" field.
    When inserting database values into a Self-Service page, can we only insert Attributes, and not any of the other regular fields from View Objects?
    Apologies for the rambling essay.
    Any advice much appreciated.
    Thanks

    Hi Jimr,
    In OAF sql queries are represented by View Objects and columns of query will be represented by View Attribute.
    For every column in query there will be corresponding view attribute name, so while adding any item on self service page which represents data from database you need to specify view instance name and view attribute name, which will specify which column and from which query it will show the data.
    *"When I go to the "Create Item" page, I can't work out how to tell Oracle that the Item I want to create should be the "NoteToAuthorizer" field from the "ReqHeaderVO" ViewObject."* so ReqHeaderVO1 will be the instance(by default OAF generates instance like this) and "NoteToAuthorizer" can be mentioned in View Attribute name property.
    Let me know if you need further clarification.
    Regards,
    Reetesh Sharma

Maybe you are looking for