Best recommendataion to work with one JFrame & Multiple Jpanels(or Windows)

Hi all,
I am a bit new(bie) to Java and Gui but not new to programming.
I need to write an application in using Java. The Current editor I use is Netbeans.
I have a rough idea on how to write this apps, but I would like to confirm if my idea is applicable to such application (from a performance and feasibility standpoint).
The main idea for this application is to have multiple forms that users would populate, and the values entered will be stored in a Database.
I had plan to use only one main Window (JFrame), and no MDI, no multiple Java windows.
My plan was:
-     Create the main form (JFrame) with menus, once the application is loaded, I will check if a database connection is available otherwise open a Jpanel to input database settings (which can be started from the menu).
-     All menus and application/company settings would be set in the main form
-     All features available in the Jpanel would be in a separate class for clarity/lisibility of my code. For instance : user settings would be a separate jpanel class; database settings is a new jpanel class
-     Each Jpanel class would be stored in a separate java/class file.
Here is my test example for now (file MainForm.java) :
import javax.swing.*;
public class MainForm extends JFrame {
    /* Initializing a few variables */
    String databaseServer = null;
    String databaseUserName = null;
    String databasePassword = null;
    /** Creates new form MainForm */
    public MainForm() {
        /* Initializing menus */
        initComponents();
       /* starting a new instance of database configuration */
        DbPanel test = new DbPanel();
    /* Initialization menu and graphical components */
    private void initComponents () {
        JMenuBar BarMenu;
        JMenu MenuConfiguration;
/* �.*/
     BarMenu.add(MenuConfiguration);
     setJMenuBar(BarMenu);
     pack();
     * @param args the command line arguments
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new MainForm().setVisible(true);
} Here is my DBpanel class (file MainForm.java) :
public class DbPanel extends javax.swing.JPanel {
    /** Creates new form DbPanel */
    public DbPanel() {
        initComponents();
// <editor-fold defaultstate="collapsed" desc=" Generated Code ">
    private void initComponents() {
        java.awt.Button buttonClose;
        java.awt.Button buttonSave;
        java.awt.TextField dbName;
/* � */
       gridBagConstraints.ipadx = 100;
        gridBagConstraints.insets = new java.awt.Insets(0, 21, 0, 21);
        add(dbPassword, gridBagConstraints);
// </editor-fold>   
}Here are then my questions:
-     Would you think that is a practical plan to write such application?
-     Once I display a Jpanel form and I close it (for instance myJpanel.setVisible=false), will the memory be freed?
-     Is there any other way to remove entire a JPanel from RAM?
-     How can I call my �external� Jpanel ? I have designed one Jpanel class for testing but I was not able to display it when I created the new instance of that class.
-     Is there any other alternative to Jpanel for this application? I was thinking about opening a new window within my Jframe. But, ideally it would be best that multiple windows are not opened simultaneously.
Thanks for your input

I was thinking about this but requirements are the
application development cost should be reduced to the
minimum.
thus one desktop application and one database
server.Application development cost? If you are being paid to do this, the bulk of the cost will be your hourly rate times the number of hours it takes you to do it. Thus you want to minimize the number of hours it takes you to do it. Assuming that the cost of your learning Java is going to be charged to this project, it might well be a good idea for you to do it in a language you already know. Or one where it's easy to develop this sort of application.

Similar Messages

  • What is the best way to work with mixed media in 1080 timeline?

    Hi there,
    I have a project shot mostly in 1080 24p but a bit of 720 24p and 4x3 30p footage.
    What is the best way to work with this mixed media?
    Thanks!
    Steven

    Hi Shane,
    Ok just to recap (thanks for being patient by the way)...I have put some questions in here...feel free to write in caps to respond and we'll put this baby to rest!
    1) I will work in a 1080p FCP sequence, correct?
    2) HD 1080p footage captured as applepro res hq I will leave as is and work with?
    3) HD 720p footage which was captured as applepro res hq. Can I just drop in 1080 timeline and let FCP do its work? Or should i run through compressor, if so what setting shall I submit it too?
    4) I dont have a budget for an external hardware to convert SD to HD...should I capture my SD Beta through Final Cut and just leave and let FCP do its work? Or should I run through compressor? If so what setting shall I submit it too?
    5) For for my master sequence in FCP am I not using an I-Frame format apple pro res if I am using my apple pro res hq 1080 footage as my formatted sequence? I am not sure what you mean by GOP?
    6) I also found some 60p footage 1080p XDCAM compressor shot with the same XDCAM camera. I put in the 1080p 24p timeline but it was pretty choppy...any ideas of this conform?
    Thanks very much for all your help it has gone along way,
    Steven
    Saying what CODECS you are working with was my question. 1080, 720, 4:3...really says nothing. There are a dozen 1080 codecs, another dozen 720 codecs, and nearly 100 4:3 formats.
    Best to capture all the footage to one uniform codec.
    Second best is to work with one format and let FCP conform the rest to that...IF and only IF that format is an I-Frame format like ProRes. GOP formats as master sequence formats cause TONS of issues.
    What I'd do is work 1080 ProRes, just add the 720p footage (Use Compressor to convert it if you didn't have a lot, but if you had a lot, just add it), but I'd capture all the SD 4:3 footage via a Kona 3 or Matrox MXO2 as 1080 ProRes. Hardware conversion of SD to HD is much better than anything FCP can do. AE might do good as well. But then use Compressor to convert 29.97 footage captured (you can't convert 29.97 to 23.98 when you capture) to get to 23.98.

  • What is the best way to work with Word documents in The InDesign CS4???

    I work in Microsoft Word 2007 and all my documents have *.doc format.
    What is the best way to work with Word documents in InDesign CS4???
    David Blatner says to avoid copying and pasting text from Word instead of placing it (Ctrl+D).
    How about pasting RTF or Text Document???
    I want to make book's layout in ID CS4 and its main feature is that there is the left page with text and the right - with graphics.
    So, as I understand to place the text on each page I must create for example 70 Word documents and place each item on 70 left pages???
    It loks like wasting time. I sthere another way of making such layout???  What kind????

    It's best to place any text.
    You can have all of your text in one file and use auto-flow to add threaded text frames and pages as required (Hold down the Shift key when you click the loaded text cursor), but it's a little non-standard to have the thread only on one side of the spread from the auto-flow perspective, so you'll have to set up properly.
    This is one case where a master text frame will work to your advantage. On your master page spread, add a text frame to the left page, but not to the right (or at least not threaded to one on the right -- for some other project you might actually want two independent text threads). Hold the loaded cursor over a frame on the left side of a document page and auto-flow. ID will add new spreads as necessary, but only put the text on the left side.
    Peter

  • WiFi printer which can work with one cartridge also at a time (black or color) in a colour printer

    All-in-one (OfficeJet or Inkjet) WiFi printer which can work with one cartridge also at a time (black or color) in a colour printer.
    Even if colour cartridge is over, w/o replacing I can still print with black cartridge.
    Which printer is suitable.

    Since I upgraded to Firefox 19 from 18.0.2, on my Windows XP (SP3) laptop, I, too, can no longer open a new window. File-->New Window does nothing; also can no longer tear off a tab and open it in a new window (it stays where it is). Also, if I right-click on a tab and select Move to New Window, nothing happens. All of these worked fine in FF 18.0.2. All of these work fine with FF 19 on Windows 7. Only an issue on my XP laptop.
    After trying to open a new window, and not seeing the new window come up (and yes, I waited a long time), I decided to close my current window, which had multiple tabs open. Instead of just closing, it pops up the message reminding me that I'm about to close all those tabs. If I say close, and then go into the Task Manager, the Firefox application has disappeared (as expected), but the firefox (and plug-in container) processes are still running. So I have to manually kill the Firefox process to get it to quit. it's as if it thinks there is another Window open (the one I tried to open but never appeared). This happens every single time! I've restarted my laptop, and that does not resolve the problem.
    Is there a way to downgrade back to v 18.0.2 until this is fixed?

  • Best environment to work with Studio 10g?

    Hi !
    Which environment, in your experience, do you recommend as a good and stable one to work with Oracle BPM Studio 10g ? Windows Vista ? Windows 7 ? Windows 2003 ? I know the compatibility matrix, but we are suffering some performance issues while developing Presentations (non-jsp) and executing large projects.
    Many thanks in advance !
    Best regards,
    Matias.

    Know this is something you might not want to do, but I tried large presentations using 10.3.2 and found what used to take several seconds to do in 10.3.1 now takes a subsecond in 10.3.2.
    Although I'm on a Windows 7 64bit 8gb machine, I think you can get the performance you want with a 3gb machine.
    Dan

  • Is it possible to have your whole family on one apple id or is it better to have each person have there own? If each has their own does each id have to buy their own music and apps? How does find my iphone work with one apple id or two?

    Is it possible to have your whole family on one apple id or is it better to have each person have there own? If each has their own does each id have to buy their own music and apps? How does find my iphone work with one apple id or two? also I am going to be going off to college soon should I make an itunes id for my self and how will I get all the music from the old id?

    Is it possible to have your whole family on one apple id or is it better to have each person have there own?
    Yes, it is possible. 1 apple ID can be associated with up to 10 devices.
    If each has their own does each id have to buy their own music and apps?
    Yes, all purchases are non-transferable.
    How does find my iphone work with one apple id or two?
    Every device associated with one apple ID through Find my iPhone is tied to that Apple ID; Find my iPhone will work in the same way with up to ten devices associated with one apple ID. You cannot enable Find my iPhone for one device across two apple IDs
    I am going to be going off to college soon should I make an itunes id for my self and how will I get all the music from the old id?
    If you have authorized a computer with the old apple ID, you can transfer old media purchased through the old to other devices via iTunes. This doesn't mean the media purchases through the old apple ID it transferred to the new account. If you plan to make future purchases and don't wish to share them with others, make your own apple ID.

  • HT1409 I have done this but it does not work with one of my albums and I dont know why??

    I have done this but it does not work with one of my albums and I dont know why??

    That would be it. Sometimes you can tweak the album & artist names enough for iTunes to download matching art from the store, or you could add a bonus track featuring 1 second of silence and attach artwork to that, or you could convert the files to Apple Lossless.
    tt2

  • Best way to work with interlaced and progressive clips in the same timeline

    I´m shooting with Sony MC-50E camera in 1920x1080, 50i. When importing with Log & Transfer I can work with ProRes 422 files in interlaced mode. I have to mix the footage with video screencapture which is progressive (ProRes 422). The final videos are for web only so it should end up as progressive H264 videos. I´m getting good result if exporting to H264, 1024x576 with deinterlacing enabled, but exporting to full HD gives typical interlaced lines in the picture. How can I avoid this and what is the best solution for working with both interlaced and progressive clips?

    Deinterlace in Compressor using Frame Controls, Best settings. You can reconnect the deinterlaced files to your project, if you've already edited, but you may need to copy and paste the clips in your sequence to a new 25p timeline, then Remove Attributes, Basic Motion.
    When you're ready to export your sequence, use Quicktime Movie, Current Settings, Self-contained. Take that file to Compressor to transcode back to h.264.
    The Apple T.V. preset is very good.

  • What is the best way to work with AVCHD 720 24p footage in FCE4.1?

    Hi I have a Panasonic HMC-150 and I've been shooting 720 24p footage at 21 mbps transfer rate.
    I was wondering what is the best way to work with this material in FCE 4.1? I see that in the easy set up menu they only have the option of 1440X1080i at 50 or 60 fps or 1920X1080i at 50 or 60 fps.
    Also in the rates drop down menu there is only 50 or 29.97.
    So I was wondering which is the best choice for 720 24p footage and will it look alright in any of them? Also is it possible to customize these settings?
    And finally can you work with faster transfer rates (21mbps) in FCE?

    Yikes, this is going to be tricky since FCE does not support native 24p editing.
    The work around for some of us is that AVCHD material that is 24p is often recorded to disc at 60i using telecine, in which case it can be editing at 29.97 frames per second, and then detelecined afterward for final export at 23.98 fps. The problem is that I think your camera actually records real 24p - not 24p packed into 60i. When you import the material from the camera what does QuickTime report the framerate as?

  • Java.lang.NullPointerException when working with one rfc

    Hi,
    java.lang.NullPointerException error when working with one rfc.
    Regards,
    Gurprit Bhatia

    Hi
    Can you elaborate your problem?
    Where exactly getting the problem ?
    Regards
    Akshaya

  • What´s the best approach to work with Excel, csv files

    Hi gurus. I got a question for you. According to your experience what's the best approach to work with Excel or csv files that have to be uploaded through DataServices to you datawarehouse.
    Let's say your end-user, who is not a programmer, creates a group of 4 excel files with different calculations in a monthly basis, so they can generate a set of reports from their datawarehouse once the files have been uploaded to tables in your DWH. The calculations vary from month to month. The user doesn't have a front-end to upload the excel files directly to Data Services. The end user needs to keep a track of which person uploaded the files for a determined month.
    1. The end user should place their 4 excel files in a shared directory that will be seen by DataServices.
    2. DataServices will execute certain scheduled job that will read the four files and upload them to the Datawarehouse at a determined time, lets say at 9:00pm.
    It makes me wonder... what happens if the user needs to present their reports immediately so they can´t wait until 9:00pm.  Is it possible for the end user to execute some kind of action (out of the DataServices Environment) so DataServices "could know" that it has to process those files right now, instead of waiting for the night schedule?
    Is there a way that DS will track who was the person who uploaded those files?
    Would it be better to build a front-end for the end user so they can upload their four files directlyto the datawarehouse?
    Waiting for your comments to resolve this dilemma
    Best Regards
    Erika

    Hi,
    There are functions in DS that captures the input files automatically. You could use file_exists() or wait_for_file() option to do that. Schedule the job to run every certain minute and if the file exists then run. This could be done by using a certain file name with date and timestamp etc or after running move the old files to archive and DS wait for new files to show up.
    Check this - Selective Reading and Postprocessing - Enterprise Information Management - SCN Wiki
    Hope this helps.
    Arun

  • My imessage has just stopped working with one of my contacts, on both of our phones imessage still works with other contacts. Why can we imessage others but not each other?

    My imessage has just stopped working with one of my contacts, on both of our phones imessage still works with other contacts. Why can we imessage others but not each other?

    Yes... to no avail

  • Ill.CS3 - Why can I only work with one sheet on the desktop? I want to design a multi page document...

    ill.CS3 - Why can I only work with one sheet on the desktop? I want to design a multi page document...

    Use this ancient work-around:
    Create mutli-page PDF | Illustrator

  • My iMessage only works with one contact in my phone. I text several people that have the iphone 4s, theirs works with other people. But mine only works with one person. Why?

    My iMessage only works with one contact in my phone. I text several people that have the iphone 4s, theirs works with other people. But mine only works with one person. Why?

    about message http://support.apple.com/kb/HT3529
    troubleshooting message http://support.apple.com/kb/ts2755

  • All songs in my iTunes library are listed twice. I have two copies of my library in two different locations. How do I make iTunes work with one copy of my library?

    All songs in my iTunes library are listed twice. I have two copies of my library in two different locations. How do I make iTunes work with one copy of my library?

    That is the way the iphone works.
    You need to copy everything from your backup copy of your computer.

Maybe you are looking for