Best Layout for Simple forms

I am sick of having to do all of these workarounds for create simple forms using the Swing API. What is the easiest and most effective way to create a simple form ? And whats Layouts should I use. Below is an example of what the form would look like.
Name{Label}: {TextField}
Address:{Label} {TextField}
etc.. etc..
all aligned. What is the best solution for this type of typical form. Currently I'm trying to utilize the BoxLayout nested but its very difficult to align the labels and the text fields or likewise the text fields etc.. Any help would be greatly appreciated.

ParagraphLayout. it was designed exactly for this type of thisng
label1 : textfield1
label2:  textarea in scrollpane
           :  // text area occupies severals column (based on te preferred height)
label3:  textfield2
           :  textfield3
label4:  combobox1 gap label5: combobox2
// the code to generate th edata entry form abouve using ParagraphLayout
JPanel p = new JPanel(new ParapgraphLayout());
p.add(label1, ParagraphLayout.NEW_PARAGRAPH);
p.add(textfield1);
p.add(label2, ParagraphLayout.NEW_PARAGRAPH);
p.add(textareaScrollpanel1);
p.add(label3, ParagraphLayout.NEW_PARAGRAPH);
p.add(textfield2);
p.add(textfield3, ParagraphLayout.NEW_LINE);
p.add(label4, ParagraphLayout.NEW_PARAGRAPH);
p.add(combobox1);
p.add(Box.createHorizontalStrut(10));  // 10  pixel gap
p.add(label5);
p.add(Box.createHorizontalStrut(10));  // 10  pixel gap
p.add(combobox2); you can get the Paragraph layout at: http://www.jhlabs.com/java/layout/
they also have other nice layout (like GridLayoutPlus - similiar to GridLayout, but allows different row and column size)

Similar Messages

  • Best Layout for Simple Project

    hey,
    Im doing a simple ticket application with 6 -7 panels. Im new to java and currently using flowlayout but it looks very messy. I tried Gridlayout but my controls turned out oversized.
    Can anybody recommend a simple layout that can be used to create a neat interface.
    thanks
    tom

    Can anybody recommend a simple layout that can be used to create a neat interface.We don't know what you consider "neat", so no we can't recommend a simple layout.
    The key point to remember is that you should be using a combination of different layout managers to get the "neat interface" that you desire.

  • Best option for hosting forms online and archiving the completed forms?

    Forgive the length of this post, but I feel it necessary to give a little background information into our problem.
    We were looking for a simple solution to a seemingly simple problem: Host ~15 safety forms online for field technicians (electricians) to fill out via their netbooks and submit to some sort of repository for archiving with the ability for the technicians to reopen the forms and make additions over the course of the job / week as well as firing an email off to our H&S rep per form submitted.
    Acrobat + Remote Desktop Services (SBS 2011 network) + Reader seemed like a good solution and does work, but it's somewhat cumbersome for the less computer literate techs and proving to be more time in support then we are potentially saving going with paperless forms. This is the system we have in place now.
    We initially purchased Acrobat Standard and subsequently upgraded to Professional when we found some limitations we weren't expecting in Acrobat Standard. An Adobe Sales rep also suggested that we check out Livecycle Designer 9, which was included with Acrobat Pro which included even more nice stuff. I started re-authoring the forms in LCD9.
    The issue now is that I have Dynamic XML forms with flowed content that cannot be submitted by Reader to sharepoint. Why? You can't reader extend livecycle forms with acrobat, which it is bundled with.....
    Why exactly adobe has two different and somewhat incompatible forms authoring tools bundled in the same product is beyond me, especially when one of them requires what I would imagine is an expensive server product to enable it's full use?
    So it seems I have a choice between having my employer purchase Reader Extensions ES2 to maintain the nice form design with flowed content, purchasing 12 copies of acrobat to put on the netbooks when Reader SHOULD be all that we need or converting all the dynamic XML forms authored in LCD9 into static AcroForms so they can be reader extended and deployed to sharepoint.
    We envision our technicians browsing to and logging in to our hosted sharepoint server, selecting the appropriate form template from a drop down list in a doc library or list, which opens the form for completion in the browser and on submit posts the form to a list on sharepoint for completed forms, preferably with some key fields mapped to custom columns in said list AND with the ability for the submitting technician to re-open the submitted form from sharepoint and make additions as the week / job progresses.
    What would be the best option given our current situation and needs? With all due respect, I am looking for suggestions from technically oriented or experienced persons, not sales reps that don't fully know the product.    

    Ok, so I have done some additional reading and I've found out that Livecycle forms can be submitted via reader without reader extensions so long as the submit is via HTTP Post or as XML data only.
    This effectively means you can collect the data from the submitted forms for processing, but you can not re-render the form from the form template and the XML without the presumably expensive server component, Reader Extensions, which for all I know, requires other components to run.
    This all seems awfully expensive for a solution to host a dozen or so forms and archive the submissions in one place where they can be re-opened and added to.
    I don't undestand why it's so prohibitively expensive to submit dynamic PDF forms as PDF vs submitting static PDF forms as PDF, which can be done with Acrobat Pro all by itself at ~$500.

  • Best practice for large form input data.

    I'm developing an HIE system with FLEX. I'm looking for a strategy, and management layout for pretty close to 20-30 TextInput/Combobox/Grid controls.
    What is the best way to present this in FLEX without a lot of cluter, and a given panel being way too large and unweildy.
    The options that I have come up with so far.
    1) Use lots of Tabs combined with lots of accordions, and split panes.
    2) Use popup windows
    3) Use panels that appear, capture the data, then, make the panel go away.
    I'm shying away from the popup windows, as, that strategy ALWAYS result in performance issues.
    Any help is greatly appreciated.
    Thanks.

    In general the Flex navigator containers are the way to go. ViewStack is probably the most versatile, though TabNavigator and Accordion are good. It all depends on your assumed workflow.
    If this post answers your question or helps, please mark it as such.

  • Best practices for deploying forms in a 'cluster'?

    Anyone know of any public docs that discuss typical best practices for
    - forms deployment;
    - forms apps management and version control; and/or
    - deploying (and keeping) the .frm/frx in sync when using multiple forms servers in a HA or load balancing envrionment?

    Hi adil,                      
    Based on your description, you want to know the best practices for search service in a SharePoint farm.
    Different farms have different search topologies, for the best search performance, I recommend that you follow the guidance for small, medium, and large farms.
    The article is about the guidance for different farms. 
    Search service can run with other services in the same server, if condition permits and you want to have better performance for search service and other services including BI performance, you can deploy search service in dedicated server.
    If condition permits, I recommend combining a query component with a front-end Web server to avoid putting crawl components and query components on the same serve.
    In your SharePoint farm, you can deploy the query components in a WFE server and the crawl components in an application server.
    The articles below describe the best practices for enterprise search.
    https://technet.microsoft.com/en-us/library/cc850696(v=office.14).aspx
    https://technet.microsoft.com/en-us/library/cc560988(v=office.14).aspx
    Best regards      
    Sara Fan
    TechNet Community Support

  • What is best format for simple text animation in iWeb?

    I want to use a simple text animation "movie" in my site using iWeb.  I don't want the controller visible -- and I want the animation to play automatically.  I went to Inspector and checked for it to start automatically, but no effect.  I still have to manually click on it.  The mov file plays fine, but not automatically. 
    Second question:  is mov the best file format for what I'm tryin to do?  I admit to getting lost with all these formats/codecs.
    Thanks.

    Its not so much the movie format that matters as the way in which you decide to play it on your page.
    Dragging a movie file onto the iWeb page requires that the visitor has the QuickTime plugin - which a lot of people don't. Flash is not the answer anymore due the fact that iOS devices don't support it unless you provide fallback to HTML5.
    Here are some alternatives...
    http://www.iwebformusicians.com/Website-Movie-Video/Flow-Player.html
    http://www.iwebformusicians.com/Website-Movie-Video/Fallback-To-Flash.html
    http://www.iwebformusicians.com/Website-Movie-Video/JW-Media-Player.html
    http://www.iwebformusicians.com/Website-Movie-Video/Easy-Movie-Player.html
    Some stuff about movie files...
    http://www.iwebformusicians.com/Website-Movie-Video/Movie-Formats.html
    "I may receive some form of compensation, financial or otherwise, from my recommendation or link."

  • CGI script for simple form

    Can anyone give me a CGI script that will make a form
    automatlly e-mail the information gathered from an online form?
    Can that code be placed right into the html file?

    There are only two ways to process form data -
    1. Use mailto:[email protected] as the action of the form
    2. Use a server-side scripting method to a) harvest the
    form's data, b)
    process it in some manner, e.g., enter it into a database, c)
    formulate and
    send an email to one or more email recipients, and d)
    redirect the visitor
    to some ending page
    Method 1 is quite simple, and is also the least reliable. It
    depends both
    on your visitor having an email client already installed on
    their computer -
    this eliminates public computers, or home users without email
    clients
    installed (more and more it seems) - and on the installed
    email client
    responding to
    the mailto call. It is not possible to use this method *and*
    send the
    visitor to a
    thank you page as well.
    Method 2a is the preferred method, since it eliminates the
    problems of
    method
    1, but it means that you have to grapple with
    server-scripting somehow (ASP,
    CF, PHP, perl, etc.).
    Method 2b would be to use some third-party form processing,
    like
    http://www.bebosoft.com/products/formstogo/,
    or if your server supports PHP,
    you could investigate
    http://www.geekministry.com/formbuilder/,
    a very nice
    product by a frequent poster here.
    You would have to decide which of these methods is best for
    your needs,
    but if it's Method 2a, then start by asking your host what
    they provide for
    form
    processing. If it's 2b, then read their FAQ/instructions
    carefully.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "inhouse7" <[email protected]> wrote in
    message
    news:gda6ap$79k$[email protected]..
    > Can anyone give me a CGI script that will make a form
    automatlly e-mail
    > the information gathered from an online form?
    > Can that code be placed right into the html file?

  • What is best application for this form project

    i have cs4 web design suite, which includes livecycle es2. on my web page i have designed with DW, i want to have a form available to visitors that they can fill in online or download and fill in. the form will have validation for most fields and also be able to provide assistance to the filler for filling in the fields. ideally they can download the form and fill in at their convenience on their local hardrive or just do it live and submit to me.
    for now i am fine just receiving an email with all the field data, but eventually i would like to have this data converted to CSV or put into a database on a remote server such as 1and1 or 1shoping cart.
    the form will also have several fields that will calculate using actions or javascript.
    i am confused as to whether this woudl be a downloaded form for the filler or if they fill it in live on my site.i was having a custom form designed using .asp that would reside on my remote server that people could fill in on my webpage but this seems like it not necessary if i use livecycle es2 form function.
    any help with all the aboev would be appreciated.

    Can you tell me how the HTML post works and point me in the direction of where i can find this information in the
    online manual.
    Do I need anythign other than LiveCycle Designer?
    Does the filler need anything other than acrobat reader?
    Does the HTML for or livecycle form have to communicate with my hosting server or does the form just come over as a pdf form attached to an email once they click submit?
    not sure how i use it in an html format on my web page, so any help there would be great. thanks!

  • Best practice for making form read-only at certain steps in process?

    I have a process with a single form and 4 Assign Task operations.  During Assign Task operations 1 and 3, the form is edited.  During Assign Task operation 2 and 4, it should be read-only (it is reviewed and acknowledged, but not changed).   There is no single criteria in the form data that indicates whether a form should be read-only or not -- this is only signaled by the step in the process.  What is the best way to manage the read-only state?
    Is there a way to make the form read-only via a setting in Workbench, or should I do this via a script in the form?
    Thanks!
    Toby

    I have a process with a single form and 4 Assign Task operations.  During Assign Task operations 1 and 3, the form is edited.  During Assign Task operation 2 and 4, it should be read-only (it is reviewed and acknowledged, but not changed).   There is no single criteria in the form data that indicates whether a form should be read-only or not -- this is only signaled by the step in the process.  What is the best way to manage the read-only state?
    Is there a way to make the form read-only via a setting in Workbench, or should I do this via a script in the form?
    Thanks!
    Toby

  • Best practice for simple scenario

    I'm working on demo of File To File integration.
    Mapping between two system is complicated.
    For example:
    There is a field (CODE) in SYSTEM 1. I have to perform SQL Query (SELECT ID FROM TABLE WHERE CODE=CODE_FROM_SYSTEM_1) This ID will be an ID  for SYSTEM 2
    Which way is the best.
    1. To write logic of mapping in SYSTEM 2. It will be some service that will perform import.
    I will use cache in order reduce number of SQL Queries
    (For example I perform this query only once SELECT ID,CODE FROM TABLE) each ID will be obtained from cache by CODE_FROM_SYSTEM_1
    2. To create some complicated Business process that will use JDBC Adapter for executing SQL Queries.
    But what about caching?
    What do you think? Which way will be the best?
    Message was edited by: Sergey A

    HI Sergey,
    if you can use the first approach and leave only message processing for XI
    albo if your files are big not using BPM will be a good idea
    unless your messages are very small then you cna try the second approach
    Regards,
    michal

  • Best Practices for Multiple Forms-Reports Instances (WebLogic) on Win2008R2

    Hello all,
    I’ve succeeded in creating two instances of Forms/Report (FR) in WebLogic and am looking at about 5 or 6 FR instances on a one Windows Server 2008R2 box. I understand each instances will have its own folder (FR_Inst1) structure under the Middleware folder. Currently I have two instances configured each with its own Home (FR_Home1 & FR_Home2) and Domain (FR_Domain1 & FR_Domain2). Both the of the separate FP applications function correctly.
    Can multiple similar type instances share a single Home (FR_Home)? Can multiple similar type instances share a single Domain outside of the WebLogic Domain, such as FR_Domain?
    Thanks,
    Ron

    Thanx for the reply! I read through the documents and they are very good at explaining how to install the different components individually. I still can't find much on installing them together. I hope it's not just going to be a trial and error thing.
    So far I've installed done the following successfully:
    Installed 10.3.5 weblogic
    Forms and Reports 11g on top of 10.3.5
    I've created an additional managed server for our ADF applications.
    My next step is upgrading the JSF to 2.x. I would have to stage patches 12917525 and 12979653. I'm afraid it will break the forms and reports though. Any ideas?

  • Best replacement for Adobe Forms Central survey functionality

    I am disappointed that you are discontinuing Adobe Forms Central... Please advise of what other applications do you have that provide the abilitity to create quick surveys that I can email out and then view all of the feedback and create reports.  Thank you.

    Hi BrainTrainer,
    We've included a list of FormsCentral alternatives in this document: End of support | Adobe FormsCentral.
    Many customers have posted in the FormsCentral forum after doing research on those alternatives. I'll move your post to that forum, so those customers can chime in about what they feel are the best options.
    Best,
    Sara

  • Best layout for my interface?

    Hi,
    I'm trying to make a login interface for an authenticator I'm working on and I've tried a few layouts but I can't find one that works and looks similar on both Ubuntu Linux and Windows 7.
    Here's what I'm currently using:
    import java.awt.FlowLayout;
    import javax.swing.JButton;
    import javax.swing.JCheckBox;
    import javax.swing.JComponent;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JPasswordField;
    import javax.swing.JTextField;
    import javax.swing.SwingUtilities;
    public class Gui {
         private static JFrame frame = new JFrame();
         private JPanel loginPanel = new JPanel();
         private JTextField usernameField = new JTextField(10);
         private JPasswordField passwordField = new JPasswordField(10);
         private JCheckBox rememberMeCheckBox = new JCheckBox();
         private JButton loginButton = new JButton("Login");
         private JButton cancelButton = new JButton("Cancel");
         public static void main(String[] args) {
              SwingUtilities.invokeLater(new Runnable() {
                   public void run() {
                        frame.setSize(190, 160);
                        frame.setTitle("Login");
                        frame.setLocationRelativeTo(null);
                        frame.getContentPane().add(new Gui().initialize());
                        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                        frame.setVisible(true);
         public JComponent initialize() {
              usernameField = new JTextField(10);
              passwordField = new JPasswordField(10);
              rememberMeCheckBox = new JCheckBox();
              loginButton = new JButton("Login");
              cancelButton = new JButton("Cancel");
              loginPanel.setLayout(new FlowLayout());
              loginPanel.add(new JLabel("Username: "));
              loginPanel.add(usernameField);
              loginPanel.add(new JLabel("Password:  "));
              loginPanel.add(passwordField);
              loginPanel.add(rememberMeCheckBox);
              loginPanel.add(new JLabel("Remember my information"));
              loginPanel.add(loginButton);
              loginPanel.add(cancelButton);
              return loginPanel;
    Here's what I want it to look like (I know a lot of people won't look, but I'm hoping some will. All links are the same, just in case):
    http://i55.tinypic.com/4gsn5j.png
    http://yfrog.com/jygui0p
    http://img718.imageshack.us/img718/8819/gui0.png

    aeternaly wrote:
    Hi,
    I'm trying to make a login interface for an authenticator I'm working on and I've tried a few layouts "the trick is" - to paraphrase Rob - to learn LayoutManagers. Core has several, they all have their specific behaviour which is (mostly) well defined in their api doc. Plus there are several more - free! - open source managers out which are more powerful and at the same time easier to use than any of core.
    Simply randomly "try out" stuff will not get you far on your way to mastering Swing ;-)
    Cheers
    Jeanette
    BTW: SwingX has a fully functional LoginPane plus authentication support ...

  • What is the best iMac for a former PC movie/ music maker?

    I'm researching Apple computers, and,my lord, I am out of touch. Actually, I was never really IN touch. Anyway, I am currently working on a short film, less than ten minutes, which will probably be eight or so hours of raw footage trimmed, cropped, flopped, color corrected, sped up, slowed down, etc.
    I used Adobe Elements on my last project about six years ago, and am definitely using Adobe again. I also compose the soundtracks. I am planning on using an external hard drive to store my footage and music. So, I'd like to know what the best iMac is for my purposes, and also what iMac is acceptable (cost feasible).
    What about ports for external hard drives and connections to the mini DV cam?
    What about a connection to electric instruments (guitar, bass, microphone, etc)?
    What about transferring video from my current external hard drive to a new one?
    What about a disk drive for Burning CDs and DVDs?
    I'm your vessel. Point me in the right direction.

    Since you are just researching, I am going to make this as short and sweet as possible.
    The 27 inch screen IMac is your only option. You need to have one with the fastest i7 CPU, fastest Graphics processor. Order one with the base 8 GBs of RAM and add additonal RAM through cheaper third party Mac RAM suppliers.
    My preference is for the standard ATA 7200 rpm drives as the Fusion-type drives are not proven technology, yet.
    If you want a really fast iMac and can afford it, consider an internal or external solid state drive (SSD) as these drives ard very,very fast.
    For external drives fast drives are ones that use USB 3, Thunderbolt and/or FireWire 800 connections.
    Stay away from external USB 2.0 external hard drives. They aren't fast enough.
    You need an adapter adapter for your mini DV camera.
    You are going to need some make of separate high speed audio interface box for instruments and vocals.
    Look at interface boxes from M-Audio.
    And you'll need to budget for a third party, good quality, high speed external FireWire 400/800 CD/DVD optical drive.
    Plus, very seriously consider the purchase of extended 3-year AppleCare Warranty plan.
    Something will go wrong with an iMac between 1-5 years.
    Three years of warranty protection offers free repairs and replacement of you have hardware failures.
    Good Hunting!

  • Best Option for Simple Animations?

    I create cartoons in Illustrator 8.0. I want to move into
    animating simple cartoons i will draw myself. They will range from
    5 seconds to a few minutes. All will have audio.
    I don't want to buy more than i need. What is the minimum
    software program that i need, and what could i use that may cost a
    little more but would be worth it in the long run?
    Thank you so much for your opinion.

    Depends on your style and your training as an animator, and
    what your project goals are: straight animation? interactivity?
    e-cards? Traditional animators used to drawing frame-by-frame with
    exposure sheets will feel more comfortable with Toon Boom Studio
    (www.toonboom.com). It has far superior drawing tools and color
    pallette management and timeline management than Flash. But if
    you're used to Illustrator, that may make no difference to you. It
    appears that the upcoming Flash CS4 will narrow the gap, as the
    interface appears to include enhancements that will be more
    familiar to traditional animators, not to mention IK, which Toon
    Boom Studio doesn't have (the highly expensive Toon Boom Solo does
    have it).
    That said, I think Flash is a great program for creating
    cartoon animation. You may not think you're interested in
    ActionScript programming at this point. I use Flash mainly for
    cartoon animation and I resisted ActionScript for a few years. But
    once you get used to Flash as an animation tool, and then decide to
    dip your little toe into ActionScript, you'll find out what an
    astounding tool it is, even for traditional animation, enabling you
    to do things impossible in more traditional-oriented programs. Plus
    now Flash and Illustrator are fairly well integrated, so you'll be
    able to import and export between the two.
    On balance, I'd go for Flash.

Maybe you are looking for

  • Share Document Not Working?

    Is Sharing not working? No one receives the Email invites and their entered Email address, after the invites were sent, are not listed anywhere as being currently shared. (using the desktop version which is online and shows green)

  • HT1904 how do i get all my music back i got a new computrer and its all gone

    i got a new computer and now all my music is gone how do i get it back?

  • ThinkPad Configurations Tested?

    In the 27 years of the PC era I have never before purchased a computer that did not function for all purchased features. Now that I have my X61's working correctly, we love them. The problem was getting the wireless to work, which one can read in her

  • Invoice block for payment substitution

    Hi, How to set block for payment indicator for unplanned delivery cost invoice created from MIRO. Transaction procedure : - MIRO - Transaction type = subsequent debit invoice - Go to tab details - Enter the unplanned delivery cost If this document sa

  • Essbase Studio v11.1.x compatibility with Essbase v9.3.1

    Hi Does any one know if we could use Essbase Studio in version 11.1.x with Essbase 9.3.2 ? Thanks for your answers...