Hi, who can help me
I want to print a picture to a printer, code lines used is following.
converting image to a buffered image.
Image i=(new javax.swing.ImageIcon("D:\\alex-projects\\ExportSystem\\export\\scanfiles\\GoldJade.bmp")).getImage();
Frame f=new Frame();
bi=new BufferedImage(100,50,BufferedImage.TYPE_INT_RGB);
Graphics2D g=bi.createGraphics();
g.drawImage(i,0,0,100,50,f);
assuming print job variable name is pj have been initilized successfully,
which was getting by the following code:
PrintJob pj=frm.getToolkit().getPrintJob(frm,"Print Label",js,null); //frm who's type is JFrame had been initilized .
Graphics g=pj.getGraphics();
g.drawImage(bi,0,0,100,50,null);
g.dispose();
pj.end();
The printting result difference with that expected by me is a black picture on a paper, I do not know why causing this problem.
You must shift the origin of the image to printer origin and scale it to the print paper dimensions.
Go through the following code, it might lead you in the right direction.
PrinterJob printJob = PrinterJob.getPrinterJob ();
PageFormat pageFormat = new PageFormat();
// Inside the print method use the following.
imageableX=pageFormat.getImageableX();
imageableY=pageFormat.getImageableY();
imageableWidth=pageFormat.getImageableWidth();
imageableHeight=pageFormat.getImageableHeight();
// width and height are image width,height.
scale = Math.min(imageableWidth/width,imageableHeight/height);
// g2d is the Graphics2D object from (Graphics2D)g of printer Graphics Contenxt
g2d.translate(imageableX,imageableY);
g2d.scale(scale,scale);
g2d.drawImage(image,0,0,null);
image.flush();
g2d.dispose();varma
Similar Messages
-
HELP ME!!!! who can help me ???
My eclipse always halt suddenly. I have no idea how to solve it, and i have reinstall my JVM and eclipse.but it doesn't work, the eclipse halt again.
The below is the eclipse log hs_err_pid3740.log. Who can help me? much appreciate!!!!
# An unexpected error has been detected by HotSpot Virtual Machine:
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d7f789e, pid=3740, tid=1468
# Java VM: Java HotSpot(TM) Client VM (1.5.0_09-b01 mixed mode)
# Problematic frame:
# V [jvm.dll+0xc789e]
--------------- T H R E A D ---------------
Current thread (0x00c7ed10): JavaThread "Worker-5" [_thread_in_vm, id=1468]
siginfo: ExceptionCode=0xc0000005, reading address 0x00000054
Registers:
EAX=0x00000000, EBX=0x2563a6b0, ECX=0x00000180, EDX=0x0000001a
ESP=0x37fff814, EBP=0x37fff848, ESI=0x0000001a, EDI=0x35298770
EIP=0x6d7f789e, EFLAGS=0x00010202
Top of Stack: (sp=0x37fff814)
0x37fff814: 6d7f7858 0000001a 3699747c 22ca6f68
0x37fff824: 00000000 6d7f8aaf 23aacde0 22ca6f68
0x37fff834: 00c7ed10 36b7bff0 35298768 35298770
0x37fff844: 35298b5c 37fff87c 6d7f9986 36997468
0x37fff854: 36997488 36997484 00c7ed10 00c7ed10
0x37fff864: 00c7ed10 00000000 00000001 00c7ed10
0x37fff874: 00c7ed10 00c7ed10 37fff8a8 6d7f98b4
0x37fff884: 37fff940 3699747c 36997468 36997488
Instructions: (pc=0x6d7f789e)
0x6d7f788e: 8b 54 24 04 8d 0c 91 8b 04 01 8b 40 0c 8b 40 14
0x6d7f789e: 8b 40 54 c1 e8 09 83 e0 01 c2 04 00 8b 4c 24 04
Stack: [0x37f00000,0x38000000), sp=0x37fff814, free space=1022k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [jvm.dll+0xc789e]
V [jvm.dll+0xc9986]
V [jvm.dll+0xc98b4]
V [jvm.dll+0xca226]
V [jvm.dll+0xca059]
V [jvm.dll+0x82544]
j com.sun.org.apache.xml.internal.serializer.ToStream.init(Ljava/io/Writer;Ljava/util/Properties;ZZ)V+73
j com.sun.org.apache.xml.internal.serializer.ToStream.init(Ljava/io/OutputStream;Ljava/util/Properties;Z)V+55
j com.sun.org.apache.xml.internal.serializer.ToStream.setOutputStream(Ljava/io/OutputStream;)V+26
j com.sun.org.apache.xml.internal.serializer.ToUnknownStream.setOutputStream(Ljava/io/OutputStream;)V+5
j com.sun.org.apache.xalan.internal.xsltc.runtime.output.TransletOutputHandlerFactory.getSerializationHandler()Lcom/sun/org/apache/xml/internal/serializer/SerializationHandler;+172
j com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getOutputHandler(Ljavax/xml/transform/Result;)Lcom/sun/org/apache/xml/internal/serializer/SerializationHandler;+250
j com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(Ljavax/xml/transform/Source;Ljavax/xml/transform/Result;)V+46
j org.eclipse.mylyn.internal.tasks.ui.util.TaskListWriter.writeDOMtoStream(Lorg/w3c/dom/Document;Ljava/io/OutputStream;)V+44
j org.eclipse.mylyn.internal.tasks.ui.util.TaskListWriter.writeTaskList(Lorg/w3c/dom/Document;Ljava/util/zip/ZipOutputStream;)V+25
j org.eclipse.mylyn.internal.tasks.ui.util.TaskListWriter.writeTaskList(Lorg/eclipse/mylyn/tasks/core/TaskList;Ljava/io/OutputStream;)V+342
j org.eclipse.mylyn.internal.tasks.ui.util.TaskListWriter.writeTaskList(Lorg/eclipse/mylyn/tasks/core/TaskList;Ljava/io/File;)V+12
j org.eclipse.mylyn.internal.tasks.ui.util.TaskListSaveManager.internalSaveTaskList()V+16
j org.eclipse.mylyn.internal.tasks.ui.util.TaskListSaveManager.access$0(Lorg/eclipse/mylyn/internal/tasks/ui/util/TaskListSaveManager;)V+1
j org.eclipse.mylyn.internal.tasks.ui.util.TaskListSaveManager$TaskListSaverJob.run(Lorg/eclipse/core/runtime/IProgressMonitor;)Lorg/eclipse/core/runtime/IStatus;+65
j org.eclipse.core.internal.jobs.Worker.run()V+31
v ~StubRoutines::call_stub
V [jvm.dll+0x86e84]
V [jvm.dll+0xddead]
V [jvm.dll+0x86d55]
V [jvm.dll+0x86ab2]
V [jvm.dll+0xa16b2]
V [jvm.dll+0x10f4ac]
V [jvm.dll+0x10f47a]
C [MSVCRT.dll+0x2a3b0]
C [kernel32.dll+0xb713]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j com.sun.org.apache.xml.internal.serializer.ToStream.init(Ljava/io/Writer;Ljava/util/Properties;ZZ)V+73
j com.sun.org.apache.xml.internal.serializer.ToStream.init(Ljava/io/OutputStream;Ljava/util/Properties;Z)V+55
j com.sun.org.apache.xml.internal.serializer.ToStream.setOutputStream(Ljava/io/OutputStream;)V+26
j com.sun.org.apache.xml.internal.serializer.ToUnknownStream.setOutputStream(Ljava/io/OutputStream;)V+5
j com.sun.org.apache.xalan.internal.xsltc.runtime.output.TransletOutputHandlerFactory.getSerializationHandler()Lcom/sun/org/apache/xml/internal/serializer/SerializationHandler;+172
j com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getOutputHandler(Ljavax/xml/transform/Result;)Lcom/sun/org/apache/xml/internal/serializer/SerializationHandler;+250
j com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(Ljavax/xml/transform/Source;Ljavax/xml/transform/Result;)V+46
j org.eclipse.mylyn.internal.tasks.ui.util.TaskListWriter.writeDOMtoStream(Lorg/w3c/dom/Document;Ljava/io/OutputStream;)V+44
j org.eclipse.mylyn.internal.tasks.ui.util.TaskListWriter.writeTaskList(Lorg/w3c/dom/Document;Ljava/util/zip/ZipOutputStream;)V+25
j org.eclipse.mylyn.internal.tasks.ui.util.TaskListWriter.writeTaskList(Lorg/eclipse/mylyn/tasks/core/TaskList;Ljava/io/OutputStream;)V+342
j org.eclipse.mylyn.internal.tasks.ui.util.TaskListWriter.writeTaskList(Lorg/eclipse/mylyn/tasks/core/TaskList;Ljava/io/File;)V+12
j org.eclipse.mylyn.internal.tasks.ui.util.TaskListSaveManager.internalSaveTaskList()V+16
j org.eclipse.mylyn.internal.tasks.ui.util.TaskListSaveManager.access$0(Lorg/eclipse/mylyn/internal/tasks/ui/util/TaskListSaveManager;)V+1
j org.eclipse.mylyn.internal.tasks.ui.util.TaskListSaveManager$TaskListSaverJob.run(Lorg/eclipse/core/runtime/IProgressMonitor;)Lorg/eclipse/core/runtime/IStatus;+65
j org.eclipse.core.internal.jobs.Worker.run()V+31
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x36da44c0 JavaThread "Thread-7" [_thread_blocked, id=2840]
0x36b960f0 JavaThread "Timer-2" [_thread_blocked, id=2008]
0x36ca63a0 JavaThread "Timer-1" [_thread_blocked, id=3176]
0x36b92d20 JavaThread "Timer-0" [_thread_blocked, id=3832]
0x36bde590 JavaThread "Worker-6" [_thread_blocked, id=3968]
=>0x00c7ed10 JavaThread "Worker-5" [_thread_in_vm, id=1468]
0x369b7008 JavaThread "Worker-4" [_thread_blocked, id=1444]
0x352b7d88 JavaThread "Worker-3" [_thread_blocked, id=780]
0x36bd1008 JavaThread "Worker-2" [_thread_blocked, id=2124]
0x35748c78 JavaThread "Worker-1" [_thread_blocked, id=3588]
0x369438d8 JavaThread "org.eclipse.jdt.internal.ui.text.JavaReconciler" daemon [_thread_blocked, id=844]
0x366b7fd0 JavaThread "Java indexing" daemon [_thread_blocked, id=2040]
0x355a7160 JavaThread "Worker-0" [_thread_blocked, id=1492]
0x3550b410 JavaThread "Start Level Event Dispatcher" daemon [_thread_blocked, id=3956]
0x3556de40 JavaThread "Framework Event Dispatcher" daemon [_thread_blocked, id=3192]
0x00c629e0 JavaThread "State Data Manager" daemon [_thread_blocked, id=3188]
0x00c5dc88 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=1728]
0x00c5c8e8 JavaThread "CompilerThread0" daemon [_thread_blocked, id=340]
0x00c6b2a8 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=2116]
0x00c50ab8 JavaThread "Finalizer" daemon [_thread_blocked, id=3652]
0x00c4f650 JavaThread "Reference Handler" daemon [_thread_blocked, id=3144]
0x003edb60 JavaThread "main" [_thread_in_native, id=2316]
Other Threads:
0x003e5688 VMThread [id=3568]
0x00c5ef98 WatcherThread [id=3984]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
def new generation total 4608K, used 2915K [0x02c90000, 0x03190000, 0x053f0000)
eden space 4096K, 58% used [0x02c90000, 0x02ee8c50, 0x03090000)
from space 512K, 100% used [0x03110000, 0x03190000, 0x03190000)
to space 512K, 0% used [0x03090000, 0x03090000, 0x03110000)
tenured generation total 60112K, used 42130K [0x053f0000, 0x08ea4000, 0x22c90000)
the space 60112K, 70% used [0x053f0000, 0x07d14a28, 0x07d14c00, 0x08ea4000)
compacting perm gen total 43008K, used 42780K [0x22c90000, 0x25690000, 0x32c90000)
the space 43008K, 99% used [0x22c90000, 0x25657298, 0x25657400, 0x25690000)
No shared spaces configured.
Dynamic libraries:
0x00400000 - 0x0040e000 E:\dev_tools\eclipse\eclipse-jee-europa-winter-win32\eclipse\eclipse.exe
0x7c900000 - 0x7c9af000 C:\WINDOWS\system32\ntdll.dll
0x7c800000 - 0x7c8f6000 C:\WINDOWS\system32\kernel32.dll
0x7e410000 - 0x7e4a1000 C:\WINDOWS\system32\USER32.dll
0x77f10000 - 0x77f59000 C:\WINDOWS\system32\GDI32.dll
0x5d090000 - 0x5d12a000 C:\WINDOWS\system32\COMCTL32.dll
0x77dd0000 - 0x77e6b000 C:\WINDOWS\system32\ADVAPI32.dll
0x77e70000 - 0x77f02000 C:\WINDOWS\system32\RPCRT4.dll
0x77fe0000 - 0x77ff1000 C:\WINDOWS\system32\Secur32.dll
0x77c10000 - 0x77c68000 C:\WINDOWS\system32\MSVCRT.dll
0x76390000 - 0x763ad000 C:\WINDOWS\system32\IMM32.DLL
0x629c0000 - 0x629c9000 C:\WINDOWS\system32\LPK.DLL
0x74d90000 - 0x74dfb000 C:\WINDOWS\system32\USP10.dll
0x72000000 - 0x72012000 E:\dev_tools\eclipse\eclipse-jee-europa-winter-win32\eclipse\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.3.R33x_v20080118\eclipse_1023.dll
0x77c00000 - 0x77c08000 C:\WINDOWS\system32\VERSION.dll
0x5ad70000 - 0x5ada8000 C:\WINDOWS\system32\uxtheme.dll
0x74720000 - 0x7476c000 C:\WINDOWS\system32\MSCTF.dll
0x77b40000 - 0x77b62000 C:\WINDOWS\system32\apphelp.dll
0x755c0000 - 0x755ee000 C:\WINDOWS\system32\msctfime.ime
0x774e0000 - 0x7761d000 C:\WINDOWS\system32\ole32.dll
0x6d730000 - 0x6d8cb000 D:\Program Files\Java\jdk1.5.0_09\jre\bin\client\jvm.dll
0x76b40000 - 0x76b6d000 C:\WINDOWS\system32\WINMM.dll
0x6d2f0000 - 0x6d2f8000 D:\Program Files\Java\jdk1.5.0_09\jre\bin\hpi.dll
0x76bf0000 - 0x76bfb000 C:\WINDOWS\system32\PSAPI.DLL
0x6d700000 - 0x6d70c000 D:\Program Files\Java\jdk1.5.0_09\jre\bin\verify.dll
0x6d370000 - 0x6d38d000 D:\Program Files\Java\jdk1.5.0_09\jre\bin\java.dll
0x6d720000 - 0x6d72f000 D:\Program Files\Java\jdk1.5.0_09\jre\bin\zip.dll
0x6d530000 - 0x6d543000 D:\Program Files\Java\jdk1.5.0_09\jre\bin\net.dll
0x71ab0000 - 0x71ac7000 C:\WINDOWS\system32\WS2_32.dll
0x71aa0000 - 0x71aa8000 C:\WINDOWS\system32\WS2HELP.dll
0x6d550000 - 0x6d559000 D:\Program Files\Java\jdk1.5.0_09\jre\bin\nio.dll
0x35be0000 - 0x35c2f000 E:\dev_tools\eclipse\eclipse-jee-europa-winter-win32\eclipse\configuration\org.eclipse.osgi\bundles\334\1\.cp\swt-win32-3349.dll
0x773d0000 - 0x774d3000 C:\WINDOWS\WinSxS\X86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.5512_x-ww_35d4ce83\COMCTL32.dll
0x77f60000 - 0x77fd6000 C:\WINDOWS\system32\SHLWAPI.dll
0x763b0000 - 0x763f9000 C:\WINDOWS\system32\comdlg32.dll
0x7c9c0000 - 0x7d1d7000 C:\WINDOWS\system32\SHELL32.dll
0x77120000 - 0x771ab000 C:\WINDOWS\system32\OLEAUT32.dll
0x78050000 - 0x78120000 C:\WINDOWS\system32\WININET.dll
0x35c40000 - 0x35c49000 C:\WINDOWS\system32\Normaliz.dll
0x78000000 - 0x78045000 C:\WINDOWS\system32\iertutil.dll
0x361a0000 - 0x361ba000 C:\WINDOWS\system32\hccutils.DLL
0x361c0000 - 0x361c8000 E:\dev_tools\eclipse\eclipse-jee-europa-winter-win32\eclipse\configuration\org.eclipse.osgi\bundles\36\1\.cp\os\win32\x86\localfile_1_0_0.dll
0x74c80000 - 0x74cac000 C:\WINDOWS\system32\oleacc.dll
0x76080000 - 0x760e5000 C:\WINDOWS\system32\MSVCP60.dll
0x36e80000 - 0x36e94000 E:\dev_tools\eclipse\eclipse-jee-europa-winter-win32\eclipse\configuration\org.eclipse.osgi\bundles\334\1\.cp\swt-gdip-win32-3349.dll
0x4ec50000 - 0x4edf6000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.GdiPlus_6595b64144ccf1df_1.0.2600.5581_x-ww_dfbc4fc4\gdiplus.dll
0x37170000 - 0x37435000 C:\WINDOWS\system32\xpsp2res.dll
0x76fd0000 - 0x7704f000 C:\WINDOWS\system32\CLBCATQ.DLL
0x77050000 - 0x77115000 C:\WINDOWS\system32\COMRes.dll
0x75cf0000 - 0x75d81000 C:\WINDOWS\System32\mlang.dll
0x379d0000 - 0x37a54000 D:\Program Files\TortoiseSVN\bin\tortoisesvn.dll
0x6eec0000 - 0x6eee2000 D:\Program Files\TortoiseSVN\bin\libapr_tsvn.dll
0x71a50000 - 0x71a8f000 C:\WINDOWS\system32\MSWSOCK.dll
0x78130000 - 0x781cb000 C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.1433_x-ww_5cf844d2\MSVCR80.dll
0x6ee60000 - 0x6ee88000 D:\Program Files\TortoiseSVN\bin\libaprutil_tsvn.dll
0x6ee50000 - 0x6ee5d000 D:\Program Files\TortoiseSVN\bin\libapriconv_tsvn.dll
0x37a80000 - 0x37a8c000 D:\Program Files\TortoiseSVN\bin\intl3_svn.dll
0x7c420000 - 0x7c4a7000 C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.1433_x-ww_5cf844d2\MSVCP80.dll
0x76780000 - 0x76789000 C:\WINDOWS\system32\SHFOLDER.dll
0x6ee40000 - 0x6ee46000 D:\Program Files\TortoiseSVN\iconv\_tbl_simple.so
0x6e900000 - 0x6e923000 D:\Program Files\TortoiseSVN\iconv\cp936.so
0x6ed50000 - 0x6ed56000 D:\Program Files\TortoiseSVN\iconv\utf-8.so
0x77a20000 - 0x77a74000 C:\WINDOWS\System32\cscui.dll
0x76600000 - 0x7661d000 C:\WINDOWS\System32\CSCDLL.dll
0x77920000 - 0x77a13000 C:\WINDOWS\system32\SETUPAPI.dll
0x76380000 - 0x76385000 C:\WINDOWS\system32\msimg32.dll
0x662b0000 - 0x66308000 C:\WINDOWS\system32\hnetcfg.dll
0x71a90000 - 0x71a98000 C:\WINDOWS\System32\wshtcpip.dll
VM Arguments:
jvm_args: -Dosgi.requiredJavaVersion=1.5 -Xms40m -Xmx512m -XX:MaxPermSize=256M
java_command: <unknown>
Launcher Type: generic
Environment Variables:
JAVA_HOME=D:\Program Files\Java\jdk1.5.0_09
CLASSPATH=.;D:\Program Files\Java\jdk1.5.0_09\lib\tools.jar;D:\Program Files\Java\jre1.5.0_09\lib\ext\QTJava.zip;E:\eclipse_ee\workspace\Thumper\postgresql-8.2-508.jdbc3.jar
PATH=D:\Program Files\Java\jdk1.5.0_09\bin\..\jre\bin\client;D:\Program Files\Java\jdk1.5.0_09\bin\..\jre\bin;D:\Program Files\Java\jdk1.5.0_09\bin;D:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\Perl\site\bin;C:\Perl\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;D:\Program Files\Apache Software Foundation\Maven 1.1-beta-3\bin;D:\Program Files\Apache Software Foundation\apache-ant-1.7.0\bin;D:\Program Files\Python25;D:\cygwin;D:\Program Files\SecureCRT\;D:\Program Files\IDM Computer Solutions\UltraEdit-32;D:\Program Files\jython2.2.1;D:\Program Files\Tencent\QQ;D:\Program Files\net-snmp\usr\bin;D:\Program Files\Apache Software Foundation\apache-maven-2.0.9\bin;D:\Program Files\MySQL\MySQL Server 5.0\bin;E:\dev_tools\svn\svn-win32-1.4.3\bin;D:\Program Files\Tivoli\TSM\baclient;E:\open source project\android\android-sdk_m5-rc15_windows\tools;D:\cygwin\bin
USERNAME=Administrator
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 6 Model 15 Stepping 13, GenuineIntel
--------------- S Y S T E M ---------------
OS: Windows XP Build 2600 Service Pack 3
CPU:total 2 (cores per cpu 2, threads per core 1) family 6 model 15 stepping 13, cmov, cx8, fxsr, mmx, sse, sse2
Memory: 4k page, physical 2052648k(1391420k free), swap 3990772k(3260776k free)
vm_info: Java HotSpot(TM) Client VM (1.5.0_09-b01) for windows-x86, built on Sep 7 2006 13:59:31 by "java_re" with MS VC++ 6.0Looking into the stack trace, this seems to be related to mylyn plugin. Try to remove it (remove it from the plugins dir and restart eclipse) and see if this is still happening
-
Hi are there some who can help i am trying to update my programs in app store
hi are there some who can help i am trying to update garageband ,iphoto and iMovie on my iMac, but it´s not my apple id it will use to the update, so i dont now the email and the password for the email used, and i cant change it to my apple id
my problem started after i updated to maverick
i hope there are someone who can help ???hi are there some who can help i am trying to update garageband ,iphoto and iMovie on my iMac, but it´s not my apple id it will use to the update, so i dont now the email and the password for the email used, and i cant change it to my apple id
my problem started after i updated to maverick
i hope there are someone who can help ??? -
HI THERE IS THERE ANYONE WHO CAN HELP ME?I UPGRADE MY IPHONE 3GS TO IOS5 AND NOW IT WONT ACTIVATE AND SAYS THE SIM CARD IS NOT SUPPORTED I CHANGE FOR ANEW SIM ALREADY BUT STILL WONT ACTIVATE.PLEASE HELP
you're responding to a post that's almost 2 months old. Time to post your own thread.
-
Hi anybody there who can help me ha..? My phone 5s was stolen 1 month ago..Find my phone is no a big deal bcz it seems to be wiped out all data including settings. it might be in use somewhere turning new fresh Gadget. How can i know whether my phone is in use??
You would know for a fact if the device is in use, but if you go back to the find my iPhone app in iCloud.com, you can either select to erase it, or place it in lost mode, in which case, once the device makes a connection to the internet, it will automatically go into that mode.
-
All dates in my emails (on all my 4 apple computers) are on May 5 , when older than 2 days. Is there anyone who can help me out of this very annoying problem please?
I saw simmilar questions from people in 2008 but no answers.
Thanks in advance.solved
-
i hope someone gets this who can help me. i don't find anything helpful in the help section of icloud. i'm using my 4th generation itouch for about 3 weeks with the ical. but today when i tried to edit an event or add an event a window would pop up and say "event can't be saved" or "no calendar chosen" or something like "this event doesn't belong with this calendar" and stuff like that.
can you please help me fix this?You could repartition your drive to have a different OS X with the older iTunes there, and the newer iTunes on the existing partition. Back up everything beforehand. See Kappy's advice in this thread. Partitioning my Hard Drive
-
A problem of aglet who can help me?
This is my program,but error throw when i run.
import com.ibm.aglet.*;
import java.net.*;
import com.ibm.aglet.system.Aglets;
public class simpleaglet{
AgletProxy proxy;
public static void main(String [] args){
System.out.println("test is start");
try{
AgletProxy proxy=Aglets.createAglet("atp://"+InetAddress.getLocalHost().getHostAddress()+":4434",null,"DisplayAglet",null);
catch(Exception e) {}
System.out.println("test is end");
the error information:
Exception in thread "main" java.lang.NoClassDefFoundError
at com.ibm.aglet.system.Aglets.createAglet(Unknown Source)
at simpleaglet.main(simpleaglet.java:17)
who can help me mail my email [email protected] youIf you are having trouble creating the aglets, you should make sure you're doing it correctly in the first place.
Make sure you open Thaiti and can create the aglet in there. Then once you have one aglet, that aglet should use it's AgletContext to create a new aglet. Don't use the static creator method. So you would use Tahiti to load "MyAgent", which would immediately spawn another aglet.
public class MyAgent extends Aglet {
public MyAgent() {
makeAgent(getAgletContext(),getCodeBase());
public void makeAgent(AgletContext context, URL codeBase) {
try {
context.createAglet(codeBase, "com.agents.BuyerAgent", null);
catch (Exception e) {
System.out.println("ERROR: Exception in makeAgent!");
e.printStackTrace();
} -
I have recently upgraded my MacBook to OSX Lion. Now I cannot get access to my windows-partition. I cannot choose booting from OSX Lion or Windows. Who can help???
I believe that Lion and Mountian Lion use BootCamp 4.0 and earlier versions used 3.0. I don't use BootCamp but from reading The link below you need to get new drivers, burn a cd and install. Check out #20 on this page.
http://support.apple.com/kb/HT4818#19 -
First of all, I would have to say that getting in touch with you is a nightmare and I am not at all happy that I can't just email or live chat with someone who can help! I am not a technical person, I just want to be able to use Photoshop Elements and get on with it. I bought Photoshop Elements via Amazon some months ago and it worked fine. I then got a message that advised that the trial version would expire, which it subsequently has (I have been trawling your site for weeks and weeks trying to find an email or phone contact to get some assistance). Relucltantly, I am now typing this - and I suspect it will not help in the slightest! I bought the FULL not TRIAL edition of Photoshop Elements and I have contacted Amazon who confirmed this, but say I need to contact you. Can you please let me know how I can resolve this? Louise A Fraser
Hi Louise, sorry to hear of your problems. This is not Adobe. We are mainly support volunteers, other users like you, trying to help one another. You need to contact Adobe directly for activation and licencing issues. Click the link below. Use the dropdown menu for boxes (1) & (2) to scroll down the list and choose:
1. Adobe Photoshop Elements
2. Adobe ID, and signing-in
3. Click on the blue button: Still need help? Contact us – then click the area marked chat 24/7, then click “start chat ”
It’s usually possible to start a live chat, if an Adobe agent is free, and often to get the problem fixed right away. Have your serial number available. The agent can directly troubleshoot your system if you agree to activate the Adobe Connect add-on. Don’t let them pass the buck. Stay connected and ask to speak with a supervisor if necessary.
Click here to get help now Contact Customer Care -
My Canon Pixma MP 540 does not scan any longer after update mountain lion. MP Navigator EX 2.0 starts and immediatley stops and comes with this message:
Application Specific Information:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSImageCell loadingState]: unrecognized selector sent to instance 0x825c0f0'
Printer works normally. Who can help.
Thank you
PeterPan52Hi
Did you find a solution to this ? I amhaving same problem
Thanks -
Who can help me :)--a problem with java program(reset problem in java )
I do not know how to make the button reset,my program only could reset diagram but button.If any one who could help me to solve this problem.The problem is When the reset button is pressed, the image should immediately revert to the black square, and the 4 widgets listed above should show values that
correspond to the black square.The code like this,first one is shapes:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
public class shapes extends JFrame {
private JPanel buttonPanel; // panel for buttons
private DrawPanel myPanel; // panel for shapes
private JButton resetButton;
private JComboBox colorComboBox;
private JRadioButton circleButton, squareButton;
private ButtonGroup radioGroup;
private JCheckBox filledButton;
private JSlider sizeSlider;
private boolean isShow;
private int shape;
private boolean isFill=true;
private String colorNames[] = {"black", "blue", "cyan", "darkGray", "gray",
"green", "lightgray", "magenta", "orange",
"pink", "red", "white", "yellow"}; // color names list in ComboBox
private Color colors[] = {Color.black, Color.blue, Color.cyan, Color.darkGray,
Color.gray, Color.green, Color.lightGray, Color.magenta,
Color.orange, Color.pink, Color.red, Color.white, Color.yellow};
public shapes() {
super("Draw Shapes");
// creat custom drawing panel
myPanel = new DrawPanel(); // instantiate a DrawPanel object
myPanel.setBackground(Color.white);
// set up resetButton
// register an event handler for resetButton's ActionEvent
resetButton = new JButton ("reset");
resetButton.addActionListener(
// anonymous inner class to handle resetButton events
new ActionListener() {
// draw a black filled square shape after clicking resetButton
public void actionPerformed (ActionEvent event) {
// call DrawPanel method setShowStatus and pass an parameter
// to decide if show the shape
myPanel.setShowStatus(true);
isShow = myPanel.getShowStatus();
shape = DrawPanel.SQUARE;
// call DrawPanel method setShape to indicate shape to draw
myPanel.setShape(shape);
// call DrawPanel method setFill to indicate to draw a filled shape
myPanel.setFill(true);
// call DrawPanel method draw
myPanel.draw();
myPanel.setFill(true);
myPanel.setForeground(Color.black);
}// end anonymous inner class
);// end call to addActionListener
// set up colorComboBox
// register event handlers for colorComboBox's ItemEvent
colorComboBox = new JComboBox(colorNames);
colorComboBox.setMaximumRowCount(5);
colorComboBox.addItemListener(
// anonymous inner class to handle colorComboBox events
new ItemListener() {
// select shape's color
public void itemStateChanged(ItemEvent event) {
if(event.getStateChange() == ItemEvent.SELECTED)
// call DrawPanel method setForeground
// and pass an element value of colors array
myPanel.setForeground(colors[colorComboBox.getSelectedIndex()]);
myPanel.draw();
}// end anonymous inner class
); // end call to addItemListener
// set up a pair of RadioButtons
// register an event handler for RadioButtons' ItemEvent
squareButton = new JRadioButton ("Square", true);
circleButton = new JRadioButton ("Circle", false);
radioGroup = new ButtonGroup();
radioGroup.add(squareButton);
radioGroup.add(circleButton);
squareButton.addItemListener(
// anonymous inner class to handle squareButton events
new ItemListener() {
public void itemStateChanged (ItemEvent event) {
if (isShow==true) {
shape = DrawPanel.SQUARE;
myPanel.setShape(shape);
myPanel.draw();
}// end anonymous inner class
);// end call to addItemListener
circleButton.addItemListener(
// anonymous inner class to handle circleButton events
new ItemListener() {
public void itemStateChanged (ItemEvent event) {
if (isShow==true) {
shape = DrawPanel.CIRCLE;
myPanel.setShape(shape);
myPanel.draw();
else
System.out.println("Please click Reset button first");
}// end anonymous inner class
);// end call to addItemListener
// set up filledButton
// register an event handler for filledButton's ItemEvent
filledButton = new JCheckBox("Filled", true);
filledButton.addItemListener(
// anonymous inner class to handle filledButton events
new ItemListener() {
public void itemStateChanged (ItemEvent event) {
if (isShow==true) {
if (event.getStateChange() == ItemEvent.SELECTED) {
isFill=true;
myPanel.setFill(isFill);
myPanel.draw();
else {
isFill=false;
myPanel.setFill(isFill);
myPanel.draw();
else
System.out.println("Please click Reset button first");
}// end anonymous inner class
);// end call to addItemListener
// set up sizeSlider
// register an event handler for sizeSlider's ChangeEvent
sizeSlider = new JSlider(SwingConstants.HORIZONTAL, 0, 300, 100);
sizeSlider.setMajorTickSpacing(10);
sizeSlider.setPaintTicks(true);
sizeSlider.addChangeListener(
// anonymous inner class to handle sizeSlider events
new ChangeListener() {
public void stateChanged(ChangeEvent event) {
myPanel.setShapeSize(sizeSlider.getValue());
myPanel.draw();
}// end anonymous inner class
);// end call to addChangeListener
// set up panel containing buttons
buttonPanel = new JPanel();
buttonPanel.setLayout(new GridLayout(4, 1, 0, 50));
buttonPanel.add(resetButton);
buttonPanel.add(filledButton);
buttonPanel.add(colorComboBox);
JPanel radioButtonPanel = new JPanel();
radioButtonPanel.setLayout(new GridLayout(2, 1, 0, 20));
radioButtonPanel.add(squareButton);
radioButtonPanel.add(circleButton);
buttonPanel.add(radioButtonPanel);
// attach button panel & draw panel to content panel
Container container = getContentPane();
container.setLayout(new BorderLayout(10,10));
container.add(myPanel, BorderLayout.CENTER);
container.add(buttonPanel, BorderLayout.EAST);
container.add(sizeSlider, BorderLayout.SOUTH);
setSize(500, 400);
setVisible(true);
public static void main(String args[]) {
shapes application = new shapes();
application.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}second one is drawpanel:
import java.awt.*;
import javax.swing.*;
public class DrawPanel extends JPanel {
public final static int CIRCLE = 1, SQUARE = 2;
private int shape;
private boolean fill;
private boolean showStatus;
private int shapeSize = 100;
private Color foreground;
// draw a specified shape
public void paintComponent (Graphics g){
super.paintComponent(g);
// find center
int x=(getSize().width-shapeSize)/2;
int y=(getSize().height-shapeSize)/2;
if (shape == CIRCLE) {
if (fill == true){
g.setColor(foreground);
g.fillOval(x, y, shapeSize, shapeSize);
else{
g.setColor(foreground);
g.drawOval(x, y, shapeSize, shapeSize);
else if (shape == SQUARE){
if (fill == true){
g.setColor(foreground);
g.fillRect(x, y, shapeSize, shapeSize);
else{
g.setColor(foreground);
g.drawRect(x, y, shapeSize, shapeSize);
// set showStatus value
public void setShowStatus (boolean s) {
showStatus = s;
// return showstatus value
public boolean getShowStatus () {
return showStatus;
// set fill value
public void setFill(boolean isFill) {
fill = isFill;
// set shape value
public void setShape(int shapeToDraw) {
shape = shapeToDraw;
// set shapeSize value
public void setShapeSize(int newShapeSize) {
shapeSize = newShapeSize;
// set foreground value
public void setForeground(Color newColor) {
foreground = newColor;
// repaint DrawPanel
public void draw (){
if(showStatus == true)
repaint();
}If any kind people who can help me.
many thanks to you!4 widgets???
maybe this is what you mean.
add this inside your actionPerformed method for the reset action
squareButton.setSelected(true);
colorComboBox.setSelectedIndex(0);
if not be more clear in your post. -
Who can help me with my ORDER?!
I had made an online order for my iphone 5s on 11/15 online. It showed that will be delivery by 11/19. I had recived the email with conformation # as quickly, but it always show "being processed, check it back tomorrow" in my order status. I have checked the local store, and they have the device in stock. So, I may want to cancel the order and get it in local store.
However, I called to the customer serving for all day. They always told me to transfer me to another department. The only time, they said it would not cancelled during the status was being processed and also do a transfer to another deparmenrt. but There is always being No Agents Avilable for each time!!
The chat live will not help you to do anything, except provide a phone number and let you call them.
Now, my status still not changing, and I have no idea to who i can communited with this issue.
Who can help me ?? How can I cancel it or to know anything about my order without only waste time for waiting and calling.>Post deleted to remove personal info<
MODERATOR COMMENT: This is a public peer to peer (customer to customer) Community.
Please call 800-922-0204 concerning your order
Sent via the Samsung Galaxy Note® II, an AT&T 4G LTE smartphone
Message was edited by: Verizon Moderator>< -
I will pay for who can help me with this applet
Hi!, sorry for my english, im spanish.
I have a big problem with an applet:
I�ve make an applet that sends files to a FTP Server with a progress bar.
Its works fine on my IDE (JBuilder 9), but when I load into Internet Explorer (signed applet) it crash. The applet seems like blocked: it show the screen of java loading and dont show the progress bar, but it send the archives to the FTP server while shows the java loading screen.
I will pay with a domain or with paypal to anyone who can help me with this problematic applet. I will give my code and the goal is only repair the applet. Only that.
My email: [email protected]
thanks in advance.
adios!thaks for yours anwswers..
harmmeijer: the applet is signed ok, I dont think that is the problem...
itchyscratchy: the server calls are made from start() method. The applet is crashed during its sending files to FTP server, when finish, the applet look ok.
The class I use is FtpBean: http://www.geocities.com/SiliconValley/Code/9129/javabean/ftpbean/
(I test too with apache commons-net, and the same effect...)
The ftp is Filezilla in localhost.
This is the code, I explain a little:
The start() method calls iniciar() method where its is defined the array of files to upload, and connect to ftp server. The for loop on every element of array and uploads a file on subirFichero() method.
Basicaly its this.
The HTML code is:
<applet
codebase = "."
code = "revelado.Upload.class"
archive = "revelado.jar"
name = "Revelado"
width = "750"
height = "415"
hspace = "0"
vspace = "0"
align = "middle"
>
<PARAM NAME="usern" VALUE="username">
</applet>
package revelado;
import java.awt.*;
import java.awt.event.*;
import java.applet.*;
import javax.swing.*;
import java.io.*;
import javax.swing.border.*;
import java.net.*;
import ftp.*;
public class Upload
extends Applet {
private boolean isStandalone = false;
JPanel jPanel1 = new JPanel();
JLabel jLabel1 = new JLabel();
JLabel jlmensaje = new JLabel();
JLabel jlarchivo = new JLabel();
TitledBorder titledBorder1;
TitledBorder titledBorder2;
//mis variables
String DIRECTORIOHOME = System.getProperty("user.home");
String[] fotos_sel = new String[1000]; //array of selected images
int[] indice_tamano = new int[1000]; //array of sizes
int[] indice_cantidad = new int[1000]; //array of quantitys
int num_fotos_sel = 0; //number of selected images
double importe = 0; //total prize
double[] precios_tam = {
0.12, 0.39, 0.60, 1.50};
//prizes
String server = "localhost";
String username = "pepe";
String password = "pepe01";
String nombreusuario = null;
JProgressBar jProgreso = new JProgressBar();
//Obtener el valor de un par�metro
public String getParameter(String key, String def) {
return isStandalone ? System.getProperty(key, def) :
(getParameter(key) != null ? getParameter(key) : def);
//Construir el applet
public Upload() {
//Inicializar el applet
public void init() {
try {
jbInit();
catch (Exception e) {
e.printStackTrace();
//Inicializaci�n de componentes
private void jbInit() throws Exception {
titledBorder1 = new TitledBorder("");
titledBorder2 = new TitledBorder("");
this.setLayout(null);
jPanel1.setBackground(Color.lightGray);
jPanel1.setBorder(BorderFactory.createEtchedBorder());
jPanel1.setBounds(new Rectangle(113, 70, 541, 151));
jPanel1.setLayout(null);
jLabel1.setFont(new java.awt.Font("Dialog", 1, 16));
jLabel1.setText("Subiendo archivos al servidor");
jLabel1.setBounds(new Rectangle(150, 26, 242, 15));
jlmensaje.setFont(new java.awt.Font("Dialog", 0, 10));
jlmensaje.setForeground(Color.red);
jlmensaje.setHorizontalAlignment(SwingConstants.CENTER);
jlmensaje.setText(
"Por favor, no cierre esta ventana hasta que termine de subir todas " +
"las fotos");
jlmensaje.setBounds(new Rectangle(59, 49, 422, 30));
jlarchivo.setBackground(Color.white);
jlarchivo.setBorder(titledBorder2);
jlarchivo.setHorizontalAlignment(SwingConstants.CENTER);
jlarchivo.setBounds(new Rectangle(16, 85, 508, 24));
jProgreso.setForeground(new Color(49, 226, 197));
jProgreso.setBounds(new Rectangle(130, 121, 281, 18));
jPanel1.add(jlmensaje, null);
jPanel1.add(jlarchivo, null);
jPanel1.add(jProgreso, null);
jPanel1.add(jLabel1, null);
this.add(jPanel1, null);
nombreusuario = getParameter("usern");
//Iniciar el applet
public void start() {
jlarchivo.setText("Start() method...");
iniciar();
public void iniciar() {
//init images selected array
fotos_sel[0] = "C:/fotos/05160009.JPG";
fotos_sel[1] = "C:/fotos/05160010.JPG";
fotos_sel[2] = "C:/fotos/05160011.JPG";
// etc...
num_fotos_sel=3; //number of selected images
//conectar al ftp (instanciar clase FtpExample)
FtpExample miftp = new FtpExample();
miftp.connect();
//make the directory
subirpedido(miftp);
jProgreso.setMinimum(0);
jProgreso.setMaximum(num_fotos_sel);
for (int i = 0; i < num_fotos_sel; i++) {
jlarchivo.setText(fotos_sel);
jProgreso.setValue(i);
subirFichero(miftp, fotos_sel[i]);
try {
Thread.sleep(1000);
catch (InterruptedException ex) {
//salida(ex.toString());
jlarchivo.setText("Proceso finalizado correctamente");
jProgreso.setValue(num_fotos_sel);
miftp.close();
//Detener el applet
public void stop() {
//Destruir el applet
public void destroy() {
//Obtener informaci�n del applet
public String getAppletInfo() {
return "Subir ficheros al server";
//Obtener informaci�n del par�metro
public String[][] getParameterInfo() {
return null;
//sube al ftp (a la carpeta del usuario) el archivo
//pedido.txt que tiene las lineas del pedido
public void subirpedido(FtpExample miftp) {
jlarchivo.setText("Iniciando la conexi�n...");
//make folder of user
miftp.directorio("www/usuarios/" + nombreusuario);
//uploads a file
public void subirFichero(FtpExample miftp, String nombre) {
//remote name:
String nremoto = "";
int lr = nombre.lastIndexOf("\\");
if (lr<0){
lr = nombre.lastIndexOf("/");
nremoto = nombre.substring(lr + 1);
String archivoremoto = "www/usuarios/" + nombreusuario + "/" + nremoto;
//upload file
miftp.subir(nombre, archivoremoto);
class FtpExample
implements FtpObserver {
FtpBean ftp;
long num_of_bytes = 0;
public FtpExample() {
// Create a new FtpBean object.
ftp = new FtpBean();
// Connect to a ftp server.
public void connect() {
try {
ftp.ftpConnect("localhost", "pepe", "pepe01");
catch (Exception e) {
System.out.println(e);
// Close connection
public void close() {
try {
ftp.close();
catch (Exception e) {
System.out.println(e);
// Go to directory pub and list its content.
public void listDirectory() {
FtpListResult ftplrs = null;
try {
// Go to directory
ftp.setDirectory("/");
// Get its directory content.
ftplrs = ftp.getDirectoryContent();
catch (Exception e) {
System.out.println(e);
// Print out the type and file name of each row.
while (ftplrs.next()) {
int type = ftplrs.getType();
if (type == FtpListResult.DIRECTORY) {
System.out.print("DIR\t");
else if (type == FtpListResult.FILE) {
System.out.print("FILE\t");
else if (type == FtpListResult.LINK) {
System.out.print("LINK\t");
else if (type == FtpListResult.OTHERS) {
System.out.print("OTHER\t");
System.out.println(ftplrs.getName());
// Implemented for FtpObserver interface.
// To monitor download progress.
public void byteRead(int bytes) {
num_of_bytes += bytes;
System.out.println(num_of_bytes + " of bytes read already.");
// Needed to implements by FtpObserver interface.
public void byteWrite(int bytes) {
//crea un directorio
public void directorio(String nombre) {
try {
ftp.makeDirectory(nombre);
catch (Exception e) {
System.out.println(e);
public void subir(String local, String remoto) {
try {
ftp.putBinaryFile(local, remoto);
catch (Exception e) {
System.out.println(e);
// Main
public static void main(String[] args) {
FtpExample example = new FtpExample();
example.connect();
example.directorio("raul");
example.listDirectory();
example.subir("C:/fotos/05160009.JPG", "/raul/foto1.jpg");
//example.getFile();
example.close(); -
Hi all,
I updated my iPhone 5 recently to IOS 7 - Since then I do not get any access to my home WLAN / WIFI with the iphone 5.
At same time the iphone 3S and IPAD 1 of my wife (both IOS 5.x) still work fine in our homes WLAN / WIFI.
Who can help to get my Iphone 5 with IOS 7 back to work in the home WIFI ?
Thanks in advance for any possible solution.
Best regards
Dirk from Hamburg GermanyTry this first.
On the iPhone go to Settings > General > Reset and select Reset Network Settings.
This will erase all saved wi-fi networks and settings.
If no change after this, try resetting your modem and wireless router. Disconnect the router from the power source followed by disconnecting the modem from the power source. Wait a few minutes followed by powering your modem back on allowing it to completely reset before powering your wireless router back on allowing it to completely reset with the modem. -
I have installed ios7 on my iPad 4. After installation it asked me a pass code which I have never set. After multiple attempts it is disabled. I don't have backup on my iCloud or iTunes. Is there anyone who can help to enable it or to reverse iPad to ios6. I asked Apple store & tech said to format it but I will lose all the data..!
Thanks for that. Much more constructive than the last comment. It's only the restriction code I can't recall, not the access passcode. So I can currently access the device, just not age restricted content. Does that's make a difference? I also wondered if anyone knew how many attempts you get to try to get it right. Now tried 21 times and so far nothing bad has happened but I am concerned I'll eventually be completely locked out of the device. That doesn't seem in the spirit of things though. Surely it's foreseeable that a child could repeatedly try to guess the code so I can't see that it would be right to lock the device down completely in that circumstance, particularly if the access code is being typed in correctly every time.
Thanks
Maybe you are looking for
-
How to connect to excel document at network machine through oracle ?
Hello ! I am able to read excel doc at my local drive through sqlplus(oracle). Please help me to modify steps to access excel docs at network machine. steps:-> 1) start\settings\control\panel\administartive tolls\data source odbc\system dns\driver fo
-
Is there a way I can import my mail rules as they are on my account to email client on Mac?
I have different filters set up in my accounts and when I set up Mail client on Mac, those settings are not imported which is messing up all my inbox. Is there a way to import those filters from my account to my Mac or am I missing any configuration
-
Spry horizontal menu problem in IE and Chrome
First I'd like to express my frustration with spry. I spend way too much time trying to "band-aid" spry to work in different browers. I'll admit that I'm new to the web game but I seem to spend a large percentage of my time simply trying different "f
-
I just want to launch the program and retouch a photo.[was:lost]
i just want to launch the program and retouch a photo. why am i so lost?
-
Check input values are available in Hex
how to check input values are available between 0x0000000000000001 to 0xFFFFFFFFFFFFFFFE i am using following code. but error will come public boolean hexCheck16(String hex) String hex_min = "0x0000000000000001"; String hex_max = "0xFFFFFFFFFFFFFFFE"