john roney

Greenhorn
+ Follow
since Jun 19, 2012
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
3
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by john roney

Ramesh Pramuditha Rathnayake wrote:Did you make the size in iReport. There are fields to chage the size. You have to give the size in pixel...
Or edit it in XML..


Yes, I did; A5 paper is 8.3in x 5.8in so paper is 419px width and 596px height (x72 dpi)
I also changed paper size in [Right click on report] -> Page Format.
here is images from iReport:

Report properties:
http://i.imgur.com/7f4MEBP.png
page Format
http://i.imgur.com/9i0VORu.png

Is it possible that DPI my assumed be incorrect? how can I check DPI in iReport?
10 years ago
I designed a report using iReport and i'm filling it in my Java application.
Then I'm showing result using `JasperViewer`.
The shown report is correct; but when I use JasperViewer's print button to print it; While the paper size is A5 and report size is A5 too it print the report in a A4 page! (it puts the entire A5 report in bottom left of and A4 page!)
These two images show viewed & printed report:
Viewed in JasperViwer: http://i.stack.imgur.com/RSlji.png
Printed: http://i.stack.imgur.com/uuHN3.png
my report's config is this:

And i'm showing it with this:

What is the problem?

P.S.:
I also asked this question here & here; but got no answer; so I cross posted here
10 years ago

Ulf Dittmer wrote:Ah, ok. I'm not aware of an existing library that creates something like this, so you may indeed have to write it yourself.


Yes; But where is the start point? Graphics2D on a JPanel? or these kind of things are done in a different way?
10 years ago

Ulf Dittmer wrote:How would this graph look like? You specifically want a graph, not a chart of some kind?


Something like this (with some modifications):



10 years ago
Hi
I need a Timeline Graph with a shape that I can't find in any of existing graph libraries.
So I'm going to make it by myself.
Where should I start?
Should I start by writing in Graphics2D? or there is other tool for this kind of thing?

Thanks
10 years ago
I'm trying to import images from OpenOffice Writer into my Java application by Drag and Drop.
My problem is it doesn't provide a Image or something like that as DataFlavor.
It's provided DataFlavors are:




Now, How Can I import dragged image from OO Writer? (I'm using JDK 1.6)

Thanks

Note: I also asked this on StackOverflow but got nothing.
11 years ago
Hi
I'm using BouncyCastle's AES in GCM mode to encrypt some files in J2SE 1.6.
I can't find out how to use GCM's integrity check when I decrypt files.
How can I check file is decrypted correctly?

Thanks
11 years ago
I found that this line makes the exception (closing CipherInputStream for decryption phase):

Without it there is no exception and decryption output is correct. but as I know removing this line should make CipherInputStream don't call doFinal on the Cipher!
I don't know is it safe to remove it?
11 years ago
Hi
can you give me an example for using GCM and/or CCM modes with AES in BouncyCastle?
My code is this:


but it throws this exception when decrypting in GCM mode:

And this Exception when encrypting in CCM mode:


11 years ago

Paul Clapham wrote:I don't see why not. From a quick look at the API documentation for GregorianCalendar it looks like you would start with this:



However I haven't tested that.


It worked.
Thanks
11 years ago
Hi
I'm using ICU4J calendar library for converting dates between calendar systems (Gregorian, Japanese, Chinese, Jalali, Islamic,...).
I use it with normal dates (after ERA) like this :

Is it possible to set before ERA dates (e.g. year 500 BC)? How?
11 years ago
Is there a Java class for simply encrypting/decrypting files by only providing source and destination files and AES key without bothering about encryption and IO details?

Thanks
11 years ago