Hi all,
I need to convert the file path in windows say C:\Documents and Settings\Manoj\Desktop for java as C:/Documents and Settings/Manoj/Desktop .
Is there any utility to convert like this.?
I have been using XSL-FO and FOP Engine to generate PDF documents for required data. This works great, but lately I have seen some limitations in FOP especially when it comes to allowing user to enter text in a html editor which can be transformed to XSL-FO and given to FOP driver.
This brought me to point to ask this large community of well informed individuals about what are possible Open Source or even non open source libraries to generate PDF documents in Java?
Does anyone know of any tool that can facilitate/ease porting of an app to both Java Swing and GWT?
I've got a few "screens" that makes complete sense to have both in a desktop app and in a browser and I was wondering if there was some kind of common API that could be targetted that would facilitate creating these two different "views" (see my comment)?
I have to develop a specialised report editor in Java. The user will get a number of fields that can be layed out on a page plus some graphical elements. The resulting report design needs to be serialized into already defined database tables.
Is there any software library that will help to achieve this without reinventing the wheel? I have come across Eclipse GEF and Zest, but I am not sure if this really meets my problem.
I have a java string which has an dollar value and cents value after decimal points and starting with a + or - sign. I want to convert into cents and store it in a integer (it can have + or -). Also i need to check if the cents part (after decimal point) not more than 2 digits and throw an error message if exists
example :
String dollval= "12.23" ,"12","-0.09", "-99","-99.0", "-99.23","0.00"
int dollint = 1223,12,-9,-99,-00,-9923,0
If you hover over a standard library Java method in Eclipse, you get a hover over dialog. How can you change the color of the text in that hover over dialog ?
Thanks,
Ankur
Can anyone help me on how I have to run a java application which is in a package, from cmd?
Okease give me the necessay line that I have to type
Thank You
I am porting some functionality from a C++ application to java. This involves reading non-modifiable data files that contain regular expressions.
A lot of the data files contain regular expressions that look similar to the following:
(?<=id="VIEWSTATE".*?value=").*?(?=")
These regular expressions produce the following error:
"Look-behind group does not have an obvious maximum length near index XX"
In C++ the engine being used supported these expressions. Is there another form of regexp that can produce the same result that can be generated using expressions like my example as input?
I am trying to load a dll in java using the following code
System.loadLibrary("mydll");
The project is placed in D:\development\project\ and i have placed the dll on D:. I then gave following VM argument in eclipse configuration
-Djava.library.path=D:/
But when i run i get UnsatisifiedLinkerError. After googling a bit, I used
System.load("D:\mydll.dll");
but again getting the same problem, could someone can help?
Hello.
Are there open source libraries for Java to make implementation of drag and drop easier?
I plan to make something like the one shown below:
The program is Alice, where you can drag some elements on the left and nest them to the right. It's open source, but they did not use any libraries I think. I'm wondering if we anyone know of open source frameworks that work this way, or assist in doing complex drag and drops.
Please help :/
In Java you can create an abstract class that contains only abstract methods. On the other hand, you can create an interface that declares the same methods. So can you use abstract classes instead of interfaces?
Cheers!
Regexp in Java
I want to make a regexp who do this
verify if a word is like [0-9A-Za-z][._-'][0-9A-Za-z]
example for valid words
A21a_c32
daA.da2
das'2
dsada
ASDA
12SA89
non valid words
dsa#da2
34$
Thanks
I've .NET framework 3.5 installed in my laptop. Just .NET alone, no Visual Studio. How can I run Java, Python, Ruby and Perl programs from the console? What are the commands used for running them?
Do I need to install something else also, for running these language files?
Does anyone know of a way, in Java, to convert an earth surface position from lat, lon to UTM (say in WGS84)? I'm currently looking at Geotools but unfortunately the solution is not obvious.
Hi all,
Does anyone know whether there is a java library for parsing a MySQL schema? In code I want to be able to determine the tables and fields specified in a schema. Or am I going to have to write my own?
Thanks Richard.
Hi,
Is there a way I can do a for loop for a certain amount of time easily? (without measuring the time ourselves using System.currentTimeMillis() ?)
I.e. I want to do something like this in Java:
int x = 0;
for( 2 minutes ) {
System.out.println(x++);
}
Thanks
Hi:
Is there a way in Java to do a Nslookup search on SRV records?
I need to bind to Active Directory and would like to use the SRV records to help determine which of the ADs in the cluster are live.
In command line the nslookup search string is: 'nslookup -type=srv _ ldap._tcp.ActiveDirectory domain name'
Thanks.
Anyone know a decent Java libarary for HTML elements?
Ex if I want to create an img-element, I would go new Image(...)
The object should support the normal HTML functions/attributes, such as setting CSS or disable.
I recently moved from NetBeans to Eclipse and I very much miss one great feature - whenever I use method which throws some kind of exception, NetBeans alerted me and I needed to add try-catch and NetBeans automatically generated exception type for me. Is there something similiar for Eclipse?
f.e. : Integer.parseInt(new String("foo"));
NetBeans alerts I need to catch NumberFormatException.
Eclipse doesn't alert me at all
I am using Eclipse Java EE IDE for Web Developers, 3.5 - Galileo
I'd like to have some kind of file browser like Windows Explorer inside a Java Application.
I just want something that's able to list file inside a folder recursively.
Is there a simple way to do this ?
I already tried to use JFileChooser but it's not what I want.
I have done everything I know. The file is not a ".filetype.filetype". It is in the same folder as the .settings and the other project files. Why is this not working? Full path isn't working either, but strangely, a Scanner is working.
import java.io.FileReader;
public class test {
public static void main(String[] args) {
FileReader testFileReader = new FileReader("hotels.json");
}
}
Hi,
Please point me some real time examples scenarios for each java collection classes.
For example to store file system in a hard disk ,our best option is TreeMap.I need example for other classes.
Thx
i am wondering regarding Java: is there a file extension separator?
like *.doc, the "." being the question.
i know there is a line.separator. just would like my app to be portable so i need to know.
thank you.