Unnecessary drag
Hi,
My company recently installed Adobe Photoshop CS 5.
When using the Pen(tool) to do a cutout of an photo, why does the photo gets dragged further than we want or needed.
Can this unwanted drag be stop.
Thanks
Thanks for the post,
I have attached photos(for example) in explaining my problem.
Here is a photo of an man, that I need to cutout of him alone.
Photo1: I've zoom into this photo so that I can get a proper curve (cut out) using Pen tool.
Photo2: In order to move around the photo, (in zoomed mode) so that I can do the rest of the man's body, a good cut out, I use the 'Spacebar' which enables 'Hand tool'(temporally) I can use the hand tool to move around a photo (while Pen tool is still active) and do the remaining cutout.
When i use the spacebar that enables the hand tool to move a inches further, this cause in Photoshop CS 5 an 'drag' and this causes the photo (in zoomed) to move further than needed.
I cannot get a screen shot of hand tool(don't know) but in second photo(attached) you can see that the photo has moved vertically more than wanted.
Similar Messages
-
I've installed OS X Lion and now when I click on an icon on my desktop and drag it, it follows along nicely, only letting go of the mouse button doesn't drop it. In fact, nothing does. Instead the icon hangs onto the cursor as if I have kept holding down the mouse button. If I want to drag something to the trash, when I hover over the Trash icon and let go, it acts like I'm still holding down the mouse button and instead opens up the Trash folder. It's not limited to trash, it's just where I first noticed it. I can't move files between folders.
This pretty much happens across the board, too. Drag an icon off of the dock to remove it, it just hangs onto the mouse pointer and never goes away. Drag an icon from the icon bar at the top (command-click) and you can pick up the icon and move it, but never drop it. Is there a solution to this?How amazing... I have EXACTLY the same problem...
My Rig
Macbook Pro 15", Mid 2009, 2.66 Ghz. (Dual Graphics - GeForce 9400M & GeForce 9600M GT) running OS X 10.7 Build 11A511 - The Gold Master and eventually Retail version.
I have been running Snow Leopard and its subsequent updates, since its release. I have never had any issues with it at all, it was just the idiosyncrasies of the 3rd party software that would cause problems, but only minor, By the time Lion came around (I am a Developer so I got the GM in early July) I actually had a very stable rock solid computer
I am very methodical backing up, so when Lion was publicly released, I did the final Snow Leopard Migration assistant update, did a complete time machine backup.
I noticed that the build of the newly released Lion was the same as the development GM, so I decided to do what a normal customer would do, download it from the app store and install it on my now very stable Snow Leopard installation.
After the download finished, I clicked the install, nothing else and as per normal, thirty or so minutes pass and a restart happens, Lion is installed successfully over the top of my Snow Leopard.
Now here is when the problems started :-
When Lion booted, I just got a gray thatched screen, the login window was obviously there bust I couldn't see it, so typing blindly, I typed my password and the computer then loaded up my user account.
When that had finished, It looked nearly identical to the old Snow Leopard (a good thing). but when I clicked and dragged ANYTHING, in the Finder or in an App, what ever I was dragging stuck to the cursor and will not go away. I had to force quit the Finder or the App in question to get the cursor to "drop" the icon. (The problem in this thread)
the Second issue, was nothing with video or photos displayed... If I launched Safari 5.1 for example, and go to YouTube, the YouTube page would load, but as soon as it finished, It would flick to a blank white unclickable page.
Even the System Preferences were effected... If I went to Desktop & Screensaver the screensaver examples would just be a white box, nothing in them.. Desktop pictures were white. Even in the Finder, all the ICONS were white boxes.. no matter which view you put them in...
So these 2 combined issues are are pain...
anyway I solved the white page / Icons / screensaver / Flash / Youtube / problem by going to System Preferences, Energy Saver and turning the Graphics option to "Higher Performance"
If you have it set to "Better Battery Life" - the white screen problem reoccurs.
So I am now at the same stage as all of you. I have icons, text, browser elements, etc all sticking to the cursor when I go to drag them.. They just will not let go..
My temporary workaround :-
Create another user account on your computer
Log into yours (which will be experiencing the stuck icon issue) then just switch to the newly created account and back to yours again.
That fixes it...I don't know why, but it does.
I tested it the other way as well... If you log into the newly created account first, it WILL experience the sticking icon problem.. Switching to your account and back again, fixes it...
All of this is really unnecessary and totally annoying... so I hope someone figures out what the **** is going on... I don't want to keep switching accounts every time I boot up the laptop... -
SharePoint Online Drag and Drop to Quick Launch Links
Hello,
We're using a SharePoint document library to store invoices and an approval workflow to manage the approvals for payment. Once an invoice is approved and paid, they move the invoice into a Paid subfolder. Because there are a lot of invoices, the view
stretches across multiple pages. When they're not on the first page of the invoice list, they can't use the drag and drop functionality to move the invoice into the Paid folder because the Paid folder only shows up on the first page of the list.
I would like to be able to add a link to the Paid folder to the links on the left side of the window. I can add the link, and it works in that if you click the link it takes you to
Shared Documents\Paid. But if you try and drag a document to that link, it wants to place it in the root Shared Documents, giving you an error message that the file already exists in that location.
How can I create a quick link to a subfolder of Shared Documents that also allows drag and drop functionality?
Thanks,
AdamHi Adam, here are a few solutions:
1. Use "Open with Explorer."
2. Use the Content Organizer to automatically move the documents.
3. Create a workflow to automatically move the documents.
4. Create another view or library on the same page with the Paid folder in it.
5. DON'T USE FOLDERS!
(sorry, they're a big pet peeve of mine because of all the problems they create. They're also completely unnecessary with only one exception.)
cameron rautmann -
Reader XI pops up when dragging PDF file to email
System: Windows 7. Three windows are involved in this scenario:
1. Some document or other in Adobe reader XI, in the background
2. Windows Explorer on one side of the screen
3. New Outlook email being composed on the other side of the screen.
Sequence: I've found the PDF file that I want to send to someone, so I drag it from the Windows Explorer window to the Outlook window to attach it to the email I'm writing. If my mouse pointer goes over any open Reader XI window, that window immediately pushes to the front, obscuring the email window which I was aiming for.
Of course there are many workarounds for this, but the behaviour is both annoying and unnecessary. If I want to drop the PDF file in an obscured reader window, I can hover over the icon in the taskbar to bring the window to the front. This "me, me, me!" behaviour of Reader XI is crass.Safari 5 changed a few things internally, and it broke BrowserPlus. A patch was made last week and is available here:
Mac:
http://github.com/downloads/browserplus/platform/BrowserPlus2.9.2full.dmg
Windows:
http://github.com/downloads/browserplus/platform/BrowserPlus2.9.2full.exe
Otherwise, you can uninstall BrowserPlus. The latest instructions for that are here:
http://browserplus.org/docs/FAQ.html#uninstall -
Drag and save images onto desktop
Just wondering if anyone else has noticed that when they drag an image from the internet to save onto the desktop, it will automatically save it in grid and you're not able to save it away from the other icons which usually line up from the right-hand side? Before a recent re-install at the end of Oct '09, I was able to save the images anywhere on the desktop in order to find them more easily than having them bunched in with the already organized icons. My folder settings for desktop do not have snap to grid or keep arranged checked.
Performance tip: Keep the Desktop clutter-free (empty, if possible)
Mac OS X's Desktop is the de facto location for downloaded files, and for many users, in-progress works that will either be organized later or deleted altogether. The desktop can also be gluttonous, however, becoming a catch-all for files that linger indefinitely.
Unfortunately - aside from the effect of disarray it creates - keeping dozens or hundreds of files on the Desktop can significantly degrade performance. Not necessarily because the system is sluggish with regard to rendering the icons on the desktop and storing them in memory persistently (which may be true in some cases), but more likely because keeping an excessive number of items on the Desktop can cause the windowserver process to generate reams of logfiles, which obviously draws resources away from other system tasks. Each of your icons on your desktop is stored as a window in the window server, not as an alias. The more you have stored, the more strain it puts on the window server. Check your desktop for unnecessary icons and clear them out.
Keeping as few items as possible on the Desktop can prove a surprisingly effective performance boon. Even creating a single folder on your Desktop and placing all current and future clutter inside, then logging out and back in can provide an immediately noticeable speed boost, particularly for the Finder.
And it is why Apple invented 'Stacks' for Leopard.
Here is Apple's take on the subject:
http://www.apple.com/pro/tips/immaculate_desktop.html -
Drag and drop image into 2d Picture
Hi All,
I'm trying to implement a bit of "MS paint" magic for a customer's dialog. I want to be able to drag and drop into a 2d picture control. Ideally, I'd like to be able to move this around and resize it once it's there, but let's start with the first part - how to drag and drop from e.g. the desktop onto the 2d picture control. The rest is nice-to-have but unnecessary.
I've seen a clever example on here using a transparent path control, but that's not going to cut it here (I have other events linked with that picture box, e.g. right now I have a double-click event adding text to the image).
Thanks for any ideas... I've looked briefly into using the windows API (i.e. constructor nodes) but, there be dragons.
Solved!
Go to Solution.pobrepablo1 wrote:
Hi All,
I'm trying to implement a bit of "MS paint" magic for a customer's dialog. I want to be able to drag and drop into a 2d picture control. Ideally, I'd like to be able to move this around and resize it once it's there, but let's start with the first part - how to drag and drop from e.g. the desktop onto the 2d picture control. The rest is nice-to-have but unnecessary.
I've seen a clever example on here using a transparent path control, but that's not going to cut it here (I have other events linked with that picture box, e.g. right now I have a double-click event adding text to the image).
Thanks for any ideas... I've looked briefly into using the windows API (i.e. constructor nodes) but, there be dragons.
Well, it is possible and I got it working . Let me clean it up, close my references, etc and I will post it. You will have to use the .net control though so hopefully that is ok. You could manage it for the labVIEW picture control with a mix of .net or winAPI to handle the drag and drop and see if it's over your picture control and then somehow get the path of the drag and load the path into the LabVIEW picture control. But, you may just want to stick with it all using the .net control
CLA, LabVIEW Versions 2010-2013 -
How do I delete unnecessary files
Mac OS X, V 10.6.8, processor; 2.66 GHz Intel Core 2 Duo; Memory 2 GB 1067 MHz DDR3
I would like to clean up my computer of unnecessary files and backups, i.e. email, printers, logs, caches.You should never, EVER let a computer hard drive get completely full, EVER!
With Macs and OS X, you shouldn't let the hard drive get below 15 GBs or less of free data space.
If it does, it's time for some hard drive housecleaning.
Follow some of my tips for cleaning out, deleting and archiving data from your Mac's internal hard drive.
Have you emptied your Mac's Trash icon in the Dock?
If you use iPhoto or Aperture, both have its own trash that needs to be emptied, also.
If you store images in other locations other than iPhoto, then you will have to weed through these to determine what to archive and what to delete.
If you are an iMovie/ Final Cut user, both apps have their own individual Trash location that needs to be emptied, too!
If you use Apple Mail app, Apple Mail also has its own trash area that needs to be emptied, too!
Delete any old or no longer needed emails and/or archive to disc, flash drives or external hard drive, older emails you want to save.
Look through your other Mailboxes and other Mail categories to see If there is other mail you can archive and/or delete.
STAY AWAY FROM DELETING ANY FILES FROM OS X SYSTEM FOLDER!
Look through your Documents folder and delete any type of old useless type files like "Read Me" type files.
Again, archive to disc, flash drives, ext. hard drives or delete any old documents you no longer use or immediately need.
Look in your Applications folder, if you have applications you haven't used in a long time, if the app doesn't have a dedicated uninstaller, then you can simply drag it into the OS X Trash icon. IF the application has an uninstaller app, then use it to completely delete the app from your Mac.
To find other large files, download an app called Omni Disk Sweeper.
http://www.omnigroup.com/more
Also, Find Any File
http://apps.tempel.org/FindAnyFile/
Download an app called OnyX for your version of OS X.
http://www.titanium.free.fr/downloadonyx.php
When you install and launch it, let it do its initial automatic tests, then go to the cleaning and maintenance tabs and run the maintenance tabs that let OnyX clean out all web browser cache files, web browser histories, system cache files, delete old error log files.
Typically, iTunes and iPhoto libraries are the biggest users of HD space.
move these files/data off of your internal drive to the external hard drive and deleted off of the internal hard drive.
If you have any other large folders of personal data or projects, these should be archived or moved, also, to the optical discs, flash drives or external hard drive and then either archived to disc and/or deleted off your internal hard drive.
Moving iTunes library
http://support.apple.com/kb/HT1449
Moving iPhoto library
http://support.apple.com/kb/PH2506
Moving iMovie projects folder
http://support.apple.com/kb/ph2289
Good Luck! -
My 2010 Macbook Pro that is running on OS X Mavericks (10.9.4) has been running rather slow lately because of all the files I use for work. I have gone through and deleted all the unnecessary applications by simply dragging them into the trash, but I am curious, does this ACTUALLY uninstall the application? My reason for asking is because in some cases, when dragging the app to the trash, the app simply just says, "Move to trash" and other times it says, "Uninstall application." Like I said I want to clear up as much space as possible to get my laptop running a bit faster.
And yes, I am already in the process of ordering new RAM to help speed up the computer as a whole, but I would like some help in UNINSTALLING unwanted applications, and am also open to any other ideas on how to speed my computer up. I am EXTREMELY tech savvy when it comes to computers, especially Apples, I just can't seem to figure this one out.... HELP ME!
Thank you in advanceHave a look at this video tutorial on how to uninstall applications completely on Mac OS X, something apps like AppZapper and AppDelete are not able to do yet.
And unless you have a 250 GB HDD with less than 5 to 10 GB of free storage, freeing up storage space will not make your computer run faster.
Maybe think about getting an SSD as system drive, it speeds up your Mac quite considerably.
As for other tricks:
Performance Tips For Mac OS X
Mac Performance Guide -
Folders on Desktop move when file dragged to them
With Firefox 3 we now see an annoying behaviour in the Finder (MacOS 10.4.11.) When the Desktop has "Keep arranged by..." turned off (necessary due to the Finder's slow refresh in MacOSX), if we drag an image from Firefox onto the closed folder the folder moves. In some instances it moves to the center of the screen (so it's then hidden behind the browser window) and in others it moves to the location where it was created. This happens with images (gif, png, jpg...) but not with dragged text or links.
We deleted all our .DS_Store files and Finder prefs/plists but folders still move when an image is dragged to them. We see this on both our two MacBook Pros, and even with a newly created account.
A workaround is to use "Save Image As..." instead of dragging but ten+ years of habit and muscle memory make this undoable.
Has anyone else seen this and can anyone suggest a solution?Not a solution but possible prevention:
Performance tip: Keep the Desktop clutter-free (empty, if possible)
Mac OS X's Desktop is the de facto location for downloaded files, and for many users, in-progress works that will either be organized later or deleted altogether. The desktop can also be gluttonous, however, becoming a catch-all for files that linger indefinitely.
Unfortunately - aside from the effect of disarray it creates - keeping dozens or hundreds of files on the Desktop can significantly degrade performance. Not necessarily because the system is sluggish with regard to rendering the icons on the desktop and storing them in memory persistently (which may be true in some cases), but more likely because keeping an excessive number of items on the Desktop can cause the windowserver process to generate reams of logfiles, which obviously draws resources away from other system tasks. Each of your icons on your desktop is stored as a window in the window server, not as an alias. The more you have stored, the more strain it puts on the window server. Check your desktop for unnecessary icons and clear them out.
Keeping as few items as possible on the Desktop can prove a surprisingly effective performance boon. Even creating a single folder on your Desktop and placing all current and future clutter inside, then logging out and back in can provide an immediately noticeable speed boost, particularly for the Finder.
And it is why Apple invented 'Stacks' for Leopard. -
Hi ,everyone:
I want to drag one jtree node to one jtable cell.The tree's node I added my own class: "TreeBranch".
DefaultMutableTreeNode node=new DefaultMutableTreeNode(TreeBranch);The proplem is when I drag a tree node ,I find the "TreeBranch" class in the "(DefaultMutableTreeNode) path.getLastPathComponent()" and the variable "transferable" before the process: "source.startDrag(dge,DragSource.DefaultCopyDrop,transferable,this);"in the TreeDragSource.java .But when in the TableDropTarget.java,I accept the Transferable object ,the TreeNode's userObject is null if the node is my own class TreeBranch .If the node 's userObject is a string ,that was retained.
The variable "transferable" is the TransferableTreeNode's object.The class TransferableTreeNode implements Transferable.And The class TransferableTreeNode is:
// TransferableTreeNode.java
// A Transferable TreePath to be used with Drag & Drop applications.
import java.io.*;
import java.awt.dnd.*;
import java.awt.datatransfer.*;
import javax.swing.tree.*;
import com.clousoft.xbrlview.config.*;
public class TransferableTreeNode implements Transferable {
public static DataFlavor TREE_PATH_FLAVOR = new DataFlavor(TreePath.class,
"Tree Path");
DataFlavor flavors[] = { TREE_PATH_FLAVOR };
TreePath path;
public TransferableTreeNode(TreePath tp) {
path = tp;
public synchronized DataFlavor[] getTransferDataFlavors() {
return flavors;
public boolean isDataFlavorSupported(DataFlavor flavor) {
return (flavor.getRepresentationClass() == TreePath.class);
public synchronized Object getTransferData(DataFlavor flavor)
throws UnsupportedFlavorException, IOException {
if (isDataFlavorSupported(flavor)) {
return (Object)path;
} else {
throw new UnsupportedFlavorException(flavor);
}Who can tell me how to retain my own class type in the tree path when drag and drop.
Thanks !At a guess, I'd say your data flavour indicates a
serialisable Java object. Thus it will be serialising
your tree node class but your user object probably
isn't serialisable and so doesn't survive the
transit.
In fact, DefaultMutableTreeNode quietly ignores
non-serialisable user objects when serialising
itself.
You could make your user object serialisable but that
may lead to unnecessary copying of it. If you want to
maintain a reference to the user object in your tableCan you me tell me the details ,because I touch the
(rather than receiving a copy of it) you should
probably be using a JVM-local object data flavour
instead.
Hope this helps.Excuse me!
Can you tell me the details because I did not know how to do it using a JVM-local object dataflavour or make my user object serialisable .I am a tenderfoot. Thank you . -
AWT Drag Events Not Registering
Hi all,
I have written up a small program (code is at the bottom) that uses the getToolkit().addAWTEventListener(new AWTEventListener() code. In it, it will listen for drag events. If it detects one, it will update a variable called currentPoint. Then I have a subclassed JPanel that everytime it paints, will display a rectangle at the current point.
I then run the program and drag my mouse around for maybe 30 seconds. Things work 100% correct. After that though, it seems the AWTEventListener begins missing the events and the currentpoint doesn't update. This means the block that is following my mouse stops as my mouse cursor moves away during the drag. The point updates about a second later. So for example: If I am moving along the x-axis, the block follows me until say (10, 5) and then stops. My mouse then continues to move and it gets to (15,5) and then the block updates and jumps to that point. These actions steadily get worse and worse as I run the program.
Does anyone have any idea what is occuring? I haven't given much thought but maybe the GC? You can also look at the output and there are no events processed during that time...
Thanks,
day
Code:
package main;
import java.awt.AWTEvent;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Point;
import java.awt.Rectangle;
import java.awt.event.AWTEventListener;
import java.awt.event.MouseEvent;
import java.io.BufferedWriter;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.Writer;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
public class DragWindow extends JFrame
private Point currentPoint = null;
private PaintPanel paintPanel;
private boolean dragging = false;
public DragWindow()
super("Drag Test");
paintPanel = new PaintPanel(this);
this.getContentPane().add(paintPanel);
try
final PrintWriter out
= new PrintWriter(new BufferedWriter(new FileWriter("dragData.txt")));
addWindowListener(new ExitListener(out));
setSize(1280, 1024);
setLocation(0, 0);
setVisible(true);
getToolkit().addAWTEventListener(new AWTEventListener()
public void eventDispatched ( AWTEvent e )
Point point = ((MouseEvent)e).getPoint();
currentPoint = point;
System.out.println("Parsed this: X: " + point.x + ". Y: " + point.y);
out.write("Parsed this: X: " + point.x + ". Y: " + point.y + "\n");
out.flush();
if(e.getID() == MouseEvent.MOUSE_DRAGGED)
String data = "MOUSE_DRAGGED: Event: " + e.paramString();
System.out.println(data);
out.write(data);
out.flush();
dragging = true;
else if(e.getID() == MouseEvent.MOUSE_RELEASED)
String data = "MOUSE_RELEASED: Event: " + e.paramString();
System.out.println(data);
out.write(data);
out.flush();
dragging = false;
repaint();
}, AWTEvent.MOUSE_EVENT_MASK | AWTEvent.MOUSE_MOTION_EVENT_MASK
catch (FileNotFoundException e1)
e1.printStackTrace();
catch (IOException e)
e.printStackTrace();
* @return Returns the currentPoint.
public Point getCurrentPoint ()
return currentPoint;
* @param currentPoint The currentPoint to set.
public void setCurrentPoint ( Point currentPoint )
this.currentPoint = currentPoint;
* @return Returns the dragging.
public boolean isDragging ()
return dragging;
* @param dragging The dragging to set.
public void setDragging ( boolean dragging )
this.dragging = dragging;
package main;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Rectangle;
import javax.swing.JPanel;
public class PaintPanel extends JPanel
DragWindow window;
public PaintPanel ( DragWindow window )
this.window = window;
public void paintComponent(Graphics g)
super.paintComponents(g);
Graphics2D g2d = (Graphics2D)g;
if(window.getCurrentPoint() != null && window.isDragging())
Rectangle rectPoint = new Rectangle(window.getCurrentPoint().x, window.getCurrentPoint().y, 20, 20);
g2d.fill(rectPoint);
package main;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.io.PrintWriter;
import javax.swing.JFrame;
/** A listener that you attach to the top-level Frame or JFrame of
* your application, so quitting the frame exits the application.
* 1998 Marty Hall, http://www.apl.jhu.edu/~hall/java/
public class ExitListener extends WindowAdapter
private JFrame frame;
private PrintWriter outi;
public ExitListener(PrintWriter o)
outi = o;
* @return Returns the frame.
public JFrame getFrame ()
return frame;
* @param frame The frame to set.
public void setFrame ( JFrame frame )
this.frame = frame;
public void windowClosing(WindowEvent event)
outi.close();
System.exit(0);
}i ran your code on my Pc and do not encounter the problem that you have described. The rectangle always follows my mouse when I drag, however, it isnt at the current point of the mouse. It stays a constant value below it.
Also, GC is unnecessary. java auotmatically gc's when needed.
I am unsure what may be wrong for you since your app seems to work fine for me, even after a steady 1.5 - 2 mins of dragging. -
For reference only
An extremely rare example of a panic in Build 11A511 of 10.7.
The panic occurred whilst using Safari 5.1 (7534.48.3) but I can't say whether the bug is in Safari. Maybe an issue with third party software or hardware.
Sun Jul 24 06:46:18 2011
panic(cpu 1 caller 0xffffff80002c268d): Kernel trap at 0xffffff800026fef8, type 14=page fault, registers:
CR0: 0x000000008001003b, CR2: 0x0000000000000008, CR3: 0x0000000000100000, CR4: 0x0000000000000660
RAX: 0x0000000000000001, RBX: 0xffffff8020422bc0, RCX: 0xffffff80e2f95000, RDX: 0xffffff80008a9660
RSP: 0xffffff80e9293ee0, RBP: 0xffffff80e9293f00, RSI: 0x0000000000000001, RDI: 0x0000000000000000
R8: 0x0000000000000000, R9: 0x00000000c9269860, R10: 0x0000000000363412, R11: 0x0000000000363410
R12: 0xffffff8020422120, R13: 0xffffff80008a9660, R14: 0xffffff80139f8240, R15: 0xffffff8003441e80
RFL: 0x0000000000010082, RIP: 0xffffff800026fef8, CS: 0x0000000000000008, SS: 0x0000000000000010
CR2: 0x0000000000000008, Error code: 0x0000000000000000, Faulting CPU: 0x1
Backtrace (CPU 1), Frame : Return Address
0xffffff80e9293ba0 : 0xffffff8000220702
0xffffff80e9293c20 : 0xffffff80002c268d
0xffffff80e9293dc0 : 0xffffff80002d7a3d
0xffffff80e9293de0 : 0xffffff800026fef8
0xffffff80e9293f00 : 0xffffff80005283e3
0xffffff80e9293fb0 : 0xffffff8000820057
BSD process name corresponding to current thread: kernel_task
Boot args: -v
Mac OS version:
11A511
Kernel version:
Darwin Kernel Version 11.0.0: Sat Jun 18 12:56:35 PDT 2011; root:xnu-1699.22.73~1/RELEASE_X86_64
Kernel UUID: 24CC17EB-30B0-3F6C-907F-1A9B2057AF78
System model name: MacBookPro5,2 (Mac-F2268EC8)
System uptime in nanoseconds: 22881885440733
last loaded kext at 22026194103112: com.apple.driver.CoreStorageFsck 180 (addr 0xffffff7f807b5000, size 90112)
last unloaded kext at 22170058866400: com.apple.driver.AppleUSBCDC 4.1.15 (addr 0xffffff7f80795000, size 12288)
loaded kexts:
com.google.filesystems.fusefs 2.1.9
com.protectmac.kext.AntiVirus 1.1.5
org.virtualbox.kext.VBoxNetAdp 4.1.0
org.virtualbox.kext.VBoxNetFlt 4.1.0
org.virtualbox.kext.VBoxUSB 4.1.0
org.virtualbox.kext.VBoxDrv 4.1.0
foo.tun 1.0
foo.tap 1.0
com.iospirit.driver.rbiokithelper 1.18
com.apple.filesystems.smbfs 1.7.0
com.apple.driver.AppleHWSensor 1.9.4d0
com.apple.filesystems.autofs 3.0
com.apple.driver.AudioAUUC 1.59
com.apple.driver.AppleMikeyHIDDriver 122
com.apple.driver.AppleHDA 2.1.1f11
com.apple.driver.AppleMikeyDriver 2.1.1f11
com.apple.driver.AGPM 100.12.40
com.apple.driver.SMCMotionSensor 3.0.1d2
com.apple.driver.AppleUpstreamUserClient 3.5.9
com.apple.driver.AppleMCCSControl 1.0.24
com.apple.iokit.IOUserEthernet 1.0.0d1
com.apple.Dont_Steal_Mac_OS_X 7.0.0
com.apple.driver.AudioIPCDriver 1.2.0
com.apple.driver.AppleSMCLMU 2.0.1d2
com.apple.driver.AppleLPC 1.5.1
com.apple.driver.ACPI_SMC_PlatformPlugin 4.7.0b2
com.apple.driver.AppleMuxControl 3.0.8
com.apple.GeForce 7.0.2
com.apple.driver.AppleUSBTCButtons 220.8
com.apple.driver.AppleUSBTCKeyboard 220.8
com.apple.driver.Oxford_Semi 3.0.0
com.apple.AppleFSCompression.AppleFSCompressionTypeDataless 1.0.0d1
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0d1
com.apple.BootCache 32
com.apple.iokit.SCSITaskUserClient 3.0.0
com.apple.iokit.IOAHCIBlockStorage 2.0.0
com.apple.driver.AppleFWOHCI 4.8.6
com.apple.driver.AirPort.Brcm4331 500.20.6
com.apple.driver.AppleUSBHub 4.4.0
com.apple.driver.AppleAHCIPort 2.1.8
com.apple.driver.AppleSmartBatteryManager 161.0.0
com.apple.driver.AppleEFINVRAM 1.5.0
com.apple.nvenet 2.0.17
com.apple.driver.AppleUSBEHCI 4.4.0
com.apple.driver.AppleUSBOHCI 4.4.0
com.apple.driver.AppleRTC 1.4
com.apple.driver.AppleHPET 1.6
com.apple.driver.AppleACPIButtons 1.4
com.apple.driver.AppleSMBIOS 1.7
com.apple.driver.AppleACPIEC 1.4
com.apple.driver.AppleAPIC 1.5
com.apple.driver.AppleIntelCPUPowerManagementClient 166.0.0
com.apple.nke.applicationfirewall 3.0.30
com.apple.security.quarantine 1
com.apple.driver.AppleIntelCPUPowerManagement 166.0.0
com.apple.kext.triggers 1.0
com.apple.driver.IOBluetoothHIDDriver 2.5f17
com.apple.driver.DspFuncLib 2.1.1f11
com.apple.driver.AppleSMBusController 1.0.10d0
com.apple.iokit.IOFireWireIP 2.2.3
com.apple.iokit.IOSurface 80.0
com.apple.iokit.IOBluetoothSerialManager 2.5f17
com.apple.iokit.IOSerialFamily 10.0.5
com.apple.iokit.IOAudioFamily 1.8.3fc11
com.apple.kext.OSvKernDSPLib 1.3
com.apple.driver.AppleHDAController 2.1.1f11
com.apple.iokit.IOHDAFamily 2.1.1f11
com.apple.driver.AppleSMC 3.1.1d2
com.apple.driver.IOPlatformPluginFamily 4.7.0b2
com.apple.driver.AppleSMBusPCI 1.0.10d0
com.apple.driver.AppleGraphicsControl 3.0.8
com.apple.driver.AppleBacklightExpert 1.0.3
com.apple.nvidia.nv50hal 7.0.2
com.apple.NVDAResman 7.0.2
com.apple.iokit.IONDRVSupport 2.3
com.apple.iokit.IOGraphicsFamily 2.3
com.apple.driver.BroadcomUSBBluetoothHCIController 2.5f17
com.apple.driver.AppleUSBBluetoothHCIController 2.5f17
com.apple.iokit.IOBluetoothFamily 2.5f17
com.apple.driver.AppleUSBMultitouch 220.23
com.apple.iokit.IOSCSIReducedBlockCommandsDevice 3.0.0
com.apple.iokit.IOFireWireSerialBusProtocolTransport 2.1.0
com.apple.iokit.IOFireWireSBP2 4.2.0
com.apple.iokit.IOUSBHIDDriver 4.4.0
com.apple.driver.CoreStorage 180
com.apple.driver.AppleUSBMergeNub 4.4.0
com.apple.iokit.IOSCSIBlockCommandsDevice 3.0.0
com.apple.iokit.IOUSBMassStorageClass 3.0.0
com.apple.driver.AppleUSBComposite 3.9.0
com.apple.iokit.IOSCSIMultimediaCommandsDevice 3.0.0
com.apple.iokit.IOBDStorageFamily 1.6
com.apple.iokit.IODVDStorageFamily 1.6
com.apple.iokit.IOCDStorageFamily 1.7
com.apple.driver.XsanFilter 403
com.apple.iokit.IOAHCISerialATAPI 2.0.0
com.apple.iokit.IOSCSIArchitectureModelFamily 3.0.0
com.apple.iokit.IOFireWireFamily 4.4.3
com.apple.iokit.IO80211Family 400.40
com.apple.iokit.IOUSBUserClient 4.4.0
com.apple.iokit.IOAHCIFamily 2.0.6
com.apple.iokit.IONetworkingFamily 2.0
com.apple.iokit.IOUSBFamily 4.4.0
com.apple.driver.NVSMU 2.2.9
com.apple.driver.AppleEFIRuntime 1.5.0
com.apple.iokit.IOHIDFamily 1.7.0
com.apple.iokit.IOSMBusFamily 1.1
com.apple.security.sandbox 165
com.apple.kext.AppleMatch 1.0.0d1
com.apple.security.TMSafetyNet 7
com.apple.driver.DiskImages 326
com.apple.iokit.IOStorageFamily 1.7
com.apple.driver.AppleKeyStore 28.18
com.apple.driver.AppleACPIPlatform 1.4
com.apple.iokit.IOPCIFamily 2.6.5
com.apple.iokit.IOACPIFamily 1.4
The screenshots below were taken after the event, a mock-up of my best recollection of actions before the panic.
AFAIR it was after I dragged, maybe as I released the mouse, that the panic occurred.
I do not seek help with this, but if I draw a conclusion I'll post again.Here is some information that will answer your Kernel Panic questions for every level of interest.
(1) Start here for help understanding and resolving kernel panics: http://www.thexlab.com/faqs/kernelpanics.html
Don't be concerned that OS X 10.6 is not specifically mentioned. This info also applies to SL Macs.
Another KP help site:http://www.index-site.com/kernelpanic.html
Apple's KP knowledge base article: http://support.apple.com/kb/HT1392
Apple's 10.6 help article: http://docs.info.apple.com/article.html?path=Mac/10.6/en/8965.html
In-depth KP info: http://developer.apple.com/mac/library/technotes/tn2002/tn2063.html
(2) Panics are often (but not always) hardware related, so disconnect unnecessary peripherals, check any RAM or hardware you have added, and try the suggestions in the links above one-by-one until you find the one that fixes your problem. If your trouble persist, or if your time is critical, you might want to ask your Apple Service Technician to work the problem for you.
EZ Jim
Mac Pro Quad Core (Early 2009) 2.93Ghz Mac OS X (10.6.6); MacBook Pro (13 inch, Mid 2009) 2.26GHz (10.6.6)
LED Cinema Display; G4 PowerBook 1.67GHz (10.4.11); iBookSE 366MHz (10.3.9); External iSight; iPod4touch4.2.1 -
Software to clean duplicate and unnecessary files
Hello
I was looking for a safe app or software that can clean extra and unnecessary files off of my imac - has anyone tried anything that they trust will work?
I am not well enough versed to just start deleting files - and would probably delete something that was needed
any help would be greatly appreciated
sbmopHere are some general tips to keep your Mac's hard drive trim and slim as possible
You should never, EVER let a computer hard drive get completely full, EVER!
With Macs and OS X, you shouldn't let the hard drive get below 15 GBs or less of free data space.
If it does, it's time for some hard drive housecleaning.
Follow some of my tips for cleaning out, deleting and archiving data from your Mac's internal hard drive.
Have you emptied your Mac's Trash icon in the Dock?
If you use iPhoto or Aperture, both have its own trash that needs to be emptied, also.
If you store images in other locations other than iPhoto, then you will have to weed through these to determine what to archive and what to delete.
If you are an iMovie/ Final Cut user, both apps have their own individual Trash location that needs to be emptied, too!
If you use Apple Mail app, Apple Mail also has its own trash area that needs to be emptied, too!
Delete any old or no longer needed emails and/or archive to disc, flash drives or external hard drive, older emails you want to save.
Look through your other Mailboxes and other Mail categories to see If there is other mail you can archive and/or delete.
STAY AWAY FROM DELETING ANY FILES FROM OS X SYSTEM FOLDER!
Look through your Documents folder and delete any type of old useless type files like "Read Me" type files.
Again, archive to disc, flash drives, ext. hard drives or delete any old documents you no longer use or immediately need.
Look in your Applications folder, if you have applications you haven't used in a long time, if the app doesn't have a dedicated uninstaller, then you can simply drag it into the OS X Trash icon. IF the application has an uninstaller app, then use it to completely delete the app from your Mac.
To find other large files, download an app called Omni Disk Sweeper.
http://www.omnigroup.com/more
Also, Find Any File
http://apps.tempel.org/FindAnyFile/
Download an app called OnyX for your version of OS X.
http://www.titanium.free.fr/downloadonyx.php
When you install and launch it, let it do its initial automatic tests, then go to the cleaning and maintenance tabs and run the maintenance tabs that let OnyX clean out all web browser cache files, web browser histories, system cache files, delete old error log files.
Typically, iTunes and iPhoto libraries are the biggest users of HD space.
move these files/data off of your internal drive to the external hard drive and deleted off of the internal hard drive.
If you have any other large folders of personal data or projects, these should be archived or moved, also, to the optical discs, flash drives or external hard drive and then either archived to disc and/or deleted off your internal hard drive.
Moving iTunes library
http://support.apple.com/kb/HT1449
Moving iPhoto library
http://support.apple.com/kb/PH2506
Moving iMovie projects folder
http://support.apple.com/kb/ph2289
Good Luck! -
Need Help to Draw and Drag Triangle - URGENT
Hi everyone - I am developing various proofs of the pythagora's theorem
and the following code draws a triangle on screen and the proof follows -
but i need to know how to drag the triangle such tht 1 angle is always set to 90 degrees.
i.e. i need to resize the triangle by dragging its vertex points by which the1 angle remains at 90 no matter what the size.
The proof has got some graphics code hardcoded in it - i.e. LINES AND POLYGONS have been hardcoded
i need to reconfigure that such that everytime the user increases the size of the triagnle and clicks on next it draws the lines and polygons in the correct area and place
PLEASE HELP
the code is as follows
MAIN CLASS
import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.*;
import java.awt.event.*;
import java.text.*;
import javax.swing.*;
public class TestProof {
TestControl control; // the controls for the visual proof
TestView view; // the drawing area to display proof
// called upon class creation
public TestProof() {
view = new TestView();
view.setBackground(Color.WHITE);
control = new TestControl(view);
Frame f = new Frame("Pythagoras");
f.add(view,"Center");
f.add(control,"South");
f.setSize(600,600);
f.setBackground(Color.lightGray);
f.addMouseMotionListener(
new MouseMotionListener() { //anonymous inner class
//handle mouse drag event
public void mouseMoved(MouseEvent e) {
System.out.println("Mouse " + e.getX() +"," + e.getY());
public void mouseDragged(MouseEvent e) {
System.out.println("Draggg: x=" + e.getX() + "; y=" + e.getY());
JMenu File = new JMenu("File");
JMenuItem Exit = new JMenuItem("Exit");
Exit.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
ExitActionPerformed(evt);
JMenuBar menuBar = new JMenuBar();
menuBar.add(File);
File.add(Exit);
f.add(menuBar,"North");
f.show();
private JMenuBar getMenuBar() {
JMenu File = new JMenu("File");
JMenuItem Exit = new JMenuItem("Exit");
Exit.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
ExitActionPerformed(evt);
JMenuBar menuBar = new JMenuBar();
menuBar.add(File);
File.add(Exit);
return menuBar;
private void ExitActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
System.exit(0);
// for standalone use
public static void main(String args[]) {
TestProof TP = new TestProof();
}Test VIEW
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.awt.geom.*;
import java.text.*;
import javax.swing.JFrame;
import javax.swing.JPanel;
public class TestView extends Canvas {
int TRANSLUCENT = 1;
int sequence; // sequencer that determines what should be drawn
// notes matter
int noteX = 100; // note coordinates
int noteY = 60;
int fontSize = 11; // font size
int lineSpacing // space between two consecutive lines
= fontSize + 2;
Font noteFaceFont; // font used to display notes
// objects matter
Polygon tri; // right-angled triangle with sides A, B, and C
Polygon tri1;
Polygon sqrA; // square with side of length A
Polygon sqrB; // square with side of length B
Polygon sqrC; // square with side of length C
Polygon parA; // parallelogram of base A and height A
Polygon parB; // parallelogram of base B and height B
Polygon poly1;
Polygon poly2;
Polygon poly3;
Polygon poly4;
Polygon poly5;
Polygon poly6;
int X0 = 350; // coordinates of triangle
int Y0 = 350;
int A = 90;//60; // triangle size
int B = 120;//80;
int C = 150;//100;
//CORDS of 2nd triangle
int X1 = 350;
int Y1 = 500;
// notes: three lines per note
String notes[] = {
// note 0
// note 1
// note 2
// note 3
// note 4
// note 5
// note 6
// note 7
// note 8
// note 9
// note 10
// note 11
// note 12
// note 13
// note 14
// constructor
public TestView() {
addMouseMotionListener(
new MouseMotionListener() { //anonymous inner class
//handle mouse drag event
public void mouseMoved(MouseEvent e) {
System.out.println("Mouse " + e.getX() +"," + e.getY());
public void mouseDragged(MouseEvent e) {
System.out.println("Draggg: x=" + e.getX() + "; y=" + e.getY());
// set font
noteFaceFont = new Font("TimesRoman", Font.PLAIN, fontSize);
// (coordinates specified w.r.t. to P0, unless otherwise specified)
// create the triangle
tri = new Polygon();
tri.addPoint(0, 0); // add P0 coordinate
tri.addPoint(A*A/C, -A*B/C); // add A3 coordinate
tri.addPoint(C, 0); // add C1 coordinate
tri.translate(X0, Y0); // place triangle
tri1 = new Polygon();
tri1.addPoint(0,0); // add P0 coordinate
tri1.addPoint(A*A/C +38, +A*B/C); // add A3 coordinate
tri1.addPoint(C, 0); // add C1 coordinate
tri1.translate(X1, Y1);
// create square of side A
sqrA = new Polygon();
sqrA.addPoint(0, 0); // add P0 coordinate
sqrA.addPoint(-A*B/C, -A*A/C); // add A1 coordinate
sqrA.addPoint(-A*(B-A)/C, -A*(A+B)/C); // add A2 coordinate
sqrA.addPoint(A*A/C, -A*B/C); // add A3 coordinate
sqrA.translate(X0, Y0); // place square
// create square of side B
// warning: the coordinate of this object are specified relative to C1
sqrB = new Polygon();
sqrB.addPoint(0, 0); // add C1 coordinate
sqrB.addPoint(B*A/C, -B*B/C); // add B1 coordinate
sqrB.addPoint(B*(A-B)/C, -B*(A+B)/C); // add B2 coordinate
sqrB.addPoint(-B*B/C, -B*A/C); // add A3 coordinate
sqrB.translate(X0 + C, Y0); // place square
// create square of side C
sqrC = new Polygon();
sqrC.addPoint(0, 0); // add P0 coordinate
sqrC.addPoint(C, 0); // add C1 coordinate
sqrC.addPoint(C, C); // add C2 coordinate
sqrC.addPoint(0, C); // add C3 coordinate
sqrC.translate(X0, Y0); // place square
poly1 = new Polygon();
poly1.addPoint(405,279);
poly1.addPoint(413,350);
poly1.addPoint(432,500);
poly1.addPoint(442,571);
poly1.addPoint(500,500);
poly1.addPoint(500,350);
poly2 = new Polygon();
poly2.addPoint(279,297);
poly2.addPoint(404,280);
poly2.addPoint(571,254);
poly2.addPoint(500,350);
poly2.addPoint(350,350);
//Polygon 3
poly3 = new Polygon();
poly3.addPoint(404,280);
poly3.addPoint(350,350);
poly3.addPoint(414,350);
poly4 = new Polygon();
poly4.addPoint(350,350);
poly4.addPoint(350,500);
poly4.addPoint(442,572);
poly4.addPoint(433,500);
poly4.addPoint(414,350);
poly5 = new Polygon();
poly5.addPoint(476,183);
poly5.addPoint(332,225);
poly5.addPoint(278,295);
poly5.addPoint(404,279);
poly5.addPoint(571,254);
poly6= new Polygon();
poly6.addPoint(405,278);
poly6.addPoint(332,224);
poly6.addPoint(476,182);
// create parallelogram of height A
parA = new Polygon();
parA.addPoint(0, 0); // add P0 coordinate
parA.addPoint(0, C); // add C3 coordinate
parA.addPoint(A*A/C, C - A*B/C); // add Q0 coordinate
parA.addPoint(A*A/C, -A*B/C); // add A3 coordinate
parA.translate(X0,Y0); // place parallelogram
// create parallelogram of height B
// warning: the coordinate of this object are specified from C1
parB = new Polygon();
parB.addPoint(0, 0); // add C1 coordinate
parB.addPoint(-B*B/C, -B*A/C); // add A3 coordinate
parB.addPoint(A*A/C - C, C - A*B/C); // add Q0 coordinate
parB.addPoint(0, C); // add C2 coordinate
parB.translate(X0 + C, Y0);
// place parallelogram
// depending on the sequence number we draw certain objects
public void paint(Graphics gfx) {
super.paint(gfx);
Graphics2D g = (Graphics2D) gfx;
g.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
RenderingHints.VALUE_ANTIALIAS_ON);
// text first, then objects (and animation)
// we always output some notes
g.drawString(notes[3*sequence], noteX, noteY);
g.drawString(notes[3*sequence + 1], noteX, noteY + lineSpacing);
g.drawString(notes[3*sequence + 2], noteX, noteY + 2*lineSpacing);
// the object are drawn in an order so that they are properly overlapped
if(sequence == 13) {
g.setColor(Color.green);
g.fillPolygon(poly1);
g.fillPolygon(poly2);
g.fillPolygon(poly3);
g.fillPolygon(poly4);
g.fillPolygon(poly5);
g.setColor(Color.RED);
g.setColor(Color.GREEN);
g.drawLine(413,351,433,499);
g.setColor(Color.white);
g.fillPolygon(tri);
g.fillPolygon(tri1);
g.fillPolygon(poly6);
if(sequence == 12 ) {
g.setColor(Color.green);
g.fillPolygon(poly1);
g.fillPolygon(poly2);
g.fillPolygon(poly3);
g.fillPolygon(poly4);
g.fillPolygon(poly5);
g.setColor(Color.BLACK);
if(sequence == 11){
g.setColor(Color.green);
g.fillPolygon(poly1);
g.fillPolygon(poly3);
g.fillPolygon(poly4);
g.setColor(Color.BLACK);
if(sequence == 8 ){
g.setColor(Color.green);
g.fillPolygon(poly5);
g.setColor(Color.MAGENTA);
g.drawString("E",578,254);
g.drawString("D",268,302);
g.setColor(Color.black);
g.drawArc(250,150,350,250,320,65);
else if (sequence == 9 ){
g.setColor(Color.green);
g.fillPolygon(poly2);
g.setColor(Color.MAGENTA);
g.drawString("E",578,254);
g.drawString("D",268,302);
g.setColor(Color.black);
g.drawArc(250,150,350,250,320,65);
if( sequence == 10){
g.setColor(Color.green);
g.fillPolygon(poly2);
g.fillPolygon(poly5);
g.setColor(Color.black);
g.setColor(Color.MAGENTA);
g.drawString("E",578,254);
g.drawString("D",268,302);
g.setColor(Color.black);
g.drawArc(250,150,350,250,320,65);
if(sequence == 7){
g.setColor(Color.green);
g.fillPolygon(poly2);
g.setColor(Color.MAGENTA);
g.drawString("E",578,254);
g.drawString("D",268,302);
g.setColor(Color.black);
if(sequence == 6){
g.setColor(Color.yellow);
g.fillPolygon(poly2);
g.setColor(Color.green);
g.fillPolygon(poly3);
g.setColor(Color.blue);
g.fillPolygon(poly4);
g.setColor(Color.black);
g.drawArc(250,175,350,275,300,65);
//g.drawArc(250,150,350,250,320,65);
g.drawLine( 606,309,599,299);
g.drawLine(592,313, 599,299);
g.drawString("+90 degrees",605,378);
if (sequence == 5 ) {
g.setColor(Color.yellow);
g.fillPolygon(poly2);
g.setColor(Color.black);
if (sequence == 4) {
g.setColor(Color.YELLOW);
g.fillPolygon(poly1);
g.setColor(Color.black);
g.drawArc(319,310,250,195,89,-35);
g.drawLine(499,319, 492,312);
g.drawLine(499,319, 492,325);
g.drawArc(200,180, 233,238,-120,-60);
g.drawLine(200,298, 208,309);
g.drawLine(200,298, 194,313);
g.drawString("-90 degrees",227,347);
if (sequence >= 3) {
g.drawLine(404,279,442,572);
// draw the squares
if (sequence >= 2) {
g.drawLine(278,296,572,254);
// draw the squares
if (sequence >= 1) {
g.drawLine(333,224,476,182);
g.drawPolygon(tri1);
// always draw the triangle
g.drawPolygon(tri);
g.drawPolygon(sqrA);
g.drawPolygon(sqrB);
g.drawPolygon(sqrC);
g.setColor(Color.MAGENTA);
g.drawString("C", X0 + C/2 - fontSize/2, Y0 + lineSpacing);
g.drawString("A",
X0 + A*A/(2*C) - fontSize*A/B/2,
Y0 - A*B/(2*C) - lineSpacing*A/B);
g.drawString("B",
X0 + C - B*B/(2*C) - fontSize*A/B/2,// the last "-" isn't log.
Y0 - B*A/(2*C) - lineSpacing*A/B);
public void redraw(int sequence) {
this.sequence = sequence;
repaint();
}TEST CONTROL
* TestControl.java
* Created on 28 February 2005, 11:16
import java.awt.*;
import java.awt.event.*;
import java.text.*;
import javax.swing.JFrame;
* @author Kripa Bhojwani
public class TestControl extends Panel implements ActionListener {
TestView view;
int sequence; // event sequence
// constructor
public TestControl(TestView view) {
Button b = null;
Label label = new Label("A^2 ");
this.view = view; // initialize drawble area
sequence = 0; // initialize sequence
b = new Button("Prev");
b.addActionListener(this);
add(b);
b = new Button("Next");
b.addActionListener(this);
add(b);
add(label);
// exported method
public void actionPerformed(ActionEvent ev) {
String label = ev.getActionCommand();
if (label.equals("Prev")) {
if (sequence >0) {
--sequence;
else {
if (sequence < 15) {
++sequence;
this.setEnabled(false); // disable the controls
view.redraw(sequence);
this.setEnabled(true); // enable the controls
}Please help --- really need to sort this out...
THANKSOne of the problems you face is that it is hard to recognise which parts of your code are drawing the triangle. This is because you are writing code in a procedural way rather than an object oriented way.
In object oriented code you would have a triangle object that could draw itself. You would create the triangle object by specifying its sizes and angles in some way. Then it should be easy to change the triangles sizes and angles and ask all the drawn objects to redraw themselves. -
why does photo drag to wrong folder?
You question makes no sense - iPhoto does not "drag" photos anywhere - it works on a SQL database and controls the photo locations correctly - you never access them direcly but always use the provided tools to access the photos - click here for a discussion on the many correct and safe ways to access your iPhoto library photos.
LN
Maybe you are looking for
-
Search-Mailbox Search Query not returning correct results.
Hi, I'd appreciate some assistance with the search and delete I'm trying to I'm run. I'm using the following command to find messages with a certain message class received before 01/01/14 in a mailbox. Get-Mailbox xxxxxxxxxxxxxxx | Search-Mailbox -Se
-
Quicktime not allowing me to watch any trailers
I tried to watch a movie trailer a few days ago and got the infamous quicktime logo and question mark. I tried removing the web streaming plug in and it didn't change anything. I also tried unchecking the MIME settings and got no response on that eit
-
Signon page gives invalid OS error, using Firefox on Oracle Linux
Installed PeopleSoft HCM 9.2 (PT 8.53.02) using Oracle Virtualbox VM template. Installed X Windows and GNOME Desktop and virtualbox guest additions. When I connect to the signin page using firefox (17.x) on this same VM which is running Oracle Linux,
-
Hi We are about to implemented MSS and Appraisal (MBO). I want to create an Appraisal via MSS but I'm not sure how to do that. When I select My staff -> Employee Review -> Edit Appraisals I get the message 'No suitable appraisal template is available
-
Help in AS3 code of 24 hour countdown timer
hello, i just wanna ask if someone can help me, i created a 24 hour flash countdown timer here http://allofmyworks.weebly.com/flash.html the problem is when it reaches the desired time, the time still counts and became negative, what i want is to ma