Show Windows contents while dragging disabled after standby
I have noticed that the option "Show windows contents while dragging" gets disabled after I close the lid to put the machine into standby (hibernation disabled) and then open it again. Does anyone know what to do in order do disable that annoying feature?
The way to solve this problem, is demonstrated by the following code:
JDesktopPane desktopPane = new JDesktopPane();
desktopPane.putClientProperty("JDesktopPane.dragMode", "outline");This will then set all of the internal frames to outline mode when the frames are dragged instead of sluggishly drawing the components with the internal frames when dragged.
Hope this helps
Riz
Similar Messages
-
When I disable 'Show window contents while dragging' in Performance Options, it also automatically disables the ability to snap windows the left and right and corners by dragging them. I have an older computer, and disabling this really improves the performance,
but I'd really like to keep the ability to snap the windows around, as it's one of my favorite features.
Is there a way to just disable showing window contents while dragging without disabling the window snap feature?Hey there. I've been trying to figure out why my snap wasn't working, and this is the only post I've found that mentioned it.
I found snap wasn't working on my machines sometimes and realised it happens after I start an RDP session which disables the "show window contents while dragging" option, but then doesn't seem to enable it properly after the session ends.
When I check the option, it is already ticked, so I need to untick and re-tick, then apply and snap starts working again.
I don't know if there is any connection with the "Prevent windows from being automatically arranged when moved to the edge of the screen" option under the mouse ease of access settings.
It does seem like a new issue though as it doesn't happen under Win8 -
'Show JInternalFrame Contents While Dragging'
hi,
I have a question I have an application that has internal frames, Basically it is a MDI Application. I am using JDK 1.2.2 and windows 2000. The question is that when you go to the desktop right click properties and in Effects tab you uncheck the 'Show Window Contents While Dragging' checkBox. Now when I run my application and my parent window that is a frame pops up, if I drag the window i.e. my parent frame it doesn't dragg the contents onlt thw windows border is dragged, means it doesn't repaints that is fine. But when I try to drag one of the internal frame it shows me the contents inside the internalFrame being dragged too and I don't want to see these contents while internal frame is being dragged. So how can I make my application not to show the contents inside the JInternalFrames not to be shown while dragging the JInternalFrame. Any help is really appreciated.
for an example I have added a code example to see the effect that I got from the forums just for an example to show. If you have unchecked the option 'Show Window Contents While Dragging' in Effects tab when you go to the desktop right click properties and the Effects Tab or in the controlPanel dblClick Display and go to Effects tab and uncheck this checkBox. Now run this example and see when you drag the main window contents inside it including JInternalFrame doesn't get dragged just the boundry of the dragging frame is shown. Now if you try to drag the JInternalFrame. Contents inside that are dragged too. And I don't want this behavior. I don't want to see the contents.
/*************** MDITest ************/
import javax.swing.*;
* An application that displays a frame that
* contains internal frames in an MDI type
* interface.
* @author Mike Foley
public class MDITest extends Object {
* Application entry point.
* Create the frame, and display it.
* @param args Command line parameter. Not used.
public static void main( String args[] ) {
try {
UIManager.setLookAndFeel(
"com.sun.java.swing.plaf.windows.WindowsLookAndFeel" );
} catch( Exception ex ) {
System.err.println( "Exception: " +
ex.getLocalizedMessage() );
JFrame frame = new MDIFrame( "MDI Test" );
frame.pack();
frame.setVisible( true );
} // main
} // MDITest
/*********** MDIFrame.java ************/
import java.awt.*;
import java.awt.event.*;
import java.io.Serializable;
import javax.swing.*;
import javax.swing.border.*;
import javax.swing.event.*;
* A top-level frame. The frame configures itself
* with a JDesktopPane in its content pane.
* @author Mike Foley
public class MDIFrame extends JFrame implements Serializable {
* The desktop pane in our content pane.
private JDesktopPane desktopPane;
* MDIFrame, null constructor.
public MDIFrame() {
this( null );
* MDIFrame, constructor.
* @param title The title for the frame.
public MDIFrame( String title ) {
super( title );
* Customize the frame for our application.
protected void frameInit() {
// Let the super create the panes.
super.frameInit();
JMenuBar menuBar = createMenu();
setJMenuBar( menuBar );
JToolBar toolBar = createToolBar();
Container content = getContentPane();
content.add( toolBar, BorderLayout.NORTH );
desktopPane = new JDesktopPane();
desktopPane.setPreferredSize( new Dimension( 400, 300 ) );
content.add( desktopPane, BorderLayout.CENTER );
} // frameInit
* Create the menu for the frame.
* <p>
* @return The menu for the frame.
protected JMenuBar createMenu() {
JMenuBar menuBar = new JMenuBar();
JMenu file = new JMenu( "File" );
file.setMnemonic( KeyEvent.VK_F );
JMenuItem item;
file.add( new NewInternalFrameAction() );
// file.add( new ExitAction() );
menuBar.add( file );
return( menuBar );
} // createMenuBar
* Create the toolbar for this frame.
* <p>
* @return The newly created toolbar.
protected JToolBar createToolBar() {
final JToolBar toolBar = new JToolBar();
toolBar.setFloatable( false );
toolBar.add( new NewInternalFrameAction() );
// toolBar.add( new ExitAction() );
return( toolBar );
* Create an internal frame.
* A JLabel is added to its content pane for an example
* of content in the internal frame. However, any
* JComponent may be used for content.
* <p>
* @return The newly created internal frame.
public JInternalFrame createInternalFrame() {
JInternalFrame internalFrame =
new JInternalFrame( "Internal JLabel" );
internalFrame.getContentPane().add(
new JLabel( "Internal Frame Content" ) );
internalFrame.setResizable( true );
internalFrame.setClosable( true );
internalFrame.setIconifiable( true );
internalFrame.setMaximizable( true );
internalFrame.pack();
return( internalFrame );
* An Action that creates a new internal frame and
* adds it to this frame's desktop pane.
public class NewInternalFrameAction extends AbstractAction {
* NewInternalFrameAction, constructor.
* Set the name and icon for this action.
public NewInternalFrameAction() {
super( "New", new ImageIcon( "new.gif" ) );
* Perform the action, create an internal frame and
* add it to the desktop pane.
* <p>
* @param e The event causing us to be called.
public void actionPerformed( ActionEvent e ) {
JInternalFrame internalFrame = createInternalFrame();
desktopPane.add( internalFrame,
JLayeredPane.DEFAULT_LAYER );
} // NewInternalFrameAction
} // MDIFrame
I'll really appreciate for any help.
Thank youtry this:
JDesktopPane desktopPane = new JDesktopPane();
desktopPane.putClientProperty("JDesktopPane.dragMode", "outline");Both parameters passed to 'putClientProperty' must be strings.
Hope this helps
Riz -
Hide Window Contents While Dragging in OB3?
I know it was possible with OB2 (session.screen0.opaqueMove: False) but is there a hidden command somewhere that does the same thing in OB3?
Maybe it has something to do with the <drawContents> command?
Thanks.hi
I am sorry my description was not so precise as it should be.
Our applications use MDI window system manager where the document windows always are displayed within the MDI application window frame.
An Application window is OK. Problem is with the document windows.
Only a frame of a document window is moving while I am dragging it to some other position by the mouse.
The content of the window appears at the new position when a mouse button is released.
This behaviour is new for me at web based forms. The same operation acts differently at the old application (client/server forms 6i).
A dragged document window is moved with its content.
regards
Petr -
Xcode - show contents while dragging, scrolling
I have a new 13" rMBP with Xcode installed. So far no problems, except...
there is no animation when I drag items, or scroll or resize the application. For example, when I scroll a list inside Xcode, the cusor moves but the list doesn't move until I stop scrolling. Also, if I drag a button it doesn't show up under my cursor and move with it. Instead it appears only after I place it. Additionally, if I resize or move the Xcode window, it doesn't show it moving with my cusor. It only updates its position after I stop moving.
And to be clear, I'm refering to the Xcode application, not one built with it.
Any ideas on how to fix this?
All other programs behave fine.
ThanksThe way to solve this problem, is demonstrated by the following code:
JDesktopPane desktopPane = new JDesktopPane();
desktopPane.putClientProperty("JDesktopPane.dragMode", "outline");This will then set all of the internal frames to outline mode when the frames are dragged instead of sluggishly drawing the components with the internal frames when dragged.
Hope this helps
Riz -
CS6: How to display image contents while dragging/resizing?
CS6 Illustrator, Windows 7 64bit
Hello all,
I'm a IT tech trying to help out one of my users, so I am not proficient in Illustrator by any means. With that being said, I was wondering if there is a way to display the contents of an image while you are dragging or resizing the image?
Thanks, ShaunIt should already show the outline of all the shapes while moving or resizing. As far as I know, you can't see the full color image while doing transformations. It would be unusably slow for some images.
-
Under Windows 7 - Fingerprint Reader Ignored After Standby Resume
I thought this was perhaps a platform-specific issue. But both on my ThinkPad T61 running Windows 7 Ultimate 32-bit and my new ThinkPad T510 running Windows 7 Enterprise 64-bit, whenever I resume from standby, any finger swipe against the fingerprint reader is ignored.
Note - I am not using the rather large Lenovo fingerprint driver package because I don't want the bloat. Just want a very basic, Ctrl+Alt+Delete password prompt replacement.
Does the "Registry patch to change IDLE IRP timing by Fingerprint reader driver for Windows Vista" need to be installed under Windows 7 (http://www-307.ibm.com/pc/support/site.wss/document.do?sitestyle=lenovo&lndocid=MIGR-67245)?i didn't know the lenovo fingerprint driver package was more than just a very basic, Ctrl+Alt+Delete password prompt replacement? (at least not that i noticed)
T400s - 2815RW1 + Win7 Ultimate
Don't pm me for help! That's what the forum is for. Also, Google's nicer than me. Ask him. -
Updating window components WHILE dragging the mouse
How do I update a whole window (JFrame), including it's components, during the following scenario:
1. mouse pressed - on any of the window's boundaries
2. mouse moved to a final position.
Currently the components of the window do not change until i stop moving the mouse.
I can't yet find an Event for clicking the mouse on the window's borders.Check out my Resizeable code. This may be exactly what you are looking for. I've also included code for Draggable, which you might be interested in
You are welcome to have and to modify this code, but please do not take credit for it as your own work.
==========================================
public static class Draggable extends MouseAdapter implements MouseMotionListener {
Point mLastPoint;
Component mDraggable;
public Draggable(Component w) {
w.addMouseMotionListener(this);
w.addMouseListener(this);
mDraggable = w;
public void mousePressed(MouseEvent me) {
if (mDraggable.getCursor().equals(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR))) {
mLastPoint = me.getPoint();
else {
mLastPoint = null;
private void setCursorType(Point p) {
Point loc = mDraggable.getLocation();
Dimension size = mDraggable.getSize();
if ((p.y + RESIZE_MARGIN_SIZE < loc.y + size.height) && (p.x + RESIZE_MARGIN_SIZE < p.x + size.width)) {
mDraggable.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
public void mouseReleased(MouseEvent me) {
mLastPoint = null;
public void mouseMoved(MouseEvent me) {
setCursorType(me.getPoint());
public void mouseDragged(MouseEvent me) {
int x, y;
if (mLastPoint != null) {
x = mDraggable.getX() + (me.getX() - (int)mLastPoint.getX());
y = mDraggable.getY() + (me.getY() - (int)mLastPoint.getY());
mDraggable.setLocation(x, y);
public static class Resizeable extends MouseAdapter implements MouseMotionListener {
int fix_pt_x = -1;
int fix_pt_y = -1;
Component mResizeable;
Cursor mOldcursor;
public Resizeable(Component c) {
mResizeable = c;
c.addMouseListener(this);
c.addMouseMotionListener(this);
public void mouseEntered(MouseEvent me) {
setCursorType(me.getPoint());
private void setCursorType(Point p) {
boolean n = p.y <= RESIZE_MARGIN_SIZE;
boolean s = p.y + RESIZE_MARGIN_SIZE >= mResizeable.getHeight();
boolean w = p.x <= RESIZE_MARGIN_SIZE;
boolean e = p.x + RESIZE_MARGIN_SIZE >= mResizeable.getWidth();
if (e) {
if (s) {
mResizeable.setCursor(Cursor.getPredefinedCursor(Cursor.SE_RESIZE_CURSOR));
return;
mResizeable.setCursor(Cursor.getPredefinedCursor(Cursor.E_RESIZE_CURSOR));
return;
if(s) {
mResizeable.setCursor(Cursor.getPredefinedCursor(Cursor.S_RESIZE_CURSOR));
return;
public void mouseExited(MouseEvent me) {
if (mOldcursor != null)
((Component)me.getSource()).setCursor(mOldcursor);
mOldcursor = null;
public void mousePressed(MouseEvent me) {
Cursor c = mResizeable.getCursor();
Point loc = mResizeable.getLocation();
if (c.equals(Cursor.getPredefinedCursor(Cursor.SE_RESIZE_CURSOR))) {
fix_pt_x = loc.x;
fix_pt_y = loc.y;
return;
if (c.equals(Cursor.getPredefinedCursor(Cursor.E_RESIZE_CURSOR))) {
fix_pt_x = loc.x;
fix_pt_y = -1;
return;
if (c.equals(Cursor.getPredefinedCursor(Cursor.S_RESIZE_CURSOR))) {
fix_pt_x = -1;
fix_pt_y = loc.y;
return;
public void mouseReleased(MouseEvent me) {
fix_pt_x = -1;
fix_pt_y = -1;
public void mouseMoved(MouseEvent me) {
setCursorType(me.getPoint());
public void mouseDragged(MouseEvent me) {
Point p = me.getPoint();
int width = fix_pt_x == -1 ? mResizeable.getWidth() : p.x;
int height = fix_pt_y == -1 ? mResizeable.getHeight() : p.y;
mResizeable.setSize(new Dimension(width > 1 ? width : 1, height > 1 ? height : 1));
} -
My IPOD touch does not show same content as Itunes library after sync
I have changed the Genre of my much of music in the "music" file to reorganise my music. I expected these changes to be reflected in my Touch after I syncronised the two but nothing changed.
Can anyone tell me what I am doing wrong???See if this Link offers any assistance...
iPhone, iPad, or iPod touch not appearing in iTunes
From Here
http://www.apple.com/support/itunes/devices/ -
Windows NT Authentication type Disabled
Hi,
Windows NT Authentication type Disabled after Insatall SAP Integration kit
Best Regards,
Reddeppa KNT auth is not an option on a java app server it is only an available dropdown in client tools and IIS (.net) deployments. This means in 3.x it will never be available for the CMC and only available for infoview deployed on IIS. On top of that it should not be used with any of our supported versions of AD The plugin is deprecated and will be removed from the next version of our product. Use the AD plugin it can connect to anything the NT one can and much more.
Regards,
Tim -
How to disable after mis call while showing reply by message in apple 4s
how to disable after mis call while showing reply by message in apple 4s
Please rephrase the question. This doesn't make much sense.
-
Disable mouse-drag "floating" after adjust video effects position.
While dragging my mouse to adjust keyframe position there is a "smooth floating" effect taking place after I stop dragging. I would like to disable this as I find it very frustrating. Any ideas?
You're correct, I've been looking all over for Mouse settings and I've yet to find anything. I don't have any alternative input device connected to my PC, just a Keyboard (G15) and Mouse (Razer Naga RZ01-0028). I am currently not utilizing the Razer Synapse software, which I am downloading now to see if that helps ease any issues. Here are my current rig details:
CPU
Core i7-930 D0 @ 4.0Ghz 1.28v
corespeed: 2.8 Ghz MHz
idle_temperature: 70C Fahrenheit
load_temperature: 38C Fahrenheit
RAM
GeIL Black Dragon 6GB
speed: 1333
Monitor
2 x Acer 22"
Case
Cosmos S
Motherboard
eVGA E758-A1 3-Way SLI
Hard Drive
Crucial 128GB RealSSD C300
Keyboard
Logitech G15
Mouse
Razer Naga
GraphicsGIGABYTE GTX 460 1GB SLI
OS
Windows 8.1 x64
Power
650 Watt Antec NeoPOWER -
Window blank when I click "Show Package Contents" in Pictures folder
Long story short, I have two iPhoto libraries - one on an old laptop and one on a new MacBook Air (10.6.4). I have been trying to copy the old iPhoto library from the old laptop to the new laptop (so that I would be able to access both libraries on the new laptop by holding down option when starting iPhoto and selecting one or the other).
I copied the old iPhoto library into the "Pictures" folder on the new laptop. Then I did some ill-advised tidying up (I know, I know, I'm an idiot) in that "Pictures" folder. As I understand it, inside "Pictures", there should be an "iPhoto Library" folder but that has now gone. In fact, there is nothing in "Pictures" at all. When I right click on "Pictures" and select ""Show Package Contents" I get a blank window.
I have the two iPhoto libraries (old and new) elsewhere on my hard drive - in a folder I created in the home directory ("Pictures 2" > "iPhoto Library"). iPhoto can read the two libraries from there no problem. But I cannot drag and drop the libraries into the "Pictures" folder, where they should be, because I get an error message: "You can’t open the application “Pictures” because it may be damaged or incomplete". When I click on "Pictures", it doesn't open in Finder but iPhoto opens up showing whatever library I used last.
Someone on the iPhoto forum suggested that I post this problem here: "That sounds very like the Pictures Folder has had it's Execute bit set and the Mac now thinks it's an application. The solution to this is a trip to the Terminal. Post this here: http://discussions.apple.com/forum.jspa?forumID=1339 and someone will give you the Terminal commands to fix that." So I'm hoping that someone here can help me out!
Let me know if you need any further info. The other thread is here:
http://discussions.apple.com/thread.jspa?messageID=11958853#11958853
Many thanks.I'm having the same exact problem. I have an older macbook pro and I was trying to copy the iphoto library to my new imac. I was stupidly messing around with the pictures folder on the comp when things weren't migrating correctly, then it suddenly changed from a folder to a package and I got the same error when I tried to delete. Any suggestions?
-
Trackpad pointer will not show content while hovering over the item. Sometimes the pointer is a hand, sometimes it's an arrow, and other times it's a line. Also can no longer highlight, or drag.
Most commonly used backup methods
then
Step by Step to fix your Mac -
Clicking on "Show All Content" Closes Window
I am working through an issue with a web-based learning tool. When the player launches, a banner appears across the bottom stating that "Only secure content is displayed" with a button labeled "Show All Content". When I click on the
button, the entire player window closes. I know how to get rid of the warning and have applied a group policy to a set of computers and that works fine to get rid of the banner. But my question is: Why is showing all of the content - secure and not secure
- forcing the window to close?Hi,
Please share your IE and OS version?
In addition, have you checked this KB article?
“Only secure content is displayed” notification in Internet Explorer 9 or later
We may disable the “Only secure content is displayed” message
from IE:
1. Tools-> Internet Options.
2. Tap or click the Secruity tab, and then tap or click the Custom Level.
3. In the Settings box, scroll down to the Miscellaneous section, and under
Display mixed content choose from the following options:
Disable, will not display non-secure items.
Enable, will always display non-secure items without asking
Prompt, will prompt you when a webpage is using non-secure content
More information, please check into the KB article.
Best regards
Michael Shao
TechNet Community Support
Maybe you are looking for
-
Trying to set the ipod correctly since new updates and the song order is wrong, in itunes is correct as i intended it by rating, but on the ipod shows wrong, tried deleting playlist, full restore, copy to play order and manual upload, all to no avail
-
Nexus 4001i and MST tons of log errors
Went looking through my Nexus 4001i logs today, and started noticing a bunch of STP role and port change messages: 2013 Jul 5 14:40:31 N4k-SLOT7-SW1 %STP-6-PORT_ROLE: Port Ethernet1/1 instance MST0000 role changed to designated 2013 Jul 5 14:40:31
-
hi All, I am using SOA/JDev 11.1.1.1.0 I created a queue in jms and i am trying to produce a message to taht. But I am getting below error. +<fault>+ +<faultType>0</faultType>+ +<bindingFault>+ +<part name="summary">+ +<summary>Exception occured when
-
USB Devices with DLL librairies
Hello, I am working on a project that uses a custom made USB device. I use a USB serial converter chip that emulates a serial port on my computer. The problem is that I need to use some of the functions included in the DLL that came with the device a
-
am i doing something wrong. i keep getting an error when i try this select client_name, APEX_UTIL.URL_ENCODE(client_abbr) client_abbr from clients order by client_name i am using this query to populate a LOV. here is the error. * LOV query is invalid