I was wondering if there was any way other placing the information that is genereated by the program between runs of the program? I already know that you can use a text file and store the information that way but I was wondering is there a better way? Also is there any way to do it so as to keep the information secure? from the end user ...
I have made some general utilities(jars) for some general purposes.
Some of my friends want these utilities for their use.
I am ready to share my stuff (free of cost), but afraid they don't re-distribute it further.
Is their something in java as described in the following code for my jar's class files.
public class UtilityClass{
...
I've constructed a regular expression which I compile to a Pattern to find Fortran Real*8 numbers. The tricky bit is that the file I'm reading from is a single line with a few million columns..
When I do this:
Scanner recordScanner = new Scanner(recordString);
String foundReal = recordScanner.findInLine(real8Regex);
I get what I'm lo...
I use java.text.NumberFormat simply to convert numbers into more readable Strings, with commas separating thousands, etc. Basically I define it as:
public static NumberFormat nf = NumberFormat.getInstance(Locale.US);
...and then I just call nf.format(some_number) in any thread where I want to make a readable version of a number. But...
Hi,
I'm starting to work on a Master's in CS right now though my undergrad is in another field. I have never worked on anything other than what I have written myself. I have never even really worked on a group project in college. So what I would like to do now is to start contributing to some open source project, both because it can help...
Hi all,
I am trying to build a web app that will be able to run in browser and perform recording and caching locally on the client's computer. After searching my different options for the last few weeks I came up with the possibility of using java applets. As much as you know, is it possible to record audio using Java applets? How stric...
Hi,
I'm trying to add a Java JFrame into a container inside a C# form. The JFrame I have is implementing a AppletStub aswell, and I've used IKVM to do the interopting, but the problem I get is that the Applet loaded in the AppletStub freezes. But it works perfect fine when its not interopting with C#. This is the only thing I'm doing bt...
I am looking for any of the following (in order of preference):
A Manhattan layout EdgeRenderer for prefuse.
A Manhattan layout for prefuse.
An algorithm to produce Manhattan layouts for hierarchical, directed acyclic graphs.
An organizational chart implementation.
Sample implementations include:
NodeLinkTreeLayout (for prefuse) is...
How can I register for SMS database changes?
I tried:
mCursor = mActivity.getContentResolver().query(Sms.CONTENT_URI, new String[] {
Sms.ADDRESS
}, null, null, null);
mCursor.registerDataSetObserver(mydataSetObserver);
where mydataSetObserver is implemented like this:
private class MyDataSetObserver extends DataSetObs...
I need to incorporate the printing of mailing labels in my web application.
The addresses are in a DB, and the function will allow the user to select addresses, then hit a button to print mailing labels.
Is there a Java framework for this?
...
Well i decided to make something like a mud and the practices i may use in other places too, but i have one problem..
i don't know how to make it to where a user can type in the actual box instead of a Textfield
i'd like to explain better but i can't really think how
...
What is
Type<Type> type;
called (opposed to)
Type type;
You know, where you put the angle brackets around the type? I use this a lot, but don't know the name - it's bugging me. It's very hard to search for - Google ignores the <> characters.
(note: this is Java)
...
I'm trying to learn JEE, starting with Servlets and JSPs in an MVC architecture. I know Servlets are often used as the controller and JSPs are often used as the view, and that these both interact with the model, the back end java application on the server. The question I'm asking is what the back end application would consist of. Is it n...
I have a java program to run and it will print out some messages on the console. When I put the program as an Ant java task, I can't see my output on the console. What should I do?
I should add that I run Ant from Eclipse. The console output does not appear in Eclipse console.
...
when my app startup, i get error like below, can anyone elaborate what i missed out? the app running fine when using mysql. do i miss out any extra parameter in config.xml file?
2009-08-17 11:32:12,294 [main] INFO [info.jtrac.config.DataSourceFactoryBean] -
Not using embedded HSQLDB or JNDI datasource, switching on Apache DBCP data sour...
If I instrument two jars in emma, point them to the same emma session file, and then run them concurrently (e.g., a client and a server), should I expect things to work or fail miserably? The jars are building out of common source, so I don't expect problems with the metadata.
I didn't see anything about this in documentation, so if it ...
Running a Java Swing program on Ubuntu Linux, I'm getting an odd bug where the font height is too large for the actual font size, that is, every piece of text (in menus, buttons, text areas etc.) has excess blank space underneath the text itself.
This does not depend on which font I select.
It also does not depend on the font size chose...
With Sun being taken over by Oracle, Oracle will arguably gain control of Glassfish.
I do understand that Glassfish is community driven but most of the contributions do come out of Sun at this time.
Its a great App Server and perfect for many cost-sensitive customers. However, if Oracle decides to pull the rug from under our feet on th...
Below is a part of the hs_err_pid
Heap
PSYoungGen total 13888K, used 9807K [0x8a330000, 0x8b140000, 0x914f0000)
eden space 13504K, 69% used [0x8a330000,0x8ac67710,0x8b060000)
from space 384K, 96% used [0x8b0e0000,0x8b13c6e0,0x8b140000)
to space 448K, 0% used [0x8b060000,0x8b060000,0x8b0d0000)
PSOldGen total 115456K...
Is there a way to find the width of the console in which my Java program is running?
I would like this to be cross platform if possible...
I have no desire to change the width of the buffer or the window, I just want to know its width so I can properly format text that is being printed to screen.
...