hi
i want to write an applet that must render my map images with zoom/pan tools,
i find out JXMapViewer can help me,
how i can use it?
where i can find related docs which help me to write an applet that request on my image server to provide tiles to render?
what about image server and .... !!!!???
help me on : image server structure, ti...
I have written the small test with sole purpose to better understand transactions in jdbc. And though I did all according to the documentation, the test does not wish to work normally.
Here is table structure:
CREATE TABLE `default_values` (
`id` INT UNSIGNED NOT auto_increment,
`is_default` BOOL DEFAULT false,
PRIMARY KEY(`id...
Hi,
I have a bunch of shapes that I'm rendering with different graphics objects. I'd like it so when the shapes overlap, they use some alpha blending to combine the colors. However, I only want them to blend with the other shapes, not with anything else rendered. Is this possible?
thanks,
Jeff
...
Is there a FREE (or relatively cheaper) Java GUI designer/builder?
...
I'm constructing a framework in Java that will listen for events and then process them in Jython. Different event types will be sent to different scripts.
Since jython takes quite some time to compile the script when PythonInterpreter.exec() is called, I will have to pre-compile the scripts. I'm doing it the following way:
// initiali...
I'm writing a program (in Java) that needs to extract links from webpages. I'm using htmlParser (http://htmlparser.sourceforge.net/) but I'm only able to extract html links (defined with <a href="...">) and I don't know how to handle javascript code to extract links from... can you help me??
...
I am trying to merge 1000 PDF Files thru iText. I am not sure where the memory leakage is happening. Below is the sample code. Note that i am removing the child-pdf file as soon as i merge to the parent file. Please pointout bug in below code or is there any better way to do this with out memory conception. This process is done thru serv...
This is NOT a homework. I'm a beginner in programming, and also this is my first post here - please bear with me.
I was not able to find similar questions posted here.
In a beginner's book, I found the following issue:
# Find the biggest area of adjacent numbers in this matrix:
1 3 2 2 2 4
3 3 3 2 4 4
4 3 1 2 3 3 #--> 13 times '3'
4...
Hi,
I'm a big user of properties (with PropertyPlaceholderConfigurer) for making my application as "dynamic" as possible. Almost all the constants are defined as such. Anyway, I'm currently defining a default.properties which comes shipped with the default WAR.
In other environments (Acceptance/Production) I need to overwrite of the co...
Hi all,
I've seen people speaking about that on the web, I've been advised to do that, but it looks like the iText rendering engine is far from matching MS word (openoffice, TeX).
And interpreting a .doc is far from trivial anyway (J.Spolsky explained why) so I'm a little bit of skeptical.
I'd really like to do that for a project, but ...
I have a handful of helper methods that convert enum values into a list of strings suitable for display by an HTML <select> element. I was wondering if it's possible to refactor these into a single polymorphic method.
This is an example of one of my existing methods:
/**
* Gets the list of available colours.
*
* @return the list o...
I'm a student, want to star some small Java projects, for fun and learning. I think GUI designer would be important, so guess NetBeans would be my choice. However, the company I'm working in and many many other people I know are using Eclipse. So...
Am I making the right decision (choosing NetBeans)?
Which one of these two do you pr...
I'm using a LinkedBlockingQueue to handle message objects from other threads. For example, I have something like this:
LinkedBlockingQueue<Message> message_queue = new LinkedBlockingQueue<Message>();
public void run(){
while(true){
Message m = message_queue.take();
handle_message(m);
}
}
When I add a new mess...
I need to display a TIFF (type 4) image in Eclipse from a Java stream. TIFFv4 is not supported, so I need an image library. Sun's JAI-ImageIO has native code -- I can't wrap it easily into a plugin. I can't just import jai-imageio.jar (et al) from the lib\ext directory because Eclipse has its own ideas about classpaths.
Any suggestion...
My understanding is that in order to maintain source-compatibility, Java never introduces new methods to public interfaces, as that breaks existing clients implementing the interfaces. Java Release notes states
In general, the policy is as follows,
except for any incompatibilities
listed further below:
Maintenance releas...
AppEngine 1.2.2. I define a class Product like so:
@PersistenceCapable(identityType = IdentityType.APPLICATION, table="Products")
public class Product {
public Product(String title) {
super();
this.title = title;
}
public String getTitle() {
return title;
}
@Persistent
String title;
@PrimaryKey
@Persistent(valueStrateg...
Hello :)
I am trying to format a byte array in C#, by porting a code from Java. In Java, the methods "buf.putInt(value);", buf.putShort, buf.putDouble, (and so forth) are used. However I don't know how to port this to C#. I have tried the MemoryStream class, but there is no method to put a specific type at the end of the byte array.
Qu...
I have the following JSON, where can be either true or false:
{"flag1":<boolean value>, "flag2":<boolean value>}
And I have tried to bind it to a Java class using Jersey and the following JAXB annotations:
@XmlRootElement
public class MyClass {
@XmlElement(name = "flag1", type = Boolean.class)
private Boolean flag1;
@Xml...
Hi guys,
I've been having a problem while using HttpConnection with a Sony Ericsson W580.
The response to my http requests is application/octet-stream, and I'm sending a quite large array of bytes.
In this mobile phone however, it is consistently being cut down to 210 bytes...
I've tested the MIDP application in a large number of dif...
I'm writing some custom Comparators, and I'd like them to push null items to the bottom of the list, regardless of whether I'm sorting ascending or descending. What's a good strategy or pattern for approaching this?
Offhand:
simply write separate ascending and
descending comparators, sharing code
where possible;
delegate null handli...