Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I am working on a dashboard project with the use of excel and java GUI. I would like to find out from the community if there is anyway I can collect data from various columns and worksheet in the excel and transfer it to another excel which would then generate the dashboard and open it with a click of the open button. Can I ask for sample codes because I am still quite a newbie when it comes to solo IT project. Thanks.
Okay. I need code example as guide on how to read data from multiple selected excel sheet that is chosen by a user from a JList and then when i click okay, it will put all the datas into a single excel dashboard template that I have created.
Have a look at http://poi.apache.org. This is a library that allows you to read and write Excel files. They have a lot of examples on their website on how to work with Excel files: http://poi.apache.org/spreadsheet/examples.html. This should get you started to read from one file, and write to another file.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I'm new to IT Industry and My lead gave a Task to convert JSON file which contains JSON arrays, objects and Nested with 4000 lines to convert into Excel sheet in locally by reading JSON file. Please help me fellow coders.
There is a lot to unpack here.
You are asking for instructions to build a Java Application without providing much context regarding the entire use case. There are a lot of different ways to approach your problem.
If you are new to Spring-Boot, I'd suggest reading the documentation.
It hopefully will provide you with a basic understanding of the core concepts.
Now lets get to the JSON-to-XLS conversion. According to this question, it is recommended to convert your JSON-Data into the CSV format. CSV could be interpreted as an open alternative to xls for tabular data. As far as I'm aware, Excel can open CSV files.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I'm currently trying to code a fairly simple program in Java to keep a database on a small library at my university. I'd like for multiple computers to be able to use this program using a shared database stored in a text file that would be downloaded when the program is run, and uploaded once the user is finished using the program and making any edits to the database. I don't know how to go about this at all and would be very grateful for any pointers on a direction to take.
In order to connect to other computers in Java, you should use Sockets, and define your own Protocol (Basically, your protocol would consist on a handshake, and some way on asking the other part of the connection to send the text's data). Anyways, I'd recommend you using a simple SQLite database
To read and save files (txt is a raw text file without any special format), check this
If you'd like the program to display the text, you should learn a bit about Java Swing
Also, try looking a bit in google before asking here
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
My question is simple:
Is it possible to use a program via Java? Meaning, can I for example code in java exactly what I want my Microsoft Word file do? Add paragraphs, lists,import a picture, etc?
Short answer: Yes. Some programs allow you to use scripts and such, that is the beauty of open source software.
To actually edit the document you can use Apache POI which is an API for Microsoft Documents. Granted it cannot handle .docx but simple text documents. You may also want to take a look at docx4java which supports .docx, .pptx and .xlsx files.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
In excel you can copy a cell and paste it in another using the excel paste special from the right click menu.
How can I write such a link in java to paste in excel?
Its too broad a question. What lib do you use to working with Excel? For example, using Apache POI you can just read cell to java object and save to new place (all values, or just, for instance, formulas or text only). A lot of example, to working with Excel you can found this
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am attempting to build a database that will allow a user to upload their music to be accessed by someone else/third party. How would I create it so that the music can be uploaded to a database but providing a path for it to be accessed from where it is stored?
As in A Band upload “Song” and it is then streamed by A Fan.
If it can't upload to a database I need to upload it to a server.
We are building the back end in Java and the front end in HTML.
We are also using Glassfish and Netbeans for writing the code.
You can store files in a BLOB field in a database for example. Another possibility would be to store them directly on the file system, but it has its problems (such as the lack of metadata).
Then you'll need to figure how you want to map each file, for example http://myserver.com/Artist/Album/Songname or http://myserver.com/listen?uniqueid=743.
File upload servlets are available all over the web, so that shouldn't be a problem. The rest is up to your programming skills (this might be too big of a project for you).
Then you'll just need to connect those things together, and that's the part where you start to program (or hit the Google hard).