Java Swing Question: Robot Screenshot does odd things when close to the mouse cursor Hi: I'm trying to write a simple screen enlarger. The basic algorithm is this: a.) Get current mouse coordinates. b.) Take a screen shot using a rectangle consisting of (mouse X, mouse Y, 150, 150) c.) Create a new scaled image from the screen shot with a height and width of 300. This should "zoom" ... 23 Feb 2010 15:50
Error message I can't figure out I'm running a J2EE app in Weblogic. The app works, but I keep getting this error on the console: java.rmi.MarshalException: failed to marshal update(Lweblogic.cluster.replication.ROID;ILjava.io.Serializable;Ljava.lang.Object;); nested exception is: java.io.NotSerializableException: java.util.TreeMap$Valu... 27 Feb 2010 00:11
UDF-8 Reading for URL - not working Hello all, I have a problem, when i read a webpage contents (with UTF-8 characterset) and try to display it.. it is just considered as unicode string please help me here is the code import java.net.*; import java.io.*; public class URLReader { public static void main(String[] args) throws Excepti... 23 Feb 2010 20:29
Nightly build or daily build? Well? It runs every day, so daily, but it runs at night, so nightly. Google has 184,000 hits for daily, and 404,000 for nightly. WebKit, WordPress, Mozilla, Glassfish, Adobe and CERN all call it nightly. I'm de facto in charge of ours, and i've consistently referred to it as the nightly. I've just documente... 23 Feb 2010 21:36
Enum.values( ) API Documentation Howsagoin, I know what the class method values( ) of enum classes is for, but don't seem to be able to find the API in the API documentation on http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Enum.html, I'd appreciate it if somebody could let me know where to find it. Thanks in advance for your help. ... 25 Feb 2010 15:56
JVM doing many Full GC and Unloading class sun.reflect.GeneratedMethodAccessor Dear all, I capture at a time (once in 4 day ) that the JVM doing many GCs but not many memory is freed. at the same time in the JVM log there are many : [Unloading class sun.reflect.GeneratedSerializationConstructorAccessor1251] [Unloading class sun.reflect.GeneratedMethodAccessor3722] --> attached below. ... 22 Feb 2010 23:08
ResultSet and String array In Tomcat 6.0.20 I am attempting to create an Oracle 9i resultset that outputs as a String array and need help creating the method. The CityData method will be called in the CityServlet: String [] cityArray = cityData.getCityList(); Please help me with my attempt in the CityData class. Here is what I have so... 22 Feb 2010 18:40
ArrayList issue I have this test working where it takes data from a Java class and shows it in a JSP: String targetItems = "test"; List pageItems = New ArrayList; for(int i = 0;i < calculatedResults + 10;i++) { pageItems.add(targetItems + " " + i) } request.setAttribute(pageItems, "pageItems"); I would like to... 22 Feb 2010 01:59
Buttons and Event Handlers Hi, I am a newbie in Java. While learning from the Horstmann I have modified a little example from the book. The problem is that the buttons it creates are never shown. Please, would someone explain what I am missing? The code follows. Thanks in advance to everyone who will reply. fabio ButtonTest.java ... 22 Feb 2010 12:58
Java app installer Looking for a (ideally) freeware installer for my applications so the user can just hit "Install" and they get put in the correct folders (XP) with desktop icons associated. Nothing complex required - no registry stuff etc. -- Dirk http://www.transcendence.me.uk/ - Transcendence UK http://www.theconsensu... 21 Feb 2010 21:36 |