Best way for building an application main frame

I'm about to program a desktop application.
The main frame will have menus, toolbar, status bar etc.
There will be a lot of interaction between the menus, toolbar buttons and other custom gui components (such as an editor).
My question is which is the best way for building it.
Cramming all the code in one class file is out of the question.
I thought about making my own custom JFrame and add API functions like for it so different GUI elements can be accessed.
Each component which will be manipulated will be in its own class file with the constructor accepting a reference to my custom JFrame object which it is contained in.
Any suggestions on the matter would be of great help since I've never done extensive Swing programming before.
P.S.
The application makes extensive use of RMI.
What considerations should I take into account (except using SwingUtilities.invokeLater()) ?

Hi,
I have replied on this subject somewhere else today but what I do is have one simple entry point where I just instanciate a JFrame.
On that frame I have a main JPanel. On that panel I add new objects like JPanels, tabs etc.
I keep each new panel in a separate source as it is easier when the application grows, and it will. That also means that several programers can work with the same application without interfearing each other.
I hope you understand what I mean the the thing is to split up the code into several sources.
It may not suit everyone but I found this approach to be the best for me.
Klint

Similar Messages

  • Best way for mouse enable application?

    Hello All,
    I would like to create a form and mouse should be enabled. (Mouse navigation limit = form). I am using forms 10g and database 10g.
    I would like to know which should be best way to keep the triggers code for required and not required items.
    Regards
    SUN

    Thanks Jan,
    In my application I have a form with three blocks. 1st and 2nd block is not data base block. 3rd block is database block. My forms "defered required" property is No and "mouse navigation limit" property is form.
    My 1st block 1st item required property is Yes. Also I have when-validate-item trigger in the 1st item and when-validate-record in the 1st block. After running the form I am in the 1st tiem. I did not enter any value into the item and click in the 2nd block 1st item by mouse. At that time when-validate-item and when-validate-record triggers are not firing. Also it is not asking for enter the value for this item.
    So for this type of problem how to over? I can put in the form level validation for all the items. But I would like to do in the record level validation and item level validation. Is it possibel if yes could you please give me how to do it?
    Regards
    SUN

  • Best way for skinning a JSF2.0 application

    Hi,
    I’m wondering what is the best way to skin my application.
    My applications uses facelet templates with css files included.
    The css of my custom components are injected with the @ResourceDependancy annotation.
    My question is if there is a standard way for skinning (in JSF2.0)
    Thanks for the suggestions.
    Pieter

    There is no boxed feature for skinning, however, it should be possible using the @ResourceDependency annotation.
    If each skin is contained within a resource library, then you can refer to the library via EL expression within the annotation:
    @ResourceDependency(library = "#{user.selectedSkin}", name = "style.css")
    selectedSkin resolves to a library name included with your component library.

  • What is the best way to port complete applications from DEV - Test - PRD?

    Hi,
    One of my customers recently asked me, Supposing I do the complete integrations and modelling in SOA Suite on the DEV Environment. Then,
    What is the best way to port complete applications from DEV -> Test -> PROD ??
    Also, since the URLs in use in the DEV environment would be very different from other environments, what is the easiest way to maintain them, and to build in Access Control mechanisms ?
    Best Regards

    Hi AJ,
    Nice PDF !
    Though the PDF does give a basic idea as to how we can go about the deployments using ANT and EM in Test and Prod, it doesn't really give extensive details. For eg. ANT would obviously need huge ANT scripts to be written for migrations to multiple Test servers, etc.
    Similarly, when we talk about EM, does it mean each of the services has to be manually deployed on Production ?
    I am sure we would be looking more towards a fully automated solution. No ?
    Best Regards
    Nitin

  • What is the best way to port complete applications from DEV - Test - PROD

    Hi,
    One of my customers recently asked me, Supposing I do the complete integrations and modelling in SOA Suite on the DEV Environment. Then,
    What is the best way to port complete applications from DEV -> Test -> PROD ??
    Also, since the URLs in use in the DEV environment would be very different from other environments, what is the easiest way to maintain them, and to build in Access Control mechanisms ?
    Best Regards

    It has been discussed here in detail-
    SOA 11g  Composite Deployment across multiple Instances: Best Practice
    since the URLs in use in the DEV environment would be very different from other environments, what is the easiest way to maintain them, and to build in Access Control mechanisms ?You may use deployment plan for this purpose. For access control, you may use Role Based access of Weblogic and EM. Please refer -
    http://download.oracle.com/docs/cd/E17904_01/integration.1111/e10226/appx_roles_privs.htm#BABIHDFJ
    Regards,
    Anuj

  • What is the best way to build an app?

    what is the best way to build an app?

    I've never done it, but sure, all sorts of companies will contract to code up an application for you - big companies like Honeywell and General Dynamics to Joe Programmer free-lancing out of his house will contract for computer coding projects.  Without knowing details of the app to be developed I have no idea what it would cost or how long it would take.  Some of the free-lance programmers I personally know bill out at over (some, well over) $100/hour.
    If you really think your idea is great, then be sure to approach discussing it with a developer as a business transaction.  Almost every company will have an unsolicted ideas policy in place (Apple explicitly does under their legal information page) and any unsolicited ideas sent in become the intellectual property of the company (by sending the idea unsolicited, you have legally "given" it to them).
    P.S. as to how long to learn how to program well?  Some people spend an entire college degree's worth of time and effort to master that.

  • Book Recommendation for Building Swing Applications

    I'm looking for recommendations on books for building swing applications from the ground up.
    I'm not a strong GUI developer. 95% of my experience has been strictly on back end development in many other languages. What little GUI experience I have has been with C++ (years ago) and most recently with HTML.
    I know what I want to develop, and even have the GUI design for my application drawn out. I just need a good book that can walk me through developing the interface in Java.
    I already have several books on Java. But, I find them somewhat limiting because they don't help me build the app from the ground up.
    Yes, I've tried the online book on the Sun site, "The Jfc Swing Tutorial: Guide to Constructing Gui's".
    Please offer some recommendations and reasons on why you like the book.
    Thanks.

    A few comments to that ....
    the first thing is understanding the LayoutManagers, that are available.
    I will give you a short guideline where they are usefull:
    FlowLayout - usefull for JLabel-JTextField combinations or several JButtons
    BorderLayout - usefull for the structure of basic containers
    CardLayout - usefull for every area of the screen, where you want to appear different panels
    GridLayout - usefull for a group of same-sized components laid out in a grid
    GridBagLayout - usefull for a group of components, that have different sizes, very flexible
    JTabbedPane - a special container, that is similar to CardLayout but with visible tabs to switch panels
    Normally you can say "I want that group at the bottom of the frame, that other group at its left side, that toolbar at its top" - if you can say so - that shouts for BorderLayout. If you can say "in this area I want to use several panels" that means CardLayout or a JTabbedPane.
    You see, if you have an idea, what the LayoutManagers do, you know exactly which area needs what Layout - so you have a guideline, which LayoutManager to use in that panel.
    To make an example:
    You want 3 buttons centered at the bottom of a frame - this 3 buttoms should be of that size, that is needed by the button texts. So, what to do:
    1. create a JPanel with FlowLayout
    2. create the buttons and add it to that JPanel
    3. create another JPanel with BorderLayout
    4. add that first JPanel to the second JPanel at BorderLayout.CENTER
    5. add this Panel to the ContentPane of the frame at BorderLayout.SOUTH
    that is a simple panel in panel construct - placing 3 buttons centered at the bottom of the frame. You have to play with that different LayoutManagers a little bit - the way you stick one panel in another changes the look of the GUI - if you know, how it changes (by playing with the examples of the tutorial), you will have that "from the ground"-experience, you are looking for - believe me.
    greetings Marsian

  • Best way for capturing HDV

    Best way for capturing HDV
    using easy setup setted to HDV1080 50i (camera is a Sony HDV HC1) captured video look like sh...
    and when exported with compressor is worst!
    some idea?

    Ok fantastic ! you are right (the frustration was talking for me)
    video is shooted in 16:9 HDV 1080 50i
    Captured video looks:
    full of orizontal lines (that look like scan lines) expecially evident on figure edges and on motion subjects
    and
    like it was resized 1440x1080i from a different lower resolution
    video is exported with compressor
    MPEG-2 3.7Mbps 2-pass 16:9
    Description: Fits up to 150 minutes of video with Dolby Digital audio at 192 Kbps or 120 minutes with AIFF audio on a DVD-5
    File Extension: m2v
    Video Encoder
    Format: M2V
    Width and Height: Automatic
    Pixel aspect ratio: default
    Crop: None
    Frame rate: (100% of source)
    Frame Controls: Automatic
    Aspect ratio: 16:9
    Field dominance: Auto detect
    Average data rate: 3.7 (Mbps)
    2 Pass VBR enabled
    Maximum data rate: 7.5 (Mbps)
    High quality
    Best motion estimation
    Closed GOP Size: 1/2 second, Structure: IBBP
    DVD Studio Pro meta-data enabled
    In these case the first problem is i can't obtain 16:9 format an the lines becomes more more evidents
    software is Final cut Studio HD
    camera is Sony HDV HC1e
    hope I wrote all the info
    Thx

  • Best way for Email Notifications in EWS Managed API 2.0 [ Exchange Server 2013]

    Hi ,
    I want to know best way for Email Notifications in Exchange server. My
    organisation has 
    10 users, i want to get notification if any user mailbox got any new mail.
    i need to create API,
    that was consumed by another Team in their Application.
    I am using Exchange server 2013.
    Please share Your Ideas.
    Thank you

    Take a look at EWS Notifications
    http://msdn.microsoft.com/en-us/library/office/dn458791(v=exchg.150).aspx .
    Cheers
    Glen

  • Best way to build an web-based voice record player

    Could anyone please guide me on what technology to use to
    build a online voice recorded that would record a users voice using
    a flash player from a website and then the voice is saved on the
    server side. What would be the best way to build something like
    that.
    Thanks,
    Ket

    Use Flash or Flex for the client side, and Flash Media
    Interactive Server on the server side.

  • What are the best ways (for best performance) in MII to process the incoming process messages from shop floor systems to SAP ECC 6.0 and vice versa?

    Hi All,
    Can you please suggest to choose the best ways (for best performance) in MII (12.2 on NW 7.3), to process the incoming process messages from shop floor systems to SAP ECC 6.0 and vice versa?
    Thanks

    Hi Surya,
    Best practices for flow of data from ECC --> SAP MII --> Shop floor & Vice verse:
    1. Send ECC data through IDOC's/RFC's as messages to SAP MII message listener and BSL transaction process data and update directly on shop floor database as if you configured in Data services or later send those data by web service to shop floor system (i.e. depends on Shop floor machines).
    From Shop floor:
    shop floor --> SAP MII --> ECC
    1. Use either Web service or fetch data from DB and pass data to BAPI's  for sending to ECC through BLS transaction.
    Regards,
    Praveen Reddy

  • Best way to build a website with hundreds of pages

    What is the best way to build a website with hundreds of pages that include businesses in every city of the U.S. I will be building it in Dreamweaver CS4 and pulling the data from an MS Excel spreadsheet.
    I started building it by building the first page and then saving a new page with new data and so on.
    There must be a way to pull from the Excel doc without copying and pasting each page of data, and there must be a way to build this site smaller and easier to make changes when needed.
    Thanks

    You already have other people addressing the DB issues - so I will bring up the other... You are just saving a copy as a new page and then copy and pasting the changed content into  it?
    What you want to do is take the first page, once you have your design done - and save it as a template (file - save as - Dreamweaver Template).
    Then you want to select the areas (most likely the divs you have content in) that will have content changed, and select the div or p or whatever element... and go to Insert - Template Objects - Editible Region.
    Make sure you don't made editable the areas that are the primary design - such as a logo element, a header image, the navigation etc.  If you want to change those - you would do so by making the change on the template, and then it will automatically update all pages made based on that template.
    Once you are done setting up the templates - go to your new page and choose Modify - Templates - Apply Template To Page
    Select the template you just created (note it will be placed inside of a new folder titled "templates" automatically by Dreamweaver).
    Now, any of the areas you selected to add different content into will be selectable, and you can copy/paste or however you are doing so.
    Good luck

  • WHat is the best way for other iphone users to share pictures with me?  I am doing a project which req. people to send me 100 pictures at a time that I'll be putting in my iphoto?

    WHat is the best way for other iphone users to share pictures with me?  I am doing a project which req. people to send me 100 pictures at a time that I'll be putting in my iphoto? thank you.

    ingridlisa,
    I'd suggest to ask them to create Shared PhotoStreams and to invite you to view the streams, see:
    iCloud: Using and troubleshooting Shared Photo Streams
    Regards
    Léonie
    Added:
    that I'll be putting in my iphoto?
    Will you be collecting the photos in iPhoto on your iPhone or on a Mac? On a Mac a Shared PhotoStream requires Mac OS X 10.8.2.

  • Acrobat Standard XI, but can only find the CD for windows.  I have a mac (I have access to an external CD drive and I have the product keys for windows).  What is the best way for me to install it?

    Hi, I purchased Acrobat Standard XI, but can only find the CD for windows.  I have a mac (I have access to an external CD drive and I have the product keys for windows).  I have never installed it anywhere else.  What is the best way for me to install it?

    Hi lintonm86921521,
    I can understand your concern & will guide you through this.
    I am so sorry to inform you that Acrobat XI Standard is not available on Mac, you can only use it on your Windows computer.
    You can also refer to the system requirements at : System requirements | Acrobat family of products—older versions (XI, X, 9)
    In case if you have any further query please let us know, we will be happy to help you.
    Regards,
    Aadesh

  • HT4914 I purchased iMatch because my old computer was failing and I was afraid of losing my music library. Now I bought a new laptop; what is the best way for me to transfer my library to my new laptop? Will iMatch help me do this?

    I purchased iMatch because my old computer was failing and I was afraid of losing my music library. Now I bought a new laptop; what is the best way for me to transfer my library to my new laptop? Will iMatch help me do this?

    Is/was failing or has failed?
    If the old computer still runs one of these methods may be best.
    Method 1
    Backup the library with this User Tip.
    Restore the backup to your new computer using the same tool used to back it up.
    Deauthorize the old computer if you no longer want to access protected content on it.
    Keep your backup up-to-date in future.
    Method 2
    Connect the two computers to the same network. Share your <User's Music> folder from the old computer and copy the entire iTunes library folder into the <User's Music> folder on the new one. Again, deauthorize the old computer if no longer required.
    I'd recommend method 1 since it establishes an ongoing backup for your library.
    I don't have personal experience with iTunes Match, but in principle you should be able to download all the tracks currently registered to your iTunes Match account. This isn't quite the same as restoring your previous library exactly as it was. There is always the potential for iTunes match to provide the wrong version of a song and could be content such as movies, podcasts, audiobooks etc. that would have been excluded.
    tt2

Maybe you are looking for

  • BADI implementation is not working in background for MRRL

    Hai frnds, BADI: MRM_WT_SPLIT_UPDATE is used for deducting withholding tax in MRRL(Invoice verification). This BADI was implemented and working fine in foreground, but not working in background. After implementing the BADI, the standard method of cal

  • How do I remove the icon that appears while scrolling that makes my scrolling go wild

    When I am trying to scroll up and down a page a small upright oval appears wit a line across the middle and a dot in the top and bottom half, My scrolling then goes wild, what is this symbol called and how do I remove it from Firefox on my Mac? I hav

  • Generating large amounts of XML without running out of memory

    Hi there, I need some advice from the experienced xdb users around here. I´m trying to map large amounts of data inside the DB (Oracle 11.2.0.1.0) and by large I mean files up to several GB. I compared the "low level" mapping via PL/SQL in combinatio

  • Crystal Reports 2008 using Outlook/Exchange data source

    Hi experts !  We are running a BOXI r3.1 FP 3 on dev and prod. I recently built a report that uses the Outlook/Exchange data source, where a Sharepoint Calendar is shared to Outlook. The report runs fine in CR 2008.  I publish it to the Enterprise, a

  • Download Button Missing Since Update

    I see some posts about "hiding" the download button, however, I am posting this message because since the 2.0.2 update, I am no longer seeing the download button on my website. I am referring to the button that would appear above a selected photo. It