Resetting the display window

Somehow I lost the document toolbar from the tomp of the window, then switched the code and design windows and the more I try to get everything back the way it was the more it gets messed up and I can't seem to undo anything. How do I get it back to the way it was originally installed?

Better to post this in the main DW forum. This one's more for developers and code.
Which version of DW?
Try Window > Workspace Layout > Reset

Similar Messages

  • In After Effects when I use the Color Finesse 3, A grid appears in the display window. How do I turn that off?

    When I click on Affects, then Synthetic Aperture, then SA Color Finesse 3 in the Creative Cloud a grid appears over the video in the display window, and I am un sure how to take that off?

    Color Finesse 3 LE is included with After Effects and is installed automatically when After Effects is installed. The only reason to upgrade to the paid version is if you want to use Color Finesse in Premiere Pro as well as in After Effects.
    Since it's a college computer, do you have the ability to install/uninstall software? Many colleges lock down the computers to limit such access. You'll need full access, including an admin password, to use the following steps. If you're not allowed the necessary access, you can pass the following along to whoever does computer administration.
    To remove the trial version, delete the entire "Synthetic Aperture" folder found in:
    /Library/Application Support/Adobe/Common/Plug-ins/7.0/MediaCore
    (Note that this is the Library folder at the base of your boot drive, not the one in your home folder.)
    Next, re-enable the bundled version of Color Finesse by going to the following folder:
    /Applications/Adobe/Adobe After Effects CC/Support Files/Plug-ins/Effects/Synthetic Aperture
    Now, within that "Synthetic Aperture" folder you'll find a plug-in with parentheses around the name:
    (SA Color Finesse 3 AE64)
    Remove the parentheses from the filename so AE will see it. Do NOT remove the parentheses from the "(CF3 Support)" folder or AE will launch very, very slowly, and Color Finesse won't work right.
    Finally, within the "(CF3 Support)" folder, locate the "(SA Color Finesse 3 UI)" application and remove the parentheses.
    Launch AE, apply Color Finesse to a layer, enter a name, and you should be good to go with no grid lines.
    Bob Currier
    Synthetic Aperture

  • Yosemite Resets External Display Windows

    I have an ASUS PA248Q display connected via Thunderbolt port running 1920 x 1200 on my Late 2013 MacBook Pro Retina.   After not using the computer for awhile the Safari, Preview, Calendar, iTunes, and Evernote windows will reset to the upper left corner (Zimbra Desktop and SplashID do not do this) and be sized to less height of window.   It is as if those windows are reset for the built-in display even though the Macbook cover is closed.  In Energy Saver -> Power Adapter I have checked "Prevent computer from sleeping automatically when the display is off".  Any ideas why this is happening?

    I had not, but I downloaded them but could not install them. However, it is working again, under the circumstance that I have active another source to my monitor (in this case HDMI from my XBOX 360) and then switch to DVI from that. So I guess it's just a glitch.

  • How to reset the forgotten Windows user account password

    I need Toshiba password reset! How do I reset Toshiba laptop? I would be appreciated if you help me Toshiba password recovery, etc. Well, so frequently to meet these problems in our lives. Today, we together share some ways to reset Toshiba password.
    Solution1: Toshiba recovery disks help reset lost password
    It only works if we created the recovery disks or CD before we forgot the password. The following listed are the steps to reset disk for Toshiba Windows 7 recovery:
    a. Start PC, log on Windows 7 and insert an USB flash drive into the driver.
    b. Start -> Control Panel -> User Accounts and Family Safety -> User Accounts -> Create a password reset disk.
    c. In welcome screen click Next and select the inserted USB flash drive, click Next.
    d. Input the login password in the password field and click Next. When progress indicator shows 100% complete, click Finish to exit. Remove the USB driver from PC.
    The method is similar to create a Toshiba recovery CD. Now, the Toshiba Windows 7 password recovery disk is ok. Put it in a safe place for people may use it to reset your password.
    Steps to recover password with created Toshiba password reset disk:
    e. Click Reset Password in the Windows 7 logon window,
    f. Insert the created Toshiba recovery USB disk into the USB driver interface, and click Reset password" to open Password Reset Wizard. Click Next to continue.
    g. Choose this USB disk recovery Toshiba from the drop down box. Click Next to continue.
    h. Input a new password and re-input it again to confirm. Click Next and then Finish to close the wizard.
    Solution2: Reset Toshiba laptop by accounts with administrator rights
    If there is default or built-in admin account or other accounts with administrator privileges and rights, we can use it for Toshiba password bypass. Take Toshiba XP recovery as example:
    A. Boot system from Safe Mode by pressing F8 when PC stars.
    B. Access PC with the available account with administrator rights and privileges.
    C. Start - Local Users and Groups lusrmgr.msc in the Search box ENTER - Local Users and Groups - choose Users.
    D. Right click the account with unlocked password, select Set Password and then input and confirm the new password.
    Solution3: Reset Toshiba password with burned ISO image file
    We can burn an .iso image file into a bootable USB disk or CD/DVD and reset the forgotten password easily and quickly. Take one of the most popular Windows password reset tool Ainorsoft Windows Password Recovery as example:
    a. Download the program from an accessible PC;
    b. Burn its .iso file to a blank CD/DVD or USB disk;
    c. Bypass the lost Toshiba password with the burned CD/DVD on the locked PC.
    Things will not be tricky if we know the methods for Toshiba password reset once we forgot Toshiba laptop password! Please also remember to share them with your friends!

    Thanks for sharing this but you are talking always about Toshiba passwordthis is wrong and I think this could be a little confusing this is a workaround for windows user account password.
    As far as I know there are no password set by Toshiba.
    The user can set the windows user account password if necessary so this workaround describes how to delete a Windows user account password which is common for all computers with preinstalled Windows OS.
    However, thanks for posting ;)

  • Flash Player 11.5.502.135 erases the display window periodically

    Using Firefox. At intervals of ~10s, the Flash window gets blanked out (filled with its background color) and elements that should be displayed only reappear when they are updated somehow, for instance when their position is moused over. I just updated to this version and regret it already, but Adobe has made it extremely hard to revert to a previous version without uninstalling-reinstalling from scratch, so I hope this problem gets fixed soon. From scanning this forum, this problem looks similar but not quite identical to a previously reported display bug that was supposed to have been fixed a few versions ago.

    I'm using Windows 7, and FF 3.5.7. I know it's not the most recent FF version, but the previous version of Flash I was using (before I stupidly allowed it to update, totally my fault) worked just fine with it.
    I have currently reverted to Flash 10.3 (as the only currently readily available version of Flash that works for me) but the previous version I had (before the unfortunate 'upgrade' to 11.5) was 11.x (I don't know what x was, and with Adobe's policy of forcing an uninstal-reinstal to switch versions it is now impossible for me to determine it.)
    I spotted another recent thread that describes a very similar problem. Frankly, at this point, I don't believe practical help is forthcoming, but you can prove me wrong by pointing me to an installer for previous versions of Flash 11. I'm even willing to run systematic reinstalls going backward in version numbers from the most recent until one actually works, to help you pinpoint the cause of the problem (disclaimer: it would also help me.) Unfortunately, the only source of previous player versions I am currently aware of is the source archives on this site, and it's not useful. But link me to a list of installers by version and I'll do it.

  • How to reset the default window size

    Hi!
    I played around with the different layouts of Adobe Connect Pro and somehow got a real chaos of window sizes and window positions when changing the resolution as well. How can I reset the layout to the default layout settings (window size, window position, which window should appear)? At this moment I cannot move a windows because it's too big to move or resize it.
    Is there a possibility to undo these changes?
    Thank you!
    Best regards,
    Thomas

    Does anyone know how to reset the meeting layout during a running meeting?

  • How Do I Reset The Finder Windows Positions?

    Hi,
    I would like to "reset my finder windows positions". Anyone knows how I can do that?
    Thanks.
    Ed

    So I cannot edit the .DS_Store file?
    You can try, as I do not know how good you are at working with binary files.  When I try to edit a .DS_Store on my system I see:
    ^@^@^@^ABud1^@^@p^@^@^@^H^@^@^@p^@^@^@^P^L^@^@h^K^@^@
    lots and lots of ^@ with occasional other characters mixed in.
    So what will it happen if I delete the .DS_Store file? Will my iMac's all Finder Windows be reseted?
    The Finder will forget information about that Folder.  Where it is positioned on the screen, how the files in the folder are arranged, etc...
    If you are concerned, create an experimental folder, put some junk files in the folder (stuff you can delete later).  Arrange things in the experimental folder, play with the size of the experimental folder.
    Now delete the .DS_Store for that file.  See what happens in a safe experimental way.  If you like the results, apply the same to folders you want to reset.
    "for each Folder", what do you mean?
    If you want to reset more than 1 folder, you would repeat the .DS_Store for each folder that you are interested in resetting.

  • HT1338 How do I reset the display setting back to default?  My display is zoomed to one corner and the other 2 sides are cut off.  I don't know how to fix it.

    My baby nephew pressed a lot of the buttons on the my mac and has caused the display to zoom into one corner.  It other two corners are cut off which makes it really difficult to use the computer.  I attatched and image so that you can see what I am talking about.  Please help, thanks !  =)

    Hold down the Control key and scroll with the mouse or keyboard.  One direction zooms the other unzooms.

  • BSOD "ATTEMPT TO RESET THE DISPLAY DRIVER AND RECOVER FROM TIMEOUT FAILED"

    Have reinstalled many video card drivers- does not correct the situation.
    How can it be determined if this is a hardware problem?
    If the video card driver is disabled, is the video card dead or is it running from some crude driver in the bios?
    Thank you.

    Hello again @myk120,
    Thank you for the updated information on your HP Pavilion Elite HPE-180t CTO Desktop PC. I am providing you with an HP Support document: Using Recovery Manager to Restore Software and Drivers (Windows 7), which will walk you through the process of recovering the original drivers that came with your computer. As we know that these drivers worked when you got the machine they should resolve your current issue.
    If however they do not I would suggest a backup of your personal information and a full factory recovery to put everything back to how it was when you first bought the computer. To backup your personal information and ensure that it is not lost I would like you to review and follow the steps set out in the HP Support document: Backing Up Your Files (Windows 7), which will ensure your personal files are up to date.
    ***WARNING!! If you want to keep any emails or bookmarks/favorites you will want to back those up as well as I do not believe they are backed up in the HP Backup process.
    Next, I would like you to review and follow the steps set out in the HP Support document: Performing an HP System Recovery (Windows 7), which will you through recovering your computer back to factory settings.
    *** IMPORTANT - Your personal files such as libraries, personalization settings, user accounts, and desktop themes are permanently removed. As well the computer settings are returned to the defaults (the way it was when it came from the factory). All apps and software that were installed on the computer when it came from the factory are reinstalled, and their settings are reset to the defaults. Additionally, software, apps, programs, and everything that you have installed or saved on the computer are permanently removed.
    If the above steps did not resolve your issue please call our technical support at 800-474-6836. If you live outside the US/Canada Region, please click the link below to get the support number for your region. http://www8.hp.com/us/en/contact-hp/ww-phone-assist.html
    I would like to thank you for posting on the HP Forums. Have a great day!
    Please click the "Thumbs Up" on the bottom right of this post to say thank you if you appreciate the support I provide!
    Also be sure to mark my post as “Accept as Solution" if you feel my post solved your issue, it will help others who face the same challenge find the same solution.
    Dunidar
    I work on behalf of HP
    Find out a bit more about me by checking out my profile!
    "Customers don’t expect you to be perfect. They do expect you to fix things when they go wrong." ~ Donald Porter

  • How Do I Reset The Acrobat Window To The Size When First Installed?

    I would like to have my Adobe Acrobat application window to be resized to the exact size as when first installed. I am comfortable editing the registry if needed. Thank you for your help!

    You can also get help in the Acrobat forums:http://forums.adobe.com/community/acrobat/acrobat_windows
    I'll move your post to that forum so you don't need to retype it. They can help you out...
    Randy

  • In trying to configure a PXI-8320, is there anything special I need to do to get the 8320 to appear in the display window of T&M Explorer?

    I have a PXI-8320 card I'm attempting to use as a PXI bus controller. According to the manuals, configuration of the 8320 is accomplished using T&M Explorer. When I go into T&M Explorer, other installed interface cards are shown, but not the 8320. Is there something special I need to do to get it to come up so I can configure it?
    System Info:
    OS: Windows NT
    The 8320 is installed in the first slot of an external CPCI backplane, and connected by cable to the PCI-MXI-2 board, which is in a PCI slot in the PC.

    Gerbera-
    MXI-2 is designed to connect your PXI or PCI system to a VXI controller. It is not designed to act as a PXI controller.
    MXI-3 is the system that we have developed to control your PXI/cPCI system with a desktop computer or another PXI/cPCI system.
    Trey Hamilton
    Applications Engineer
    National Instruments
    http://www.ni.com/support

  • How do you clear the current song info from the top display window?

    When you first start iTunes and select Music, the display window at the top just has an Apple logo in it. Once you start playing a song, the song info shows up there. I can stop the song using Command-period (or the space bar), but the info stays there. Is there a keyboard shortcut or something simple to return the window to just the Apple logo? I cleared it inadvertently when I selected Radio, but I don't know if that will always work and I'm guessing there's a formal way to do it. (Selecting Radio while a tune is playing won't clear the info, of course.)

    Fairhavens wrote:
    ... a good manual for iTunes
    here are some:
    iTunes 101
    How to Use iTunes: Getting Started
    iTunes Keyboard Shortcuts
    JGG

  • Odd desktop/display bug - how to reset user display settings?

    Greetings all,
    I woke up yesterday morning to a puzzling problem with my G5. I logged in and started working - and I needed to use the windows remote desktop client to shell into a machine at work. I noticed that the fonts looked sort of funny (randomly quished) so I logged out and then back in. Then I noticed that the problem was not in the RDC display, but in the display of my mac.
    This is sort of hard to describe w/out actually seeing it, but here goes...
    When I move my mouse across the desktop (or what ever apps I have open) and the mouse pointer moves across and invisible (yet perceptible) line on my screen real estate, my background, icons, parts of displayed apps and fonts "shift". This causes fonts in the affected are to get messed up and causes general display irritation. That's the best way I can describe it, it's sort of a "you have to see it" problem. I will also note that this problem did not arise after an update or a software install or weird crash. Just another day.
    So first I tried messing with my display settings (change resolution, color profiles, setting the background to a solid color, turning off screen saver). Rebooting. Nothing. Still there.
    So next I log into another account (the root account). Ah ha! No display problems! Tried creating another user-level account. No problems there either. Now we're getting somewhere - it's something that is effecting my main user account and not a problem with my monitor, video card or OS. That's good.
    So since then I've tried:
    - Grooming the disc that my home directory lives on with DiskWarrior.
    - Repaired permissions.
    - Deleting the contents of home/Library/Fonts in case it's some funky font rendering issue causing this.
    - Deleted the contents of home/Library/Preferences/MicroSoft to get any of its potential badness out of my life.
    - Scanning with FontDoctor looking for bad fonts.
    - Deleted my desktop and finder plist files.
    - General maintenance and cache cleaning (including the MS font cache) with Onyx.
    - Booting to Safe Mode.
    Nothing. The display problem persists afflicting that one user account. All other accounts (root, and a second user-level account residing on the same disc) are free of these problems even though they are all using the same display settings (monitor, resolution, color profiles, etc). And as already noted, this problem was not "brought on" by anything like an update, installation, preferences modification or fatal seeming crash of an app.
    So, my question to all you good people is: what am I missing, what might be causing this and what else can be scrubbed from that account (cache, plist files, etc etc) that might be harboring and causing this display bug? I would really rather solve this problem than go through the very very arduous task of moving all of my stuff to another account (an option, but a very unattractive one).
    I was not a mac user during the OS 9 days, but I remember my co-workers doing the "rebuilding the desktop" dance. I realize that this is no longer an issue, but I guess I'm looking for something like that. I need to remove any and everything from my user account that has anything to do with display and font rendering since it's obviously some setting lurking in that account causing the issue.
    I googled and searched the forums for this yesterday but could not come up with anything like it and all of the maintenance tasks I tried have not worked.
    Any ideas?
    Cheers,
    Monte
    G5   Mac OS X (10.4.9)  

    Hi.
    What kind of G5 do you have? An iMac or a PowerMac?
    A PowerMac.
    If you own a PowerMac, you'd better take a look (o
    try with another one) at the DVI cable connecting the
    display.
    I did check my connections, but also, why would a faulty DVI cable only cause problems with a single user account and none of the others?
    If you want to reset the display settings, start in
    Safe Mode, and trash these files:
    /Library/Preferences/com.apple.windowserver.plist
    /Users/yourusername/Library/Preferences/ByHost/com.a
    pple.windowserver.some_number.plist
    If I were at home now, I would try and report back. But I'm not. I'll definitely give it a try as soon as I can. Thanks for the pointer!
    Cheers,
    M

  • JProgressBar Shows Up Too Late--How Do I Update the Display Immediately?

    My application has a split pane, the bottom page of which is a panel containing an image that takes a long time to load. For that reason, I want the bottom pane to be a panel with a progress bar until the image is ready.
    Here's a simple version of my code:
    JPanel progressBarPanel = new JPanel();
    JProgressBar progressBar = new JProgressBar(0, 1);
    progressBar.setIndeterminate(true);
    progressBarPanel.add(progressBar);
    splitPane.setBottomComponent(progressBarPanel);  // line A
    splitPane.invalidate();
    JPanel imagePanel = createImagePanelSlowly();  // line B
    splitPane.setBottomComponent(imagePanel);
    splitPane.invalidate();However, this doesn't work; the display isn't updated until the image is ready. What do I need to put in between lines A and B so that the progress bar shows up before line B starts executing? I've tried validate(), repaint(), using threads and setting the size of the frame to zero and back again, but none of those seem to work. If I pop up a dialog after I add the progress bar to the split pane, the progress bar shows up as soon as the dialog shows up.
    This code is inside a ListSelectionListener on a table elsewhere on the GUI, in case that's relevant.
    I think I don't understand some basic principle about how to get the GUI to be updated immediately after I make some change.

    As suggested, I have prepared a compilable demonstration. I figured out that the
    problem I was having before was that I was trying to join the background and
    event-processing threads (I had been using threads, but I didn't show that code in the
    version I posted since it didn't seem to matter). After I eliminated the join, the progress
    bar is displayed, but the user can do other things while the image is loading. I want to
    prevent the user from doing that. I switched the cursor to a wait cursor, but that doesn't
    seem to prevent it.
    In particular, while it is loading, the user should be able to:
    * resize the window
    * minimize the window and bring it back up
    * ideally, adjust the split pane, but that isn't critical
    but NOT:
    * select a different row in the table
    * sort the table
    * use the menus
    Any attempt by the user to perform the disallowed actions should have no effect either
    while the image is loading or after it has finished.
    (That is, the disallowed events should not simply be queued for later.)
    I wonder if there is a simple way to accomplish that.
    Here is a demo (3 classes):
    import java.awt.Color;
    import java.awt.Component;
    import java.awt.Cursor;
    import java.awt.Font;
    import java.awt.GraphicsEnvironment;
    import java.awt.Rectangle;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    import java.util.Enumeration;
    import java.util.Vector;
    import javax.swing.Box;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JMenu;
    import javax.swing.JMenuBar;
    import javax.swing.JMenuItem;
    import javax.swing.JOptionPane;
    import javax.swing.JPanel;
    import javax.swing.JProgressBar;
    import javax.swing.JScrollPane;
    import javax.swing.JSplitPane;
    import javax.swing.JTable;
    import javax.swing.ListSelectionModel;
    import javax.swing.UIManager;
    import javax.swing.border.Border;
    import javax.swing.border.EtchedBorder;
    import javax.swing.event.ListSelectionEvent;
    import javax.swing.event.ListSelectionListener;
    import javax.swing.table.DefaultTableModel;
    import javax.swing.table.TableColumn;
    * <p>Copyright (C) 2006
    * <p>All rights reserved.
    public class DisableGUIDemo extends JFrame {
         static final Rectangle SCREEN_SIZE = GraphicsEnvironment.getLocalGraphicsEnvironment().getMaximumWindowBounds();
         static final Color HYACINTH = new Color(160, 96, 192);
         static final Color LAVENDER = new Color(224, 208, 232);
         Vector<Vector<String>> demoTableData = new Vector<Vector<String>>();
         Vector<String> demoColumnNames = new Vector<String>();
         protected JTable dataTable;
         protected JScrollPane tablePane;
         protected JSplitPane mainPane;
         protected JPanel imageArea;
         private DefaultTableModel dataModel;
          * This creates a new <code>DisableGUIDemo</code> instance, builds the UI
          * components and displays them.
         private DisableGUIDemo(){
              super();
              setTitle("Demo");
              // Ugly:  Initialize the table with demo data.
              Vector<String> demoTableFirstRow = new Vector<String>();
              demoTableFirstRow.add("18");
              demoTableFirstRow.add("13");
              demoTableFirstRow.add("11");
              demoTableFirstRow.add("19");
              demoTableFirstRow.add("19");
              demoTableData.add(demoTableFirstRow);
              Vector<String> demoTableSecondRow = new Vector<String>();
              demoTableSecondRow.add("5");
              demoTableSecondRow.add("3");
              demoTableSecondRow.add("4");
              demoTableSecondRow.add("1");
              demoTableSecondRow.add("3");
              demoTableData.add(demoTableSecondRow);
              Vector<String> demoTableThirdRow = new Vector<String>();
              demoTableThirdRow.add("11");
              demoTableThirdRow.add("12");
              demoTableThirdRow.add("10");
              demoTableThirdRow.add("18");
              demoTableThirdRow.add("18");
              demoTableData.add(demoTableThirdRow);
              demoColumnNames.add("Column 0");
              demoColumnNames.add("Column 1");
              demoColumnNames.add("Column 2");
              demoColumnNames.add("Column 3");
              demoColumnNames.add("Column 4");
              dataModel = new DefaultTableModel(demoTableData, demoColumnNames);
              initialize(); 
          * The <code>initialize</code> method builds and displays up the GUI.
         private void initialize() {
              addWindowListener(new WindowAdapter()  {
                        public void windowClosing(WindowEvent e)  {
                             System.exit(0);
              // Build the GUI panels.
              setJMenuBar(menuBar());
              createSplitPane(true);
              setLocation(SCREEN_SIZE.x, SCREEN_SIZE.y);
              setSize(SCREEN_SIZE.width, SCREEN_SIZE.height - 20);
              setVisible(true); 
          * This creates and returns the menu bar.  The actions to take in response to menu-option selections are
          * specified here.
          * @return the menu bar
         private JMenuBar menuBar(){
              JMenuBar menuBar = new JMenuBar();
              JMenu fileMenu = new JMenu("File");
              fileMenu.setFont(fileMenu.getFont().deriveFont(10.0f));
              JMenuItem reset = new JMenuItem("Reset");
              reset.setFont(reset.getFont().deriveFont(10.0f));
              reset.addActionListener(new ActionListener(){
                        // When the user resets the display, the configuration panel is recreated.
                        public void actionPerformed(ActionEvent e){
                             dataModel = new DefaultTableModel(demoTableData, demoColumnNames);
                             createSplitPane(true);
                             int oldWidth = getWidth();
                             int oldHeight = getHeight();
                             setSize(0, 0);
                             setSize(oldWidth, oldHeight);
                             repaint();
                             JOptionPane.showMessageDialog(DisableGUIDemo.this,
                                                                                                        "The display should be reset.",
                                                                                                        "Reset",
                                                                                                        JOptionPane.PLAIN_MESSAGE);
              fileMenu.add(reset);
              fileMenu.addSeparator();
              JMenuItem saveTable = new JMenuItem("Save Table");
              saveTable.setFont(saveTable.getFont().deriveFont(10.0f));
              saveTable.setEnabled(false);
              fileMenu.add(saveTable);
              menuBar.add(fileMenu);
              menuBar.add(Box.createHorizontalGlue());
              JMenu helpMenu = new JMenu("Help");
              helpMenu.setFont(helpMenu.getFont().deriveFont(10.0f));
              JMenuItem help = new JMenuItem("Documentation");
              help.setFont(help.getFont().deriveFont(10.0f));
              help.addActionListener(new ActionListener(){
                        public void actionPerformed(ActionEvent e){
                             JOptionPane.showMessageDialog(DisableGUIDemo.this, "There is no documentation available for the demo.");
              helpMenu.add(help);
              menuBar.add(helpMenu);
              return menuBar;
          * The <code>createSplitPane</code> method creates the table and image area and displays them in a split pane.
          * @param createNewTable whether to create a new table (should be false if the table has already been created)
         private void createSplitPane(boolean createNewTable){
              if (createNewTable){
                   dataTable = dataTable();
                   tablePane = new JScrollPane(dataTable);
                   Border etchedBorder = new EtchedBorder(EtchedBorder.RAISED, LAVENDER, HYACINTH);
                   tablePane.setBorder(etchedBorder);
              int tablePaneWidth = tablePane.getPreferredSize().width;
              int selectedRow = dataTable.getSelectedRow();
              imageArea
                   = (selectedRow == -1)
                   ? new JPanel()
                   : imageArea((String) dataTable.getValueAt(selectedRow, 0),
                                                 (String) dataTable.getValueAt(selectedRow, 2));
              imageArea.setMinimumSize(imageArea.getPreferredSize());
              mainPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT, tablePane, imageArea);
              getContentPane().removeAll();
              getContentPane().add(mainPane);
          * The <code>dataTable</code> method returns the data table.
          * @return the data table
         private JTable dataTable(){
              JTable table = new JTable(dataModel);
              table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
              ListSelectionModel rowSM = table.getSelectionModel();
              rowSM.addListSelectionListener(new ListSelectionListener() {
                        public void valueChanged(ListSelectionEvent e) {
                             if (e.getValueIsAdjusting()){
                                  return;  // Ignore extra events.
                             ListSelectionModel lsm =
                (ListSelectionModel) e.getSource();
                             if (! lsm.isSelectionEmpty()){
                                  final int selectedRow = dataTable.getSelectedRow();
                                  setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
                                  JPanel progressBarPanel = new JPanel();  // This should have a border layout.
                                  JProgressBar progressBar = new JProgressBar(0, 1);
                                  progressBar.setIndeterminate(true);
                                  progressBarPanel.add(progressBar);
                                  mainPane.setBottomComponent(progressBarPanel);
                                  mainPane.invalidate();
                                  mainPane.validate();
                                  Thread backgroundThread = new Thread(){
                                            public void run(){
                                                 JPanel imageDisplay = imageArea((String) dataTable.getValueAt(selectedRow, 0),
                                                                                                                                 (String) dataTable.getValueAt(selectedRow, 2));
                                                 mainPane.setBottomComponent(imageDisplay);
                                                 mainPane.invalidate();
                                                 setCursor(null);
                                  backgroundThread.start();
                                  // The following code, before being commented out, caused the GUI to be unresponsive while the image was
                                  // being loaded.  However, without it, the user can do other things while the image is loading, which is
                                  // not desired.
    //                               try{
    //                                    backgroundThread.join();
    //                               catch (InterruptedException ie){
    //                                    // N/A
              if (dataModel != null){
                   table.sizeColumnsToFit(-1);
                   table.getTableHeader().setReorderingAllowed(false);
                   SpecialHeaderRenderer headerRenderer = new SpecialHeaderRenderer(this);
                   SpecialCellRenderer bodyCellRenderer = new SpecialCellRenderer();
                   int i = 0;
                   for (Enumeration<TableColumn> columns = table.getColumnModel().getColumns(); columns.hasMoreElements(); /** */){
                        int columnWidth = 0;
                        TableColumn nextColumn = columns.nextElement();
                        nextColumn.setHeaderRenderer(headerRenderer);
                        nextColumn.setCellRenderer(bodyCellRenderer);
                        nextColumn.sizeWidthToFit();
                        Component comp = headerRenderer.getTableCellRendererComponent(table, nextColumn.getHeaderValue(),
                                                                                                                                                                                   false, false, 0, 0);
                        columnWidth = comp.getPreferredSize().width;
                        for (int j = 0; j < dataModel.getRowCount(); j++){
                             comp = table.getCellRenderer(j, i).getTableCellRendererComponent(table, dataModel.getValueAt(j, i),
                                                                                                                                                                                              false, false, j, i);
                             columnWidth = Math.max(comp.getPreferredSize().width, columnWidth);
                        nextColumn.setPreferredWidth(columnWidth);
                        nextColumn.setMinWidth(columnWidth);
                        i++;
              return table;
          * The <code>imageArea</code> method returns a panel in which an image is shown in the real application.
          * In the demo application, it is replaced by a text label; an artificial delay is used to simulate the
          * delay that would occur during image loading.  The image is loaded when the user selects a row in the table.
          * @param parameter1 a parameter to image creation
          * @param parameter2 a parameter to image creation
          * @return a panel in which a text label stands in for an image
         private JPanel imageArea(String parameter1, String parameter2){
              try{
                   Thread.sleep(3000);
              catch (InterruptedException ie){
                   // N/A
              JPanel imagePanel = new JPanel();
              JLabel substituteLabel = new JLabel("Image for " + parameter1 + ", " + parameter2);
              imagePanel.add(substituteLabel);
              return imagePanel;
          * @param args
         public static void main (String[] args) {
              UIManager.put("Table.font", new Font("DialogInput", Font.PLAIN, 10));
              UIManager.put("Label.font", new Font("Dialog", Font.BOLD, 10));
              UIManager.put("TextField.font", new Font("DialogInput", Font.PLAIN, 10));
              UIManager.put("ComboBox.font", new Font("Dialog", Font.BOLD, 10));
              UIManager.put("Button.font", new Font("Dialog", Font.BOLD, 10));
              UIManager.put("List.font", new Font("Dialog", Font.BOLD, 10));
              try {           
                   new DisableGUIDemo();
              catch (Throwable e) {
                   e.printStackTrace();
                   System.exit(0);
         } // end of main ()
    import java.awt.Color;
    import java.awt.Component;
    import java.awt.Font;
    import java.awt.GridBagLayout;
    import java.awt.GridBagConstraints;
    import java.awt.GridLayout;
    import java.awt.Insets;
    import java.awt.Rectangle;
    import java.awt.event.MouseAdapter;
    import java.awt.event.MouseEvent;
    import java.util.Comparator;
    import java.util.TreeSet;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JOptionPane;
    import javax.swing.JPanel;
    import javax.swing.JTable;
    import javax.swing.SwingConstants;
    import javax.swing.UIManager;
    import javax.swing.border.EmptyBorder;
    import javax.swing.table.TableCellRenderer;
    * <p>Copyright (C) 2006
    * <p>All rights reserved.
    public class SpecialHeaderRenderer extends JPanel implements TableCellRenderer {
         static final Color MAUVE = new Color(192, 160, 208);
         static final Insets ZERO_INSETS = new Insets(0, 0, 0, 0);
         static final EmptyBorder EMPTY_BORDER = new EmptyBorder(ZERO_INSETS);
         private GridBagConstraints constraints = new GridBagConstraints();
         final TreeSet<MouseEvent> processedEvents = new TreeSet<MouseEvent>(new Comparator<MouseEvent>(){
              public int compare(MouseEvent o1, MouseEvent o2){
                   return o1.hashCode() - o2.hashCode();
         final private JFrame owner;
      public SpecialHeaderRenderer(JFrame ownerWindow) {
        setOpaque(true);
        setForeground(Color.BLACK);
              setBackground(MAUVE);
        setBorder(UIManager.getBorder("TableHeader.cellBorder"));
              setLayout(new GridBagLayout());
              constraints.fill = GridBagConstraints.NONE;
              constraints.gridx = 0;
              setAlignmentY(Component.CENTER_ALIGNMENT);
              owner = ownerWindow;
      public Component getTableCellRendererComponent(final JTable table, Object value, boolean isSelected,
                                                                                                                             boolean hasFocus, int row, final int column){
              if (table != null){
                   removeAll();
                   String valueString = (value == null) ? "" : value.toString();
                   JLabel title = new JLabel(valueString);
                   title.setHorizontalAlignment(SwingConstants.CENTER);
                   title.setFont(title.getFont().deriveFont(12.0f));
                   constraints.gridy = 0;
                   constraints.insets = ZERO_INSETS;
                   add(title, constraints);
                   final JPanel buttonPanel = new JPanel();
                   buttonPanel.setLayout(new GridLayout(1, 2));
                   buttonPanel.setAlignmentX(Component.CENTER_ALIGNMENT);
                   buttonPanel.setBackground(MAUVE);
                   final JButton sortAscendingButton = new JButton("V");
                   sortAscendingButton.setMargin(ZERO_INSETS);
                   sortAscendingButton.setBorder(EMPTY_BORDER);
                   constraints.gridy = 1;
                   constraints.insets = new Insets(5, 0, 0, 0);
                   buttonPanel.add(sortAscendingButton);
                   final JButton sortDescendingButton = new JButton("^");
                   sortDescendingButton.setMargin(ZERO_INSETS);
                   sortDescendingButton.setBorder(EMPTY_BORDER);
                   buttonPanel.add(sortDescendingButton);
                   add(buttonPanel, constraints);
                   table.getTableHeader().addMouseListener(new MouseAdapter(){
                             public void mouseClicked(MouseEvent e) {
                                  Rectangle panelBounds = table.getTableHeader().getHeaderRect(column);
                                  Rectangle buttonPanelBounds = buttonPanel.getBounds();
                                  Rectangle buttonBounds = sortAscendingButton.getBounds();
                                  buttonBounds.translate(buttonPanelBounds.x, buttonPanelBounds.y);
                                  buttonBounds.translate(panelBounds.x, panelBounds.y);
                                  if (buttonBounds.contains(e.getX(), e.getY()) && processedEvents.add(e)){
                                       // The click was on this button and has not yet been processed.
                                       JOptionPane.showMessageDialog(owner,
                                                                                                                  "The table would be sorted in ascending order of column " + column + ".",
                                                                                                                  "Sorted Ascending",
                                                                                                                  JOptionPane.PLAIN_MESSAGE);
                                       table.invalidate();
                                       table.revalidate();
                                       table.repaint();
                                  buttonBounds = sortDescendingButton.getBounds();
                                  buttonBounds.translate(buttonPanelBounds.x, buttonPanelBounds.y);
                                  buttonBounds.translate(panelBounds.x, panelBounds.y);
                                  if (buttonBounds.contains(e.getX(), e.getY()) && processedEvents.add(e)){
                                       // The click was on this button and has not yet been processed.
                                       JOptionPane.showMessageDialog(owner,
                                                                                                                  "The table would be sorted in descending order of column " + column + ".",
                                                                                                                  "Sorted Descending",
                                                                                                                  JOptionPane.PLAIN_MESSAGE);
                                       table.invalidate();
                                       table.revalidate();
                                       table.repaint();
              return this;
    import java.awt.Color;
    import java.awt.Component;
    import java.awt.Font;
    import java.awt.GridLayout;
    import java.util.HashMap;
    import javax.swing.BorderFactory;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JTable;
    import javax.swing.SwingConstants;
    import javax.swing.border.EmptyBorder;
    import javax.swing.border.LineBorder;
    import javax.swing.table.DefaultTableModel;
    import javax.swing.table.TableCellRenderer;
    * <code>SpecialCellRenderer</code> is the custom renderer for all
    * rows except the header row.
    * <p>Copyright (C) 2006
    * <p>All rights reserved.
    public class SpecialCellRenderer extends JPanel implements TableCellRenderer {
         protected Color backgroundColor = Color.PINK; // This means the rows for the first row will be white.
         protected HashMap<Object, Color> rowColors = new HashMap<Object, Color>();
      public SpecialCellRenderer(){
        setOpaque(true);
        setForeground(Color.BLACK);
              setBackground(Color.WHITE);
              setFont(new Font("Monospaced", Font.PLAIN, 10));
              setAlignmentX(Component.RIGHT_ALIGNMENT);
              setBorder(new EmptyBorder(0, 2, 0, 2));
      public Component getTableCellRendererComponent(final JTable table, Object value, boolean isSelected,
                                                                                                                             boolean hasFocus, final int row, final int column){
              String columnName = table.getColumnName(column);
              JLabel text = new JLabel();
              text.setOpaque(true);
              if (table != null){
                   DefaultTableModel model = (DefaultTableModel) table.getModel();
                   if (model == null){
                        System.out.println("The model is null!!");
                        System.exit(1);
                   if (table.isCellSelected(row, column)){
                        setBorder(BorderFactory.createMatteBorder((column < 2) ? 0 : 1,
                                                                                                                                 (column == 2) ? 1 : 0,
                                                                                                                                 (column < 2) ? 0 : 1,
                                                                                                                                 (column == table.getColumnCount() - 1) ? 1 : 0,
                                                                                                                                 Color.BLUE));
                   else{
                        setBorder(BorderFactory.createEmptyBorder());
                   final String rowIdentifier = (String) model.getValueAt(row, 0);
                   if (! rowColors.containsKey(rowIdentifier)){
                        rowColors.put(rowIdentifier, nextBackgroundColor());
                   text.setBackground(rowColors.get(rowIdentifier));
                   text.setFont(getFont().deriveFont(Font.PLAIN));
                   String valueString = (value == null) ? "" : value.toString();
                   text.setText(valueString);
                   try{
                        Double.parseDouble(valueString);
                        text.setHorizontalAlignment(SwingConstants.TRAILING);
                   catch (NumberFormatException nfe){
                        text.setHorizontalAlignment(SwingConstants.LEADING);
                   setLayout(new GridLayout(1, 1));
                   removeAll();
                   add(text);
                   setBackground(text.getBackground());
                   if (table.getRowHeight() < getMinimumSize().height){
                        table.setRowHeight(getMinimumSize().height);
              return this;
         protected Color nextBackgroundColor(){
              backgroundColor = backgroundColor.equals(Color.WHITE) ? Color.PINK : Color.WHITE;
              return backgroundColor;
    }

  • The display on my 27" iMac keeps shifting to whichever direction I point my mouse?

    While working on my iMac today the display suddenly started to jump all over the desktop... and slid out of veiw. The Apple icon on the far left top of the screen is not visable, I can see half of the word 'EDIT". When I point my cursor towards my apps (at bottom of window), everything at the top slides out of view. It is almost as if the setting on my Display Preferences is set too large (it is set at 1920 x 1200). I have reset the display to a lower resolution and that added a 2" black border around the desktop. I did a SAFE BOOT and deleted the (com.apple.windowserver 20-03-36.plist) and restarted and this actually worked for about 10 mins. but then returned to the shifting display.
    Any advice or helpful information will be most welcome. Thanks.

    ATI Radeon HD 5750:
    Chipset Mo
      Type: GPU
      Bus: PCIe
      PCIe Lane Width: x16
      VRAM (Total): 1024 MB
      Vendor: ATI (0x1002)
      Device ID: 0x68a1
      Revision ID: 0x0000
      ROM Revision: 113-B9710C-238
      EFI Driver Version: 01.00.417
      Displays:
    iMac:
      Display Type: LCD
      Resolution: 2560 x 1440
      Pixel Depth: 32-Bit Color (ARGB8888)
      Main Display: Yes
      Mirror: Off
      Online: Yes
      Built-In: Yes

Maybe you are looking for

  • Last Played, Play Count, Ratings fields not updating

    iTunes 6.0.1.3, 3rd Gen iPod, iPod Shuffle 2005-09-23 firmware After updating to iTunes 6.0.1.3 I was forced to also update my iPod firmware to 2005-09-23. Since then, the last played, play count and ratings fields associated with music tracks no lon

  • Please give feedback on some searches (and the search experience generally).

    Please read this post on my blog and give feedback on your search experience.

  • Flex IO error# 2032 when using IE7 for parallel https calls across two servers

    Hi, Weeks back I faced a wierd issue in the behaviour of flashplayer running on IE7 which is invoking parallel https calls. I have two SSL enabled servers one is listening on port 443 and the other is listening on port 8443 but both running in the sa

  • Doubts in workflow steps

    Hai, I want to use a local workflow in exsisting scenario with minor modification. My doubt is In one step(change basic material data field in basic data2 in material master material) i send it one user(user1) with previous step results and he should

  • Safari still bombing regularly

    Safari still bombing regularly. Restored phone with newest iPhone software; shut down and re-set iPhone. Safari still quitting even when surfing simple pages like New York Times. Very similar to behavior of original iPhone. I had been hopeful that th