Best method of settings up a multiple section gui

This may not come across clearly, so please ask me to restate the question if you need to.
I wish to create a Swing application that has, say, 5 unique 'pages'; that is to say that there will be five sections, each with a completely different set of components and completely different layout. The layout would be changed on the press of a JButton, handled by an ActionListener. The main things I need to know are:
(1)What is the best way to set this up?
(2)How to I make the transitions between 'pages' smooth?
(3)If possible, how can I place the individual 'pages' in separate classes? This would mainly be to keep things clean and easy to maintain.
Thanks

You can do all that with CardLayout.

Similar Messages

  • Best method: Browsing windows/smb shares cli or gui

    Just wondering what everyone uses.  I just have a few scripts that I wrote to mount my network drives on my network, but when I'm on campus I would like to browse the subnet in the engineering department.  Eventually I'll probably just map the share folder for students, but it's still nice to be able to browse.
    CLI is preferable, but I'm not opposed to GUI if it gets the job done without a fuss.  I'm running KDEmod latest and arch x86 fully updated.
    I've installed g2sc and smb4k (latter doesn't work in kdemod apparently).  g2sc seems like it will work with a little configuration.
    On g2sc it doesnt' prompt for authentication when I click on network/WORKGROUP...........though I can authenticate with my mount cifs scripts quite easily using my Windows share credentials.
    Last edited by DarksideEE7 (2009-09-19 04:28:41)

    Thanks for the info, but I know how to mount shares...........I wrote scripts for all of my network drives on my network (for example)
    sudo mount -t cifs -o username=USER,password=PASSWORD //192.168.0.255/SHARE /mnt/RAID5
    What I'm looking for is a good way to browse resources if you don't know the IP addresses or share names of the servers running the shares.  In our engineering network we have Linux and Windows shares AFAIK, and elsewhere on the wireless it would be nice to browse other resources, such as the computing department (downloading MS Office, etc.)
    I authenticate using my student credentials, so if there are profiles and/or global settings I could use those credentials.....
    EDIT:
    That article links some info on smbclient...........I have a feeling that is the best solution, since it's CLI and straightforward.
    smbclient works great, but I need to figure out which switch allows to list all available shares on the subnet......if anyone knows before I find it in the man pages or elsewhere I'd appreciate the advice
    Last edited by DarksideEE7 (2009-09-19 06:50:49)

  • What is the best method for multiple language interface?

    Hi,
    I need to adapt my CVI application to multiple languages.  But I have to be able to do this on the fly.  The Localizer is great for all the panel objects and this works great.  But I was wondering what the best method is for all the dialog box text?  Right now I'm using const char defines for the text. For exampl:
    const char *CONST_NO_STRING         = "No";
    Is there a simple method, or best practice method, to load different language dialog text at run time or on the fly?
    Thanks,
    Andy

    Not sure if Andy's original concern was settled... but let's try and button this up:
    - The UI Localizer does use a text file with manually-written translated strings for each supported language
    - From the Localizer help: this will only aid in translating the panel labels.
    Use this instrument driver to easily display user interfaces in different languages. When loading a panel or menu bar, you can specify a language file that contains translations for all the labels on the panel and all the menu items. You can create different language files for the user interfaces by translating them with the User Interface Localizer utility (localui.exe).
    - If you have additional content to be translated (like the text inside a drop down box), manually loading from .lwl, or similar, files and programmatically setting those dialog box entries would be the solution. - Looks like CVI should handle multibyte languages just fine (see below), though I have never used them.
    To close, these 2 devzones are good references:
    http://zone.ni.com/devzone/cda/tut/p/id/4036
    http://zone.ni.com/devzone/cda/tut/p/id/3841
    Regards,
    Peter Flores
    Applications Engineer

  • 2006 MacBook Pro died, best methods to transfer data to new MacBook Pro

    So my Rev. A MacBook Pro 2.16Ghz intel core duo finally died, looks like something on the logic board. So I bought a brand new 2011 2.2Ghz MacBook Pro. I have purchase and On The Go 2.5 inch enclosure from OWC, it's a USB device. the old hard drive is now in the enclosure, and I'm awaiting delivery tomorrow, of the new MacBook Pro.
    My question is, what would be the best method to transfer old files. I want to start fresh with library and system files, as well as email IMAP files. my main concern is applications.
    Can I simply drag the actual app from the old app folder to the new app folder? Will it bring along with it preferences and settings? Or do I need all the .DMG files to install the app into the new MBP?
    Apps like; Audiohub, Connect360, Adobe Photoshop, Illustrator, Premiere Pro. honestly there are so many more that I can't remember right now.
    Thanks in advance.

    You can attempt to manually move these files but if it doesn't work then just migrating the whole user and deleting the items you don't want might be the way to go.
    Copy the following files from the old HD to their matching location on the new computer and then restart the computer before you launch any of these applications:
    Safari:  Users / Your User / Library / Safari
    iCal:  Users / Your User / Library / Calendars
    Addressbook: Users / Your User / Application Support / Addressbook
    iChat : Users / Your User / Library / Preferences / com.apple.ichat (there may be more than one of these files.  copy them all over)
    I don't use Skype so I don't know exactly where they store their files but checking in Users / Your User / Library / Skype would be a logical place to start.  You can certainly ask in the Skype forum: http://forum.skype.com/
    Adobe products tend to have bits and pieces scattered throughout.  There may be a simple solution but I would suggest you inquire in the Adobe forums: http://forums.adobe.com/community/photoshop/photoshop_macintosh
    Best of luck!

  • Best method to seamlessly swap someone's face in a group photo with their face in another photo?

    A band hired me to do a photoshoot of them and it was my first time shooting a band professionally so I was and still am quite nervous about the photos turning out well, especially since they're a well known group and the pictures will be published in a magazine and spread around a lot and attributed to me.  The issue I'm posting here about is that all of the best shots I got of the group are good except for one member who will either be making a weird expression or has their eyes closed.  I took a lot of photos but I didn't really get any where each member of the group looks good in the same photo; they each look good throughout the set of photos, just not all at once in one photo.  What I'd like to do is replace that member's face in the otherwise good photo with her face from another photo from the shoot where her eyes aren't closed or she has a better expression...but I feel like I'm playing with fire by doing this since I really don't want it to be obvious that I photoshopped it in any way, either to the band or anyone who views the photos later on.
    I'm decent with Photoshop but I'd still like to know what the best method of doing this would be so that it looks as natural/unaltered as possible.  Any suggestions?
    Also, the photos I'd be switching the faces in were mostly shot from the same angle and with the same lighting and exposure but a few were shot from slightly different angles or the exposure is slightly different, which makes it more difficult.  If, for example, due to flash settings the photo I'm trying to paste a face into (let's call it Photo A) is slightly brighter than the photo I'm trying to copy the face from (Photo B), what's the best way to merge/adjust the two so that the brightness levels in Photo A and the layer from Photo B are as similar as possible?
    (I'm using PS CS6)

    Ideally, if you have several shots from the same place, with that band member's head in a similar angle, you could do something like this:
    1.  Choose the Polygonal lasso tool.
    2.  Set it to feather a few pixels.
    3.  Select around the facial features in the image with the good face.
    4.  Paste the good face on the otherwise good background and move it into position over the bad face.
    5.  Set it to be partially transparent to help you align it.  Use Edit - Free Transform to rotate or scale it if it's off a little.
    6.  Make it fully opaque, and use Curves, etc. to perfectly match the exposure, if it's off a little.
    Clearly you can do this with the mouth, eyes, whole face, etc.
    Example:
    -Noel

  • HT1382 What is the best method to backup an Iphone 3G and then install newer ios without losing any info on the phone?

    What is the best method to backup an Iphone 3G and then install newer ios without losing any data in the phone?

    How to BackUp  >  http://support.apple.com/kb/ht1766
    Key2Paradice wrote:
    What is the best method to backup an Iphone 3G ...
    Note:
    The iPhone 3G can only update as far as iOS 4.2.1
    Connect to iTunes on the computer you usually Sync with and “ Check for Updates “...
    If an Update Appears Install it... if not... you are up to date for your particular Device...
    See the Using iTunes Section Here...
    How to update your iPhone, iPad, or iPod touch

  • What is the best method to provide an option to select "All" for LOV ?

    Some posts sugest that you should "UNION" the origional select with something like (select "all" from dual ) this works as a seperate query but if you want to use and existintg query this is not very clean as viewlinks are not taken into account. We could also pass back an array list and include the all option in the list but that gets away from having the client use the iterator in the pagedef for other requirments of the page.
    Whats the best way to approach this with the new features in 11g?

    How to BackUp  >  http://support.apple.com/kb/ht1766
    Key2Paradice wrote:
    What is the best method to backup an Iphone 3G ...
    Note:
    The iPhone 3G can only update as far as iOS 4.2.1
    Connect to iTunes on the computer you usually Sync with and “ Check for Updates “...
    If an Update Appears Install it... if not... you are up to date for your particular Device...
    See the Using iTunes Section Here...
    How to update your iPhone, iPad, or iPod touch

  • What is the best method to revert back to 'golden' image of database

    Hello,
    I want to have a 'golden' image of my test database. What is the best method to keep reverting back to this 'golden' image after testers are done with testing. What I mean is I want to set up a test database for testers. Testers can insert,update, delete on objects as they like. But after the testers have completed their testing, I want to revert the database back to the 'golden' image. This 'golden' image is the state of the database before testers perform their tests. I need to revert back to the 'golden' image many times over as we have to perform many different tests.
    I thought about export and import (9i database) but takes 6 hours, too long. I tried using rman and was successful the first time, (set until time; restore database; recover database; open resetlogs;). The seconde time using rman, I got error saying the set until time was before the resetlogs time. I think I would have to restore the control file before the resetlog time frame before I can recover to the set until time, again.
    What is a straight forward method to have a 'golden' image so I can keep on restoring back to it? This database is a test 9i database and it is in archive log mode but it doesn't need to be. I just need a best practice method, whether it is rman, exp/imp, manual backup/restore? Something I can use time and time over again. Thank you.

    If it is a Test envionment, can you just take a COLD Backup (database files
    plus control files) ? How big is the database ? What platform is it on ?
    eg in a COLD Backup
    a. If using a script, run multiple "cp" (or cpio/tar) commands in parallel to
    copy different database files
    b. If using RMAN (in NOMOUNT), use multiple Chnanels.
    Note : Remember to include ControlFile Backups and Restores as well.

  • Best method for incremental replication to backup xserve?

    I was just trying to figure out what would be the best method for routinely incrementally replicating a primary xserve. I have a secondary that has the same hardware. I thought about using scheduled tasks with Carbon Copy Cloner over say a Crossover cable to the secondary xserve. However, doing this backup would continually wipe out the network settings for the secondary mac? I could do the replication to a secondary drive and then just make that drive the boot drive in the event of data corruption on the master server?
    Where I'm at now is that the primary server runs Raid1, so in the event of a single drive failure or a hardware failure, I could swap the drives into the backup server. However, I'd like some sort of protection against data corruption on the primary xserve.
    Any general thoughts on a better way to do this? Or is there software that does this well?
    Thanks

    Our primary is an XServe RAID. In addition it has an external 2TB drive that I CCC all the user accounts to every night. I then setup a Mac Mini Server as a replica.
    If the primary XServe has a catastrophic failure, I simply connect the 2TB drive to the Mac Mini and point the replicated user accounts to the cloned data on the 2TB drive.
    I haven't tested it. But this scenario seemed like the best solution.
    Message was edited by: MacTech_09

  • Best method for archiving .mpp files on a separate server or location?

    We want to be able to run a program or job on Project Server 2013 that will export all current published project .mpp files to a separate server or location on our network. What is the best, or suggested, method for something like this? Our managers want
    to have this job run on a weekly or bi-monthly basis in order to have backup files of each active project schedule. This would be beyond the Project Server archive database. This would be for Business Continuity purposes of having those schedules available
    should our servers ever crash. 
    Any help would be much appreciated. I am not a developer, but if there is code available for something like this we have developers in-house that can perform the work. 
    Thank you,
    Travis
    Travis Long IT Project Manager Entry Idaho Power Co. Project Server Admin

    Project server already has an archiving mechanism which backs up project plans based on schedule and maitains versions of it which can be restored at any point ? check administrative backup in central Admin under PWA settings
    However I wouldn't say this is the best method, but you can run a macro which would export all projects and save it at a location(could be network file share), Something like this (havent tested it recently with 2013 but i believe should work
    Sub Archiving()
    Dim Conn As New ADODB.Connection
    Dim Cmd As New ADODB.Command
    Dim Recs As New ADODB.Recordset
    'Connect to Project Server Reporting DB, Get Project Names
    Conn.ConnectionString = "Provider=SQLOLEDB;Data Source=servername;Initial Catalog=ProjectServer_Reporting;User ID=; Password=; Trusted_Connection=yes"
    Conn.Open
    With Cmd
        .ActiveConnection = Conn
        .CommandText = "Select ProjectName From MSP_EpmProject_UserView"
        .CommandType = adCmdText
    End With
     With Recs
        .CursorType = adOpenStatic
        .CursorLocation = adUseClient
        .LockType = adLockOptimistic
        .Open Cmd
      End With
    Dim prjName As String
    Dim ArchivePrjName As String
    Application.Alerts (False)
    If Recs.EOF = False Then
       Recs.MoveFirst
       For x = 1 To CInt(Recs.RecordCount)
        prjName = "<>\" + Recs.Fields(0)
        FileOpenEx Name:=prjName, ReadOnly:=True
        ArchivePrjName = "C:\Temp\" & prjName & "4Sep2014_9PM"
        FileSaveAs Name:=ArchivePrjName, FormatID:="MSProject.MPP"
        FileCloseEx
        prjName = ""
        Recs.MoveNext
       Next x
    End If
       Recs.Close
       Conn.Close
    End Sub
     Let us know if this helps
    Thanks | epmXperts | http://epmxperts.wordpress.com

  • Best method for 8 channel analog control on a microsecond scale

    Thanks for the quick reply, it was most helpful.
    Now that I am restricted to the analog channels I was just wondering as to the best method of control.
    At present I am using the AO Generate waveforms VI, by feeding it a pre-built arrays of data for each of the channels. I found this gave 30us resolution (on the maximum 32767 updates/sec) between values. It doesn't seem as though this is utilising the onboard timer on the card however, rather simply ouputting the signals as quick as possible.
    I tried using one of the counting time or events VIs which utilised the onboard timers, however I had it in a case structure to trigger at certain times which was highly limited by software (as i presumed).
    Basically I was wondering how I can take advantage of the onboard timers to simply trigger voltage changes on channels on a microsecond timescale, I'm sure there is a simple way that is passing me by.
    Any help would be appreciated
    AndyB

    Take a look at the "Function Generator" example under the AO section of the hardware I/O.
    While take a look at the examples that might also intrest you.
    Just aply the same array you are using now to set up the I/O.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Best Method for transfering iTunes library from Windows 7 to Mac OSX

    I just bought a MacBook Air and am in the process of preparing my file transfer. The only data on my computer I really care about is my school/work files, (which are very easy to transfer), and my iTunes library. What is the best method for transfering music?
    I was going to use an external drive and simply drag and drop everything. Last time I did this I needed a special file in order to keep my playlists, top rated, and playcount. Is there an easier and faster method now? I have about fifty gigabites of music so I think it might take longer over wifi.
    I also have an iPhone and have already transfered all of the recent purchases. If I export my library, will all my iPhone backup data stay there as well?
    If anybody has some insight or a link that outlines all of this that'd be great. Thanks in advance.

    Here's a pretty comprehensive "how to"
    http://myfirstmac.com/how-do-i-move-my-itunes-library-from-pc-to-mac-and-keep-my -settings-intact.html
    Make sure the external drive is foratted so both the pc and the mac can read and write to it.
    http://howto.cnet.com/8301-11310_39-57401784-285/the-best-ways-to-format-an-exte rnal-drive-for-windows-and-mac/
    good luck.

  • Best method for rounded corners?

    Hi all,
    Can someone please share the best method for creating rounded corners similar to the menu interface in Leopard? Actually the best representation I've seen, is in the Motion 3 Tutorials - Working with 3D. The Matte Shape filter in FCP is close, but not quite the cigar I'm looking for.
    Thanks!

    Hi Jim,
    • Select Clip
    • Add 4 point Garbage Matte
    • Activate all 4 corners by clicking on the labels 1-4
    • Adjust settings to your desires.
    As an example I used:
    • Smooth = 12
    • Choke = -47
    • Feather = 2
    Worked like a charm.

  • Best method for data acquisitio​n applicatio​n

    Another Newbie question:
    I have a different application that I am working on (preliminary development stage) and I would to perform the following steps but I am not quite sure what the best method to complete the task
    1) acquire data   
    2) wait 60 minutes (at this point at a later time I will add code to turn oven on)
    3) acquire data
    4) wait 60 minutes ( at this point, at a later time I will add code to turn oven OFF)
    5) acquire data
    6) END
    Currently I am using a modified example of the Agilent 34970A.  I can sucessfully contol the agilent meter and get data using labview (chart and log to lvm only).
    I am looking ahead for the main intention:
    Ideally the user of the application will list channels desired to acquire data from and make an association to a serial number (havent figured this part out yet) and then push the START button and walk away.  At the very end the Initial / Hot / Return data would be obtained, calculations performed, and a printout made.
    I am looking a good starting point to work off of whereby I can continue my baby steps.  Should I use Event driven or a sequence?
    Any good examples?
    Thank you for your time

    jqm,
    It seems like you have figured a good state machine model for your application. I am attaching a more elaborate state machine example than what is available in Example Finder. It uses a Producer/Consumer scenario with queues to pass data between two loops. You can follow that example to create your application. You might not be able to run the program unless you configure your Data Acquisition hardware to correspond to the software settings. However, you will be able to see the overall structure pretty well.
    Study the example well to see how data is passed from one state to another. For your wait time you can use either Elapsed Time VI or Wait VI.
    Hope that helps.
    Kalin T
    Applications Engineer
    National Instruments
    Kalin T.
    National Instruments
    Attachments:
    State Machine Example.zip ‏426 KB

  • XML processing best method

    version 10.2.0.3.0
    (long time lurker, first time poster)
    Hi all,
    I am new to XML processing. Please suggest the best method to accomplish my needs as described below.
    I am developing a package that is accessed by a .NET app. The package needs to provide routines that extract data from multiple tables and pass that data - in an XML formatted string parameter - to the calling app. Other routines will accept data from the calling app - in an XML formatted string parameter - and write that data to multiple tables in the database. We prefer not to pass data in a file but would rather pass data in a procedure parameter.
    I have reviewed several documents on the subject but am confused with the best/quickest approach given all the different methods that are available. I am already developing the packages and could use some advice in accomplishing this as quickly as possible.
    Thanks in advance ya'll,
    Louis

    Hi Lou,
    Welcome to the forum.
    Perhaps you should try the XML forums (as well):
    http://forums.oracle.com/forums/category.jspa?categoryID=51
    General XML
    I'm sure you'll get some advice there.
    We're mostly sort of '(PL/)SQL'ized' on this forum ;)

Maybe you are looking for

  • Oracle 10g Client R2 Install

    Hi, I have recently installed the Oracle 10g Database release 2 and now want to install the client. I would like to install the client on the same pc as one of my standard users so I can write scripts(using sqlplus) and run them as this user, but the

  • Is there a way to programmatically assign the "Submitted By" id number to a WebApp Item?

    I have two web apps that I want to link to one another.  Can I programmatically assign the submitted_by value to it.  Is this possible?

  • MM & WM Inventory Load

    Hi All, To load MM & WM inventory I need to fill BMSEG & RLBES structures. Movement Type 561 for Inventory management &  Warehouse Management. I could not find any solution to fill both these structues in one shot (Batch input or BAPI or IDOC). Pleas

  • After restoring how can I get my notes and photos back?

    I plugged my iPad then it shut down and when I plugged it again and it showed that I need to restore it.. Now how do I get my notes and photos back...

  • Error while POF serialization

    Hi i am getting the following error while doing the POF serialization. please help java.lang.StackOverflowError at com.tangosol.io.pof.PofBufferWriter$UserTypeWriter.isEvolvable(PofBufferWriter.java:2753) at com.tangosol.io.pof.PofBufferWriter$UserTy