Manoj Amrutkar

Ranch Hand
+ Follow
since Apr 15, 2006
Merit badge: grant badges
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
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Manoj Amrutkar

I am getting this error in my swing application

"java.lang.OutOfMemoryError"
My Application has different form, which are opened one after another in page down key stroke, If i goes to fast(page down key press) above errors comes.

Frame is contaning internal frames. which displays my forms (one at a time)
Internal frames contains layered pane on which bottom layer i have used .gif images (which are the once creating the problem as there size is bit large say around 300 KB) to show forms.

Code is something like this on every page down




My problem is these images loaded in memory are the once creating the problem.

Please suggest something which will help in this regard

Some thing which will clear up (garbage collection), before next page down.

Thanks

Manoj
15 years ago
But how exactly to get the reference of second frame?
Some code sample will be really helpfull.

Thanks
15 years ago
Hi,

I have one Swing-MDI Application, where the structure is Outer Frame containing JDesktopPane, Which can open several internalframes.

Now i have two internalframes say IF1 and IF2.

IF1 has two textfields say tf1 and tf2, where as IF2 has third field say tf3. These IF1 and IF2 are interrelated by calculations as follows,



now suppose i have both the frames open simultaniously. And if i enters some value in tf1 and/or tf2 from IF1, The resulted sum should be reflected in tf3 of IF2.

How can i acheive above scenario.

Thanks in advance!

Manoj
15 years ago
Another solution,

could be for this problem is, i can have a simple pdfviewer on the bottom layer of layered pane.

I tried adobe acrobat viewer(with frame), but it has sevrel problem and the major one is it's not working with layered pane. Another problem is its been developed in AWT, so i am facing the problem of light weight - heavy weight.

If any one has tried the same, please help me!

Thanks
15 years ago
Thanks a lot!,

Well first of all sorry for that Expert only TAG.

Now getting back to my problem. We allready have that software running. And no time to get the steps back for new GUIs.

Can i have some software which will convert the pdf in to some QUALITY format image (say better than gif), so that it can be scaled without blurring effect. After all we just have simple form (say TaxForm like 1040) type documents on those pdfs and doesn't have any pictures.

Anything that can help me to improve the image quality on scaling.

Thanks in advance!

Cheers
15 years ago
I have one swing application, where LayeredPane is embeded in the Frame.

I am having one pdf which has some form like controls.

I want pdf on the bottom layer and some swing control on top of them.

Currenly what i have done is i took a .gif image from pdf using some pdf to image converter.

But when i am resizing my application window (i am resizing image also), image gets blurred.

That's not the case with actual pdf. In adobe you can stretch the pdf to any level without blurring the pdf content(say i have some tax form).

I have heard of vector image as one solution to this problem.

Please can any one give some details on the same.

Or if you have any other apporach please tell me.

thanks in advance.
15 years ago
Hi,
I have one swing based application, i am placing the components with absolute positionings (with no layout). what i want i want to set the origin of the container from upper left(which is default) to bottom left.
(0,0)|------- to |
| |
| (0,0) |________


Is it possible?

i would really appreciate a quick reply on this...

thanks in advance

Manoj
16 years ago
Well thanks a lot guys,
but see i really wanted the values in string format as cb1 and cb2, because i have a pdf corrosponding with each form with certain acrofields mapping to components on to the panel. what i want to do is to take the positions of those acrofields and assign same to corrosponding components on panel.
For that i need to get the components from page with name associated with them compare with acrofields and then assing the position to that component.

hope now the things will be bit clearer.....

i know it is almost close to impossible with java memory restrictions.

but is there any other solution u sees...

Thanks
Manoj
16 years ago
Hi,
I have one swing based application in which i have used one JPanel, i have some components on to that JPanel which i got from getComponent method. Now i have the object, what i want is to find out it's reference variable name. Here in i am giving some code to explain it properly



Thanks in advance
Manoj
16 years ago
Hi,
1)I have one swing based gui application, i am facing some resolution problem in it. for the time being what i want to do is ...
Suppose my application is runnig and user minimizes the window and change the resolution say from 800X600 to 1024X768, i would like to run some code basically i would like to change the background image of my application which is there in layered pane wright now.

2)Also i would like to have some code for stretching the images (background)if user resizes his main application window. and the image format which will be resolution independent (or size independent). basically it should not get disturbed when it's size gets chaged according to the size of the window.

thanks in advance ....


Manoj Amrutkar
16 years ago
hi,
thanks, but as i allready mentioned in my first post that unload or onbeforeunload gets called on refresh and back/fwd buttons.
i have a chat application in which suppose user closes the browser without proper logout his session has to be expired and he will be removed from chat room's list(which is maintained in context, and that i will do with DWR in javascript).
but for that i need to catch that event isn't it?

Thanks
Manoj
Hi,
Can you provide some code please?

Thanks
Manoj
Hi,
Well it's amazing to know that there is no way i can track the event of browser closing(IE-6, and when i say browser close it's either clicking on X button or Alt+F4 only {both of them together} and not page refresh of back/fwd buttons), and this statement comes after lot of R&D.
But still i feel there must be something by which javascript can do it?

Is there any one who can provide some code for that thing?

Thanks
Manoj
hi,
Probelm2:Amaizing i change the method get to post and it worked

req.open("GET", url, true);
==============================TO
req.open("POST", url, true);
will be really good if some one could explain me why it is so?

Probelm1:But please help something regarding COMET, want some code to implement it.

and yes how can i add the html code in post?

Thanks
Manoj
Hi all,
How do i add some html code here?
Problem2:i would like to give some code snippets here so that some one can help me in this unusal scenario with ajax.
//This one is the jsp file with ajax

//following html text and button


//MessageForm

//MessageAction

//with success resulted jsp file for html response say messageList.jsp


Now please can any one tell what is the problem why the same message can not be sent twice with this code.

Problem1:Again i try to find out some code to implement comet but every site just giving the cocept. Do any body knows anything technical about comet?

Thanks
Manoj