Java FAQ equivalent of C++ FAQ lite?
Is there any Java FAQ equivalent of the Parashift C++ FAQ lite ? (Books like Effective Java are handy to have around, but I'm looking for a comprehensive online (advanced) Java FAQ that I could use) ...
Is there any Java FAQ equivalent of the Parashift C++ FAQ lite ? (Books like Effective Java are handy to have around, but I'm looking for a comprehensive online (advanced) Java FAQ that I could use) ...
I'm running into a strange problem while reading from an InputStream on the Android platform. I'm not sure if this is an Android specific issue, or something I'm doing wrong in general. The only thing that is Android specific is this call: InputStream is = getResources().openRawResource(R.raw.myfile); This returns an InputStream for...
I have an existing java webapp that uses Hibernate for it's persistence. I've been told that I have to have to talk to the DB encrypted - so my first thought is to set it up to do the communication via SSL - and went through figured out how to set up Oracle to listen for JDBC over SSL - http://www.oracle.com/technology/tech/java/sqlj_...
I'm using the following class to test if a host accepts connection from java My question is, what could be enhanced here? Thanks for the feedback EDIT I have added the optional parameter "timeout" in seconds. import java.io.IOException; import java.net.Socket; import java.net.InetSocketAddress; import java.net.SocketAddress; public...
hello guys.i've just come into the world of easymock.i'll like to ask if easymock only does mock object for interfaces? So in my effort to understand i wrote a class to generate unique voucher in java.i obviously can't know which value it will generate to use in the assert stuff.So how to make sure the generated voucher is of the type l...
I'm using the WSDL object model (WOM) along with XSOM for a project of mine. The WOM gives me a way to drill down and look at messages and the message types which are element declarations. However, I am unable to find a way to parse the simple and complex types. The APIs are tricky. There seems to be some kind of a connection between WOM...
I want to fill a region using Graphics.fillRoundRect(), but I want a rectangle in the middle of it to not be filled. Essentially, given a component of 100x30, I want to set clipping to be the rectangle at 10,10 of size 80x10 but have the fill only paint the area outside that 80x10 rectangle. The reason is that I want a border of n pixe...
I will use mysql as a database choice with my java. What is the best way to learn it quickly and become productive super fast... well I am jsut trying to learn it as I am working on the project involving it. I my goal is to be able to create/administer/design tables for Mysql database program in Java against it (with tomcat) Thank...
I have 6 JSP applications running on a Windows Server 2003 box with JRun 4 with Updater 7 and the Java 1.6.0_14. All of my applications are working just fine except for 1 of them and any new ones I create in JRun. I just cannot find where the difference in configuration or permissions is. Whenever I attempt to access a JSP file on the...
I am looking for a dependency injection framework for a Java SE (Swing) application that runs under JDK 1.4. Are there any recommended DI frameworks that I can use? (Guice and other annotation-based frameworks are out, and I don't want to mess with something like Retroweaver.) Also, is Spring suitable for use in a Java SE application? ...
I am reading an XML document (UTF-8) and ultimately displaying the content on a Web page using ISO-8859-1. As expected, there are a few characters are not displayed correctly, such as “, – and ’ (they display as ?). Is it possible to convert these characters from UTF-8 to ISO-8859-1? Here is a snippet of code I have written to attempt...
How do I begin developing J2ME games for mobile phones? Are any libraries available that can render pixel fonts for text? - for text games Are 2D graphic libraries available that can draw animated bitmaps? - for isometric and tiled games Any are 3D engines available with texture mapping & lighting? -- for racing and flying simulators ...
OK, so if I add an ActionListener to a GUI element, and it's the only element I use that ActionListener with, does it matter which of the following lines (a,b) I use to get the checkbox selected state? final JCheckBox checkbox = (JCheckBox)this.buildResult.get("cbDebugTick"); checkbox.addActionListener(new ActionListener() { @Override ...
I'm getting a NullPointerException in a Nokia S40. I want to know what is causing this exception. The device shows: NullPointerException java/lang/NullPointerException This error only occurs in the device, running in the emulator the application works fine. I use microlog to debug my application. But the application works fine i...
I'm currently using a very simple MVC framework, Bear Bibeault's Front Man, which, for those not familiar, is pretty similar to Spring MVC (in concept at least). One of the issues I'm having is how to handle exceptions properly. I am currently doing something like this, try { //do something }catch (Exception ex) { logger.error(...
Thanks to everyone in advance, I have overwritten HTTPServletResponse that collects headers and also put together a servlet filter that takes those headers and sets them using their proper methods (example: 500 error code uses response.sendError(500)). I am noticing that when this filter is set in the web.xml, any pages that have the er...
I'm annotating my DAOs and using hibernate3:hbm2ddl to generate the ddls. Is there a way to annotate the tablespace? ...
Is there any way to read the currently playing song title/artist (id3 tags) in walkman on sony ericsson (w series) phone? ...
I have a multi-module maven project. The parent pom.xml is simply a way to reference common information for the 4 subprojects. I have quite a few JUnit tests that run and I also have the Parent Project set up for Project WebSite using the maven-info-reports-plugin. I have the maven-surefire-report-plugin configured in the parent and ...
I need to store up to tens or even hundreds of millions of pieces of data on-disk. Each piece of data contains information like: id=23425 browser=firefox ip-address=10.1.1.1 outcome=1.0 New pieces of data may be added at the rate of up-to 1 per millisecond. So its a relatively simple set of key-value pairs, where the values can be s...