Swing. What do they use?

Hi guys.
I have been trying to figure out which swing component is used within microsoft outlook (just an example) to represent the list of tasks that you can do.
Generally on the bottom left corner there is a list of clickable items that all display different things in the right part of the split pane.
Do you know what component is used to achieved this? I would like to reproduce this.
Thanks a lot.
Edmond.

I got this from the old Sun forums (see class javadoc) some time ago. I don't even recall if I tweaked it at all or not. Use at your leisure:
import java.awt.*;
import java.awt.event.*;
import java.util.*;
import java.util.List;
import javax.swing.*;
* http://forums.sun.com/thread.jspa?threadID=553713
public class OutlookNavigationBarDemo implements Runnable
  String[] names = {"Mail", "Calendar", "Contacts", "Tasks", "Notes"};
  public void run()
    FloorTab floorTab = new FloorTab();
    for (int i = 0; i < names.length; i++)
      JPanel jp = new JPanel();
      jp.setBorder(BorderFactory.createTitledBorder(names));
floorTab.addTab(names[i], jp);
JFrame f = new JFrame();
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
f.getContentPane().add(floorTab, BorderLayout.CENTER);
f.setSize(200, 400);
f.setLocationRelativeTo(null);
f.setVisible(true);
public static void main(String[] args)
SwingUtilities.invokeLater(new OutlookNavigationBarDemo());
class FloorTab extends JPanel implements ActionListener
GridBagConstraints gbc = new GridBagConstraints(0, 1, 1, 1, 1.0, 1.0,
GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0);
GridBagLayout gbl = new GridBagLayout();
CardLayout cl = new CardLayout();
JPanel panels = new JPanel(cl);
List<JButton> buttons = new ArrayList<JButton>();
public FloorTab()
setLayout(gbl);
add(panels, gbc);
gbc.fill = GridBagConstraints.HORIZONTAL;
gbc.weighty = 0.0;
public void addTab(String name, JPanel panel)
gbc.gridy = getComponentCount();
if (gbc.gridy == 1)
gbc.gridy = 0;
JButton jb = new JButton(name);
jb.addActionListener(this);
add(jb, gbc);
buttons.add(jb);
panels.add(name, panel);
public void actionPerformed(ActionEvent event)
int y = 0;
GridBagConstraints tmp;
JButton srcButton = (JButton) event.getSource();
for (int i = 0; i < buttons.size(); i++)
JButton jb = buttons.get(i);
tmp = gbl.getConstraints(jb);
tmp.gridy = y++;
gbl.setConstraints(jb, tmp);
if (srcButton == jb)
tmp = gbl.getConstraints(panels);
tmp.gridy = y++;
gbl.setConstraints(panels, tmp);
cl.show(panels, srcButton.getText());
EDIT: This example mimics the older style of Outlook via "sliding" panels. For the newer versions, I'd just use a JPanel of JButtons for the lower left navigation panel, and use a CardLayout for the contents depending on which button was clicked.

Similar Messages

  • What are the frequencies all versions of the iPhone 6 and what are they used for (e.g. GSM, 3G, LTE, WIFI, Bluetooth,etc...) provided with channel numbers per frequency

    what are the frequencies all versions of the iPhone 6 and what are they used for (e.g. GSM, 3G, LTE, WIFI, Bluetooth,etc...) provided with channel numbers per frequency.

    Click here

  • What are Wrapper classes and what are they used for ?

    What are Wrappter classes and what are they used for ?..Also, any examples would be great to understand this concept

    Wrapper classes are used to enclose primitive data
    types so that they can be used in instances where an
    object is required. For example, if you want to add an
    integer to an ArrayList, you can't use this:java.util.List al = new ArrayList();
    int i=123;
    al.add(i);because the ArrayList expects data of type object. In
    order to all the integer to the ArrayList, you must wrap
    it in the Integer wrapper class. This works:java.util.List al = new ArrayList();
    int i=123;
    al.add(new Integer(i));Hope that helps.
    Mark

  • What are these and what are they useful for?: and

    I have seen these symbols being used in Java: << and >>, what are they and what do they do?
    Thank you.

    As DrQuincy asks how is this of use over multiplying
    and dividing?In your processor there are often different instructions for shifting, multiplying, and deleteing. Typically the shifting instructions take less time to execute and so using the shifting operator will be faster than multiplying. This assumes the compiler doesn't recognize the situation and optimize it out though.
    The >>,<<,>>>, &,|,and ^ operators are mainly useful when you need to deal with individual bits of data. For instance if you are talking to another system (thats not java) that uses a different method of storing numbers (little endian/big endian etc.), or doing something such as creating parity data for error correction. There are lots of things to do, but most a low level and its rare when you need to use them.

  • What are state objects, and what are they used for ?

    tried to find some information in the documentation and internet. but i couldn't find a good explanation with an example what that is and what it is used for.
    thanks for any good answer !

    Wrapper classes are used to enclose primitive data
    types so that they can be used in instances where an
    object is required. For example, if you want to add an
    integer to an ArrayList, you can't use this:java.util.List al = new ArrayList();
    int i=123;
    al.add(i);because the ArrayList expects data of type object. In
    order to all the integer to the ArrayList, you must wrap
    it in the Integer wrapper class. This works:java.util.List al = new ArrayList();
    int i=123;
    al.add(new Integer(i));Hope that helps.
    Mark

  • Ebrochure Sites What are they using

    Hello All
    I was curious what technology these sites below are using to
    convert pdf into "ebrochures".
    http://www.nxtbookmedia.com/
    http://www.zmags.com/us
    Is this FlashPaper with tweaks in Flash? Are there any
    samples/examples of this around or exchange gizmos that help move
    the conversion along?
    Thanks
    Adam

    Try http://www.pressmo.com You can host ebrochures on your own domain/server, online versions (html), cd version (exe) ...and competitive price (25.0€/33$ for one digital brochure)
    ...and video tutorial, how to make...

  • What are they used for?

    What do firewire ports be used for? Also, what about bluetooth, whats that used for? I read that turning bluettoth off saves battery and stuff, should i turn it off or does bluetooth have a use?

    FireWire is an interface which can be used for connecting external hard drives, optical drives, camcorders, and some other devices to your machine. Bluetooth is a wireless protocol which is used by some mice, keyboards, cellphones, and other portable equipment. If you aren't using any Bluetooth devices, you can turn it off.
    (9305)

  • I am wondering what tools were used in the "Body Evolution" video

    Hi,
    I am wondering what the names of the tools that were used in the "Body Evolution" video? I know somw of them, but I don't know what tools they used for the eyes, nose and to stretch the legs.
    Thank you!

    Station Two,
    I am not in the habbit of, nor do I ever plan to be in the habbit of, photoshopping things to death for the pupose of making it "picture perfect."
    I have always been a person that loves to know how. I may never use it, I just like to know how. Take a look at my work:
    https://www.facebook.com/BenjaminRootPhotography
    I definitely know it wasn't meant to be a tutorial, and personally, I think it's sick when someone photoshops a person like that.
    Like I said before, it all just looked different to me and I wondered what they used.
    I mainly use Photoshop to correct lighting, or to put someone on a different background, or to add a little color to something, or corect some minor things that they request; but a bove all, I alway try to make it look realistic and like the person.

  • What is the use of having process profiles in SPP?

    Dear all,
    what is the use of process profile in spp? it says we use it for specifying packaging methods and packaging sizes, but what are they used for?
    can someone throw some light on it please?
    regards,
    binod

    Hi Binod,
    You define a process profile in Customizing for SCM Basis under Planning Service Manager ® Define Process Profile. A process profile includes a method for package creation and the maximum number of planning objects that a package can contain.
    This is one of the steps in creating a Planning Service Manager Jobs.
    If you setup a PSM job and run it then you get a clear idea.
    Please have a look at the below link:-
    http://help.sap.com/saphelp_scm2007/helpdata/en/42/cc2978ebc16bb1e10000000a1553f6/frameset.htm
    Thanks,
    KD

  • What library to use? [SOLVED]

    I want to write a program that involves some fancy effects (like the kind in a dock such as awn or compiz) and I want to know what library to use - even better what library they use.
    Last edited by Lexion (2009-11-25 20:59:43)

    Well, cairo-dock has some pretty nice effects, and it uses (surprisingly) the cairo libraries.  There are some binary packages of cairo libraries for ruby and python too, if you're planning on using either of those languages, it might be worth having a look at.  I'm not sure how easy they are to use (never personally wrote a program using them), but it should fulfill your requirements.
    Hope that helps,
    Lswest

  • Audition - What are we using it for?

    As someone pointed out in a recent topic (http://www.adobeforums.com/webx?128@@.59b54e04) that "most" topics concern, AA 'bugs' and other hardware and/or OS related problems. Ozpeter rightly explains the obvious reasons for this.
    Maybe I've got too much time on my hands but given my recent experience in developing a support utility for AA (http://www.adobeforums.com/webx/.59b4f363) it has become obvious to me just how diverse the use and the way we all use AA.
    I thought it might be interesting and perhaps even useful and educational for members of the forum (and maybe even Adobe) if users offer some insight into where, how, why and for what purpose they use Audition.
    What do you think about the idea of this sort of feedback in one area (or at all)?

    Well, to answer Runaway in greater detail, I use both AA and Pro Tools. What has driven me from using AA as my main DAW is not only the PTs wonderfully integrated MIDI support (it should be, after all Digis been doing it for a very long time) but what have also become for me serious limitations on AAs part.
    Here are some my issues with AA:
    The VST/DirectX amnesia bug is one whereby AA will not remember session effect settings. I generally prefer to use certain DirectX and VST plugins rather than the AA effects and it takes time to set these up with particular effects and custom parameters assigned to specific tracks. When I exit the session AA forgets the settings. In other words, when I revisit the session for a revision or whatever I have to re-enable each effect as AA reverts to a default setting upon exiting the session. I used to take this behavior as just something I had to live with until I began to use Acid Pro and Pro Tools. It was when I started using other DAWs that I realized AA was seriously broken in this regard.
    Stability is another area where AA falls flat and its only gotten worse with AA 3.0. I found 2.0 to be more stable than 1.5 (which was a nightmare) and I have learned the hard way that with AA you save early and often, otherwise it WILL crash and kill your work from the last save point.
    In all the time I have been using Pro Tools it hasnt crashed once. I value that quite a bit.
    AAs MIDI integration is thoroughly wonked. Why it was even introduced in this condition is one of the great mysteries of the universe. To say - as I have read - that its still in a state of development is understating the situation to say the least.
    And support? Digi releases patches to fix bugs found after release in regular order. So does every other DAW maker for that matter. We still dont know if Adobe is going to fix AA 3.0s bugs or release the fixes as AA 3.5 and charge us for them.
    Ive been using this product since the days of Cool Edit 1x. It was the first DAW on which I learned to edit digital audio. But it wasnt until I began to use Pro Tools that I started to understand AAs limitations and faults.
    And I didnt purchase Pro Tools so I could play with the big boys. It was because I wanted to learn something new and see how far I could push my talent and abilities. I also had the opportunity to pick up some engineering sessions at a local production house and they like many other professional studios here in Austin use Pro Tools. (My buddy Ray Benson of Bismeaux Studios uses Nuendo, but thats another story)
    Once I began to use Pro Tools I began to see what I had been missing: a supremely refined user interface with astounding power and the feeling that I was driving a luxurious and slick program that was a delight to learn and use. Every time I use Pro Tools I find a new reason to love it, as its that deep and constantly opens new ways to appreciate it. The recently released version 7.4 is just mind blowing.
    And as far as having to use proprietary hardware, thats a plus for me. Look at it this way: youre going to have to buy a sound card anyway. If youre a pro you wont be using a Creative Labs card, youll be using a something on a professional level. For a little less than twice what one would pay for AA 3.0 alone you can purchase an Mbox 2 Factory Pro with PT 7.4 and youre good to go. Program and sound card in one. Whats not to like?
    Like I said at the start of this, I still use AA. It has certain features that are still useful to me, such as the Edit window and its audio restoration toolset. But I dont use it for mission critical projects. Its too buggy and too unreliable for that. And I wont automatically buy the next version as I have been doing since the Cool Edit days. I find myself considering other alternatives such as Sound Forge and Wavelab.
    Im not saying AA is a bad productits just that what I need from a DAW has changed and in its current state AA doesnt fit the bill for the majority of my needs.

  • What can I use to make a decent quality QTVR movie under OS X?

    I made a Quicktime VR movie some years ago of my computer room using Apple's Quicktime VR Studio v1.0 under Classic on my G5. I had to use my OLD QuickTake 200 (640x480) camera, since it was a preset in that app and I could not get focal length, etc. right corresponding to my "real" camera.
    http://www.bytecellar.com/qtvr.html
    I'd like to take an updated set of pics and make a rather higher resolution QTVR of the room, but I don't know what app to use. All my Macs are Intel-based now. What is the modern app to use to make a QTVR? This inspired me:
    http://www.airbus.com/en/aircraftfamilies/cabinshowroom/360_degreesviews/ACJ.htm
    What did they use for that?
    Ideally I would use a tool that generates a perspective-correct QTVR-style movie that ran in Flash, but I can't find any such tools to do that for less than thousands of $$. Thanks.
    blakespot

    http://www.airbus.com/en/aircraftfamilies/cabinshowroom/360_degreesviews/media/ACJ.mov
    Is the source file but QT Pro doesn't show what software created it.
    It appears QTVR has been abandoned by Apple so I guess your search for software should start by inquires to those that still create content.
    It used to be a very popular method of Web page "interactivity" and many camera manufacturers included software to create them.

  • What protocol is used in RMI?

    When Client and sever are connected and talk to each other what protocol they used?
    Qurban Ali
    [email protected]

    They use JRMP (Java Remote Messaging Protocol) in "normal" RMI. However, they can now use RMI-IIOP (or RMI over IIOP, IIOP being Internet Inter-Orb Protocol) which allows RMI-implemented Objects to talk to CORBA objects I believe. You can generate Stubs/Skels with this protocol using the -iiop argument to the rmic command.

  • I have some questions about the ios 7.1 security -what if they replace the sim ?

    i khnow now that with the new ios 7 no one ever can format the iphone with itunes if the find my iphone is on in the iphone
    but
    1-what if they remove the sim and put a new sim?
    can i still be able to track it with icloud and send messages to it and play sound and lock it with a passcode even if they remove the sim
    2-what if they using an old version of itunes will they be able to format it as new iphone?
    please answer each question both of them
    i have iphone 4s with the latest ios 7.1

    1-what if they remove the sim and put a new sim?
    can i still be able to track it with icloud and send messages to it and play sound and lock it with a passcode even if they remove the sim
    As I said, if there is a passcode in place they do not know, you will be able to track down the device, irrespective the SIM card they are using. By the way, if the device is locked, they should first unlock it in order to make their SIM work, calling the carrier and giving all your personal data they do not have.
    On the other hand, if the phone is unlocked and does not have any passcode, then yes, they will be able to use any SIM with it and turn off any tracking software.
    2-what if they using an old version of itunes will they be able to format it as new iphone?
    Same as in previous: if they have the iPhone without any lock then yes, they will be able to restore it as a new phone.
    Follow all the instructions here: http://support.apple.com/kb/HT5818 in order to turn on Activation Lock and make more difficult for them to restore your phone without permission.

  • My iphone was stolen and we actually recovered it!  Is there a way I can tell what the thief might have looked at in the interim? I know about hitting the home button twice to see recently used apps, but what if they then swiped to close them?  TIA

    My iphone was stolen and we actually recovered it using the find my iphone app!  Is there a way I can tell what the thief might have looked at in the interim? I know about hitting the home button twice to see recently used apps, but what if they then swiped to close them?  i just want to know if this <bleep> was looking through my private info.  TIA

    Sorry marcia,
    There is no way to tell what activity went on on your device when it was out of your hands.
    Sorry,
    GB

Maybe you are looking for

  • SAP R/3 on Oracle 9i : check online backup

    Hi there, I would like to integrate a check on the status of the online database backup (which runs on a daily basis) into a central monitoring system. On way to do it is to check on OS level for the latest backup log file and read the status at the

  • BUG : Cannot set Nokia Messaging as default client...

    Hi, Nokia Email  v.9.5.3.75 on Nokia E71 (firmware v300.21.012).  Mail for Exchange v2.09.158. I can select 'E-mail'  as default mailbox in 'messages > settings'. However when in Gallery and trying to send a picture from the list it opens Mail for Ex

  • IDOC Status 26: EDI: Syntax error in IDoc (segment cannot be identified).

    Hi All, I have created IDOC extension for IDOC Basic type "PROACT01" and have followed all required necessary steps but getting IDOC Status 26. EDI: Syntax error in IDoc (segment cannot be identified). The exact error is: Please check Error Details a

  • Disable Switch To Tab Function

    ''locking this thread as duplicate, please continue at [https://support.mozilla.org/en-US/questions/1054179 /questions/1054179]'' when i click a link that opens in a new tab for instance gmail opens links in a new tab, firefox switches to this tab. s

  • Utilizing all ports on a 4 port NIC for VMs

    I have in my environment two Dell Host, Dell N3024 iSCSI switch and an EMC-3200 storage. A Broadcom 1Gb 4 port NIC that connect the Dell host to the EMC storage via the N3024. An Intel 1Gb 4 port NIC that connects the Dell hosts to the LAN (I port in