Need design Patter for GUI

Hi Guys,
I am developing GUIs using Swings. Is there any design patterns available for the GUIs. I know there is good design patterns are available for J2ee. Can any body give me the URL from where I can get the design patterns?
Thanks in advance.

Model / View / Controller is the classic.
It's described here, along with an explanation of how it relates to Swing:
http://www.javaworld.com/javaworld/jw-04-1998/jw-04-howto.html

Similar Messages

  • Need design Docs for Business One.

    HI All,
    Background: I  am from a SCM background and wanted to familiarize myself with SCM software of SAP specifically for the SMB market.
    What I want to learn: As mentioned above, the SCM solution of SAP for SMB market...all modules related to WM (Warehouse Management).
    My interest in Architecture/Application: Both - technical as well as functional aspects of the SCM with a focus on WM.
    From my perspective for SCM all modules of WM - Receiving, Putaway, Wave, Cross-Docking etc.
    Will it be possible for you to assist me find some relevant documents/ppts regarding the same?
    Thanks in advance,
    Harsh.

    Hello Harsh,
    Good to learn about your interest in knowing the WM side of SAP B1.
    SAP Business One (out of the box) does not really have a WM / WMS module to handle the different aspects of the warehouse function.
    This is being supplimented by a few Add-ons which provide this functionality to SAP B1.
    RadioBeacon is one such addon from a company called Accellos based out of Toronto, Canada.
    CitiXsys also has a WMS solution for Business One and that apart there are a few.
    Pretty much all software would handle the basic WMS functions of Receiving, Putaway, Picking, Cross dock, Replenishment etc.
    Unless you work with the specific Addon you would not have anything to learn on the SCM / Logistics / WMS side right out of Business One.
    Let me know if you need more details
    Suda

  • Need design hints for Managed class

    I need help understanding the underlying LCDS mechanisms when a complex object hierarchy is managed in LCDS.  I have a custom Assembler because I have specialized persistence requirements.  My object hierarchy is basically the following:
    Document
        Chapter
            Page
                Text
    Document is the [Managed] class.  When a new Document is created, it is initialized with a Chapter.  Pages and Text are created when the document is edited.  I create new instance of Document and initialize it with an instance of Chapter.  On the client, I invoke the DataService using the createItem method.  My custom Assembler is called, I do the necessary persistence operation and return.  Back on the client I receive the ItemReference containing the AS Document.  This all works ok.  I am now faced with the runtime operations when the user starts creating Chapters, Pages and entering text.
    Given that I start the editing session with a single ItemReference, I don't understand how to handle the Document sub-tree.  The LCDS documentation says the purpose of the [Managed] class tag is so the entire object tree does not need to be transmitted when a property changes on a child object.  Its the responsibility of the sub class to keep the remote object in sync.  But, I don't know the best way to go about doing this.
    The [Managed] annotation makes the properties of the managed class bindable.  I can add an event listener to the ItemReference to handle property changes on the Document, but what about the rest of the object tree?    Do I explicitly make the properties of the child objects bindable?  Do I make each parent object an event listener for its child object properties and propagate the event up the tree?
    Any suggestions or patterns to make this a little more understandable would be greatly appreciated.

    If Hibernate cannot read/write your persistence layer (i.e. its not a database) then you probably wont be able to deploy a model and have the server side 'just work'.  You can specify the assembler class in the model annotations and we will configure a destination of that type for each entity (you can specify a custom assembler for each different entity).  This may not be a road that you want to go down, as manually configuring each assembler for each association will give you more transparency and control.
    But you can still use the model in FlashBuilder to generate all of your client side value objects and you may be able to use the generated service wrappers.
    Note that for each association, you will need an assembler.  So there is the Document assembler, the Chapter assembler and the Page assembler.  Each one is responsible for managing the persistence of each item type.  You would then define the <one-to-many> relationships in the destination config, along with the destination that manages that type of item:
    <destination id="DocumentAssembler">
      <metadata>
        <identity property="id">
        <one-to-many property="chapters" destination="ChapterAssembler" lazy="true" paged="true" page-size="10" />
      </metadata>
    </destination>
    <destination id="ChapterAssembler">
      <metadata>
        <identity property="id">
        <one-to-many property="pages" destination="PageAssembler" lazy="true"  paged="true" page-size="10" />
      </metadata>
    </destination>
    And so on for PageAssembler.  This is how the system can manage each item class.  I made the associations lazy and paged, but you don't have to do this if you don't need it.
    On the client, each of the managed collections (Documents, Chapters, Pages) is monitored for changes and the appropriate create/update/delete in the assembler is performed when a commit() is called.  You perform a DataService.fill() on the "DocumentAssembler" destination to start things off, you get back a managed collection and just go to town, modifying the whole object tree as you see fit, then calling DataService.commit() on the Document, and all of the nested 'stuff' that you did will be persisted to each assembler for each type of collection (documents, chapters, pages).  It is pretty powerfull.
    To help reduce the work, you can use a model to generate code, then never generate it again.  Or just define the AS value objects manually, using the generated code as a guide.  The trick is to make sure the collection properties like "chapters" and "pages" are labeled with the [Managed] metadata.
    There are plenty of 2 level association examples on the DevCenter and out in the web (check out Tour De LiveCycle for instance).  You are just going down one more level.
    All this being said, you can skip most of this and just have a single destination that does Documents and takes a full object graph of stuff each time.  This will be pretty 'blunt force' as the whole Document will be handed to the updateItem function and you have to figure out how to persist it and all its sub-properties.  I am not familiar with Jackrabbit, so I don't know how fine grained your persistence is.
    Anyway, let us know what you come up with!

  • OO design problems for GUI game

    hi
    im learning about OO design by making a game with Java. with the help of a few people on here i have come up with a OO design, but because it was more OO than im used to im having problems working with the design. basically my problem is as follows . . .
    I have a main class . .
    import java.awt.geom.*;
    import java.awt.*;
    import javax.swing.*;
    class RunMe extends JFrame {
      public RunMe() {
        super("GAME");
        //all the menu
        setJMenuBar(mnb);
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        Container content = getContentPane();
        Table theTable = new Table();
        Hint aHint = new Hint();
        getContentPane().add(theTable, BorderLayout.CENTER);
        getContentPane().add(aHint, BorderLayout.SOUTH);
        setSize(900, 560);
        setVisible(true);
        setResizable(false);
    public static void main(String args[]) { new RunMe();}
    }as you can see i have created a Hint object and added it to the content pane. Now my problem is that i want to access a method in Hint that would allow me to change the JLabel that is displayed in Hint. However since hint was created in a constructor i cant access the Hint object which i added to the content pane.
    How can i access a method in the hint object please.
    Any help is much appreciated. Thank you
    here is the code for Hint . . .
    import javax.swing.*;
    import java.awt.*;
    class Hint extends JPanel {
    String hintText;
    public Hint(){
        setBorder(BorderFactory.createLineBorder(Color.black));
        hintText = ("my label");
        JLabel hintTxt = new JLabel(hintText);
        add(hintTxt);
    }

    The hint will be accesible to any member of class in which the hint is declared globally...
    public class SomeClass {
      private Hint hint;
      public SomeClass(){
        hint = new Hint();
      private void someMethod(){
        // I have access to the hint object, and would love to change
        // the text in the hint, if only there were a method in the Hint
        // class that would allow me to do so -- say -- a method
        // named setText that takes a string argument.....
    }

  • Anyone knows simple, easy to use, design apps for iPad ?

    I am now using "numbers" for my iPad, it is easy to learn, use and very useful also cheap price. I love it.
    Now I need design apps for making simple  lay out of a 5 storey building.
    Auto cad maybe too complicated.
    Can anyone tell me what good design apps for iPads but as ease of use as the "numbers" ? Thx.

    Here is their list of compatible apps and I do not see ibooks on it.
    http://airturn.com/ipad-apps/apps/ipad-apps

  • I am a studio graphic designer needing to purchase a color jet printer to handle small business takes.  I am trying to decide on the Epson WorkForce Pro WP-4530 All-In-One Printer  OR the HP Officejet Pro Premium e-All-in-One (need second tray for envelop

    I am a studio graphic designer needing to purchase a color jet printer, for my iMac, to handle small business tasks. I am trying to decide between the Epson WorkForce Pro WP-4530 All-In-One Printer  OR the HP Officejet Pro Premium e-All-in-One (need second tray for envelopes).   
    Do you have any recommendations?

    I am a studio graphic designer needing to purchase a color jet printer, for my iMac, to handle small business tasks. I am trying to decide between the Epson WorkForce Pro WP-4530 All-In-One Printer  OR the HP Officejet Pro Premium e-All-in-One (need second tray for envelopes).   
    Do you have any recommendations?

  • Need a Free designing program. for example: something to help me make shirt

    Need a Free designing program. for example: something to help me make shirt graphics, posters, and other designs. i do not think my mac came with any such program. i have ilife 08 but i dont think anything there can help me?

    Got to VersionTracker or MacUpdate and search.

  • I purchased Creative Suite 6 Design Standard for windows, but I now have a MacBook, how can I download it onto my Mac - please tell me I don't need to spend another £1000!! :(

    I purchased Creative Suite 6 Design Standard for windows, but I now have a MacBook, how can I download it onto my Mac - please tell me I don't need to spend another £1000!!

    Change product platform or language
    You can swap languages/platforms for a latest version product (CS6 only) if you follow the instructions at the following link:
    http://helpx.adobe.com/x-productkb/policy-pricing/order-product-platform-language-swap.htm l
    Alternative: If you wish to continue using the software on the Windows machine as well then your only recourse without buying again would be to install a Windows emulator on the Mac so that it has the rght environment to install in

  • WYSIWYG GUI design tool for the JavaFX platform

    hi can anyone help me where to download this tool (WYSIWYG GUI design tool for the JavaFX platform) ?

    gimbal2 wrote:
    rukbat wrote:
    gimbal2 wrote:
    That's a different question entirely dude. Open a new thread with a proper title and be sure to give more information than you're giving here; the exception you get and the code that "does not work" is especially important.They already had a new thread, four minutes before trying to hijack their own issue here.
    Ensemble  Example :  Minimize, Maximize  (pbm)  after drag and move
    Hopefully they'll reply to themselves over there with sufficient information for someone to give a proper reply.I object to this behavior. Someone should nuke something.Consider it done.
    This thread is locked because the O.P. has mucked it up.

  • Help needed to create Drop down help through Design layer for attribute

    Hi All,
    Has anybody created a Dropdown help through Design layer for standard field, there we have check Box ............
    Please Help me to know this ASAP....
    Edited by: Pankaj Gupta on Feb 26, 2010 10:52 AM

    Hi,
    Here is the exampel Program, i am sending the code for a Paramter, If you want this for the Select-options, then you need to have the paramer name as PS_PARM-LOW and you need to write the smae logic again for PS_PARM-HIGH to get the List box for the select-option
    REPORT ZLIST.
    TYPE-POOLS: VRM.
    DATA: NAME  TYPE VRM_ID,
          LIST  TYPE VRM_VALUES,
          VALUE LIKE LINE OF LIST.
    PARAMETERS: PS_PARM(10) AS LISTBOX VISIBLE LENGTH 10.
    AT SELECTION-SCREEN OUTPUT.
    NAME = 'PS_PARM'.
    VALUE-KEY = '1'.
    VALUE-TEXT = 'LINE 1'.
    APPEND VALUE TO LIST. VALUE-KEY = '2'.
    VALUE-TEXT = 'LINE 2'.
    APPEND VALUE TO LIST.
    CALL FUNCTION 'VRM_SET_VALUES' EXPORTING ID = NAME VALUES = LIST.
    START-OF-SELECTION.
    WRITE: / 'PARAMETER:', PS_PARM.

  • Need new computer, what requirements for ACS 4 Design Premium for Windows

    My old computer is dying. What do I need to know before getting a new one to be sure  my Adobe Creative Suite 4 Design Premium for Windows can still work.
    My computer now says 64x2 dual core processor, does that mean I could get a 32 or a 64 bit?
    I'm on Windows XP, will it still work in Windows 7 (if I can find that) or Windows 8?
    Anything else I need to look out for?
    I want to save my old hard drive so I can put my old documents, pictures, etc., on the new computer's hard drive. I never registered this program but I do have the serial number on the pack of CDs. Will there be any problem reinstalling them on the new computer?
    Thanks

    yes it will work with win 7 and with win 8 though there seem to be more problems (of all sorts) with win 8.  you can get 32 or 64 bit to use cs4 (and all older software).
    you may need to use compatibility mode to install cs4.

  • Question about Object-Orientated design for GUI'S

    Hi everyone,
    I am designing a simple GUI, which basically enables a user to input and retreive data.
    So I have a prototype GUI lets call it "myFrame". It extends JFrame, and I place my components onto myFrame, JButtons, JTextfields etc. I have the GUI set up the way I want it, so I move onto implementing the actionListeners.
    The problem is that one of the components I have placed on myFrame has its own mouseListener. Its a type of Icon (i created in a seperate class)which extends JComponent, and I thought it would be sensible to give it control of its own mouseListener, so it cuts down on the code within the myFrame class.
    But I now realise that I can't alter the other components on myFrame from within the mouseListener in the icon class. I know the icon class doesn't have access to any of myFrames methods or instance fields, so how do I correctly implement this. Surely the answer isn't to bung all the code together into one class?
    visually what I have so far looks like this
    SERVER <---Requests---> myFrame --------> IconList ---------> Icon
    the IconList class looks up a server to update its array of Icons[]. But when one individual Icon is clicked on myFrame, i want its mouseListener to load some of its values onto myFrame's GUI components.
    I hope I'm making myself clear, im sorry if this seems like a muddled incoherent question, but any advice would be great. I only need to be shown the correct way to design, and then i carry on coding happily. If this kind of design is way off, please let me know!!
    Thanks

    You can absolutely do work on the frame from the mouse listener--It just needs an instance. i.e.
    public class MyMouseListener implements MouseListener {
      private MyFrame frame;
      public MyMouseListener(MyFrame frame) {
        this.frame = frame;
    }Does that make sense?
    That said, what you'll see more often is a Model-View-Control approach, wherein the Control (the mouse listener in your case) effects the Model and the Model notifies the View to update its display, rather than the Control updating the view directly. That's the extreme overview version, lots of good hits on google if you're interested beyond that

  • Need to re-download Creative Suite 6 Design Standard,  FOR MAC (not Windows)

    How do I re-download Creative Suite 6 Design Standard,  FOR MAC?
    Jay

    CS6 - http://helpx.adobe.com/x-productkb/policy-pricing/cs6-product-downloads.html
    You can also download the trial version of the software thru the page linked below and then use your current serial number to activate it.
    Be sure to follow the steps outlined in the Note: Very Important Instructions section on the download pages at this site and have cookies enabled in your browser or else the download will not work properly.
    CS6: http://prodesigntools.com/adobe-cs6-direct-download-links.html

  • I need ready code for a simple paint program today

    hi all I need ready code for a simple paint program today for me ics projct
    plz give me a halp on this give me what you have with you and it is so good if it look like this :
    Design a GUI based drawing Java application that works like a simple paint program
    1-There should be a number of buttons for choosing different shapes to draw. For example, there should be a button for rectangle. If user presses the rectangle button, then he can draw a rectangle using mouse. Similarly, there should be a button for each shape(rectangle, circle, ellipse, and line etc.
    2-The shapes can be filled with different colors.
    3-There should be option of moving .
    4- There should also be three menus including File, Shape, and Color menu.
    i. File menu can have menu items New and Exit. If user selects New, the drawing area will be cleared and all shapes will be erased.
    ii. Shape menu will serve the same purpose as of feature 2 described above. It will have menu items for drawing all the different shapes. For example, there will be menu item for rectangle; so user can draw a rectangle by selecting the menu item for rectangle.
    iii. Color menu will serve the same purpose as of feature 3 described above. It will have menu items for all the colors which are shown in color buttons. The user can select a color from this menu and then click inside a shape to fill it with the selected color.

    Read the Swing tutorial. There are sections on how to use menus and painting and all other kinds of stuff you need to do this homework assignment. Nobody here is going to write the code for you:
    http://java.sun.com/docs/books/tutorial/uiswing/TOC.html

  • Design Suggestions for Multiple DaqMX Task Streaming App?

    I'm working on a LabVIEW application in which I'm streaming high-speed data to disk from multiple PXI devices simultaneously.  Each device has its own DaqMX task, and all tasks stream to the same file.  The PXI device configuration (which devices are in the chassis, which slots they're in, and which channels to read from each device) is determined at runtime.
    Does anyone have a suggestion for a design model for this?  To make matters worse, I'd like to be able to specify a channel to monitor its data during the streaming.  I'm thinking the Producer-Consumer model is the basic approach, and I'm at the point where I have an array of DaqMX tasks, one for each device.  I could probably extend that array to be an array of clusters containing:
       1) DAQ Command (e.g. Initialize, Start, Stop, Acquire, etc)
       1) Task ID
       2) Control reference to 2-D array (where each DaqMX read can be stored)
       3) Array of channel names (to allow selection of channel to be monitored
    This could be passed as notifier data, to a data collection subVI, but the part I'm struggling with is finding the best way to run X number of tasks in parallel, where X is not known until runtime.
    Any suggestions would be appreciated.

    Thanks for the input.  With regards to the file format, the decision has been made by my superiors not to use TDMS - unfortunate, but NI hasn't provided the information to write a MatLab file reader, which is a requirement.  So, I've created a custom file format tailored to the needs of my application, but generic enough to be used for other apps. With it, I've been able to stream 8 channels at 800KHz (4 channels each from 2 PXI-6120s) without breaking a sweat.  However, the performance varies greatly depending on which slots the cards are in (but that's a whole different discussion - see the PXI forum for that one).  Once NI solves that one, I'll feel a lot more comfortable.
    I have already made reentrant subVIs that can perform a specific DAQ task.  The problem with a for loop is that the VI sits and wait for a start trigger, then acquires the streaming data.  I can't start the next VI because I'm in the first one.  I thought about creating a data collection VI, and this VI would start up to 6 other VIs in parallel, based on how many and which cards were present.  It's a bit messy, because each slot can contain one of two devices, so I'd need to check which type it was before calling it.  I'm thinking I'll have to create the task list and the references to the data in the main GUI loop, and then pass this using a notifier or queue to the data collection loop. 

Maybe you are looking for