Java GUI inputs to HTML bill - java

I am working on a project for a business. Using Java application, I am planning generate a sales bill. This is how it is going to work.....
When I run my java application, GUI window will popup and it will ask me to enter details to generate bill......after hitting submit button some background processing should happen and it should redirect me to
all data enter should be replaced by variable shown on the second pic, I also have code ready to generate this page in HTML.
Not able to figure out how to make this work.

Related

java open web page without focus

I made a small program in java
is like a rss checker but when find something I launch this,
java.awt.Desktop.getDesktop().browse(URI.create(relHref));
But now I have a problem,
every time this event trigger i lose focus on the page/program. I wanna open the page without loosing it. Is this possible?
For instance: If I'm watching a movie and the event start i get the focus on the page and I have to stop/restart the movie.
This is almost the same problem i have
Java open html in background but is without a solution :-(

Automate Already Running Java App By Attaching

There is a java app I use (not mine) and I want to automate it.
I have used autohotkey before to enter text and click buttons but I am not sure how to get text from a java table using it.
What I need is to parse text in a table, process it, enter text (depend on process) and click button. Is there a free automation tool that I can achieve this?
Regards,
Burak

file upload in form field for mobile web app

i am developing mobile web app using spring(spring mvc). I need to devlope a form which enables the user to upload file(resume) and on submit it will be stored in database.
I am not getting the idea how to finish that!
In the form when i use input type as file, it's working in diffrent manner on diffrent browser. If any one have did it ,please tell me the steps or some working demo at any site.
yes i don't want to use some third party tool.
thanx.
Sorry dude, your kinda SOL on this one. The file input type is a different beast than most. Each browser implements it in their own way, so it will never look the same on multiple browsers. Also, for security reasons, you can't trigger the file inputs with JavaScript, so you can't make an invisible file input that you would interact with through other standard inputs. Many before you have tried, all have failed. I spent days researching possible alternatives when I had nothing better to do, and they all came up against the security issue. Jquery provides the closest thing but still required a browser switch for one of the major browsers (can't remember which one off the top of my head).
So now that the bad news is out of the way, here's what you can do. Put a button on the screen and style it how you like. Put a file input on the screen and using absolute positioning and a higher z-index put it right over the top of your button. Now make it transparent (not display none, but using opacity and filter:alpha styles), now the user thinks they are interacting with your standard button, but the invisible file input above it intercepts the click. Will be the closes you can get to a file input that behaves and looks the same in all browsers.

Learning JavaME Programming....Confused

I have just started to try and learn JavaME and I'm quite confused how it works and how to piece it all together.
For my first task i thought a simple application would be the best approach. I want to create an app that lets the user input a word into a TextField() and then press a button or activate a function that sends this input to a server. The server responds by sending back "OK".
This is simple enough because i have written a swing application that can send/recieve data from a tomcat server, all it takes is a MouseListener and an InputStream.
I would now like to make a simple app like that using JavaMe. I cant however work out how. I have created a form with an attached TextField that allows the user to input text and created and an exit button that quits the application.
How would i now go about creating a command that takes the text value from the TextField and opens an InputStream.
Thanks for any help in the matter.
You can use HttpConnection
much info can be found here !
http://download.oracle.com/javame/config/cldc/ref-impl/midp2.0/jsr118/javax/microedition/io/HttpConnection.html

Adding spinning tool in jDialog in java

I am working in a desktop application. In my application i am performing login operation where user enters his id and password. Login page is created in java swings using jDialog. When user enters his credentials, it takes few minutes to validate user. i want to add snipping tool with message "Please wait" which will be display, when user click on "next" button.
I didn't get any swing control which can be used as snipping tool. While searching i got some idea that ajax loader.jpg can be used as a snipping tool but not getting how can i use it in my jDialog.
Please suggest me some way to add an snipping tool.
There is spinning tool available in ajax that can be directly used by putting a lable in jPanel/jDialog and importing it as an icon image.
Here is link where you can get ajax spinning tools
http://www.andrewdavidson.com/articles/spinning-wait-icons/
Thanks for your valuable suggestions and response.
You can use a JProgressBar doing a bucle and changing the progress value.
Also take note that SwingX project offers a login dialog that does it for you.

Categories

Resources