Java-like collections in Delphi
Hi, all! Is there a kind of implementation (at least partial) of java collections (Set, List, Map, Collection ...) for Delphi 2010? I need it for make porting code from java to Delphi a little bit easier. ...
Hi, all! Is there a kind of implementation (at least partial) of java collections (Set, List, Map, Collection ...) for Delphi 2010? I need it for make porting code from java to Delphi a little bit easier. ...
Hi, Is it possible to add a button to a tabbedpane like in firefox. The green plus-button is what I want. Thanks ...
I've been working with .net since 2001, and I am considering making a move into the java space. I find that java has so many more mature tools (hibernate is more mature, spring framework, established patters/designs, containers, distributed cache frameworks, etc etc.) I have been doing .net, and just recently I have been getting into d...
I would like to write an abstract class (or interface) which either Forces all implementing classes to provide a field (ideally static) of a particular type and name (maybe by throwing a compile-time error if it's missing?), or Automatically provides such fields in implementing classes. An example would be: public abstract class A {...
In the code below, I am trying to get the higher priority thread to run by yielding the lower priority thread. But it doesn't seem to work, the higher priority thread seems to run after lower priority thread finishes. Can anyone explain what I am doing wrong? import java.util.ArrayList; import java.util.List; public class TestThreadPri...
Does anyone have experience using XFDF for pdf's? Are there any pitfalls in using this approach? Step1 - I would need to create a pdf (adobe pro) with read only fields that are bound to elements in XML. This would act as a stencil to overly the data. Step2 - Create custom classes that generate the XFDF XML string from data in our ...
Hello, I am creating an android app that basically records an applies an "Effect" on the audio track then plays it back. I got my app to record an play back but I am stuck an not sure where do go from here. I have been Googling for days now trying to find a open source audio library or some way to change the audio after I record it. ...
I was wondering if anyone knows the growth policy of ArrayList in Java 1.6? The java doc says The details of the growth policy are not specified beyond the fact that adding an element has constant amortized time cost. But I just wonder the details because I know the size I'm targeting to start but I want to make sure I'm making th...
Hi While using method Arrays.deepToString(Object [] a) I am facing this problem which I can put down in this way. Object [] not_allowed = new int[]{7, 9, 8}; Object [] allowed = new int[][]{{1, 2, 3}, {6, 5, 4}}; Why i am not allowed to assign int[] to Object[] in single dimension case but i am allowed to do such in multidimensio...
How can I tell Apache Axis 1.4 not to look for a transport client properties instance (an implementation of org.apache.axis.components.net.TransportClientProperties) and instead supply my own? My problem is that both my Eclipse plugin and another Eclipse plugin are using Axis 1.4, which, via Apache Discovery, looks for a system property...
Is there any Eclipse plugin that will allow me to do a Visual Studio like drag-and-drop for JSF components on a web page? So I won't have to write <f:input...> and the tool would just create this code for me? If not eclipse, are there are other options? (I do not plan to actually use something like this but I do need to know). ...
In this Java code: public class Main { public static void main(String[] args) { "".matches("(?<!((.{0,1}){0,1}))"); } } the compiler (I'm using JVM 1.6.0_17-b04) shouts "Exception ... Look-behind group does not have an obvious maximum length". I saw here that: Java takes things a step further by allowing finite repetition. ...
I'm trying to compile a java file which imports other packages I created; however, it doesn't seem to find them. In my compile.bat file I have: set classpath=c:\t\DB;c:\t\Frame javac comchange.java where the beginning section of commChange.java has package commchange; import java.sql.*; import java.awt.event.*; import java.app...
Hi everyone. I was thinking about implementing an application in java (with GWT gui) that among its options will be able to play youtube video and audio, or at least only audio. The problem is that I can't seem to find any api or source code that enables it. What I want is that given a URL for a video in youtube, play it using java. Any...
Curious if there any API wrappers for Git and Subversion for Java? I want to be able to pullup the changesets and souce code (and diffs) from Subversion and Git repos. Is this possible? Any pre-built APIs? ...
I'm trying to develop a form generator in java, in which users will be able to write a wsdl url and get the list of the operations supported by the web service in a ComboBox. When the user selects one of the items in ComboBox then he will see form fields generated using the wsdl url. I'm a newbie in web service technologies, after searc...
I have: /* * File: NameSurferEntry.java * -------------------------- * This class represents a single entry in the database. Each * NameSurferEntry contains a name and a list giving the popularity * of that name for each decade stretching back to 1900. */ import acm.util.*; import java.util.*; public class NameSurferEntry imple...
I'm modifying a java program which was written in 2004 using javaw.exe from J2re1.4.2_03. problem: Is there a way to figure out which JDK compiler a programmer used to compile a java file with? backstory: I recompiled the java file with jdk5's javac. I run it with the javaw.exe from the j2re1.4.2_03, it gives me a popup error "Cou...
I have Spring 3.0 setup with annotated controllers and it is finding my controller and executing it as it should when I send an url to it from a browser . But when rewriting the url with a filter to the exact same that works in the browser I get No mapping found for HTTP request with URI [/test/lookup]. The filter is loaded by a org.spri...
If the shifted number is positive >>> and >> work the same. If the shifted number is negative >>> fills the most significant bits with 1s whereas >> operation shifts filling the MSBs with 0. Is my understanding correct? If the negative numbers are stored with the MSB set to 1 and not the 2s complement way that Java uses the the operat...