I am generating PDF in netbeans and that part is okay as far as requirements are concerned.
My manager added that they may choose where they could save the generated pdf.
How to do it in netbeans? There will be a dialog box where user may choose directory where to save the generated pdfs?
Thanks!
Read the section from the Swing tutorial on How to Use File Choosers For a working example to get you started.
Related
I am developing a password manager within Eclipse and I am using Windowbuilder to help. I am using SWT, and am trying to make use of an Excel file which would store information such as usernames, passwords and additional notes
This is what I have so far when the program is launched
The left part, where there is a patch of white is where I want a menu to navigate through the Excel file, but I can not start that yet as I do not know how to actually display the Excel file. The area on the right which is not being used is where I want the information to be displayed
This is a sketch of what I would want it to be similar to
The Excel file can be any type, as long as it works with the GUI. Any help would be appreciated
one suggestion is to create a workbook with multiple sheets by the name of your menu like Gmail, accounts etc. then create columns by name of the information you want to store which would be website, username, password etc. Then Use apache POI to read the file in java. This Tutorial will help you in reading the excel file.
Regarding display of excel file, You can use Table Editor to display your data.
I have a editor developed which opens the xml file and display it there (with the proper structure), for this I need to browse through all the times to select target file, in what way I can add dragging in file feature enable for this ?
The report editor is developed with Java SWT components.
I want to know the possible ways or API available for "dragging in" file ?
This link might help you.
DragSource class which provides the drag and drip API in SWT.
http://www.java2s.com/Tutorial/Java/0280__SWT/DraggingandDropping.htm
I am working on a project in netbeans, and right now I want to embed links to various pdf files so that when that link is clicked, the program will call up the appropriate pdf in it or somewhere in the hard disk and open it with the pdf viewer.
I came across a 'clickable label' concept in one article, but I dont know how to do that, all the labels I insert do not link to the source tab when I double click on them.
Can someone please provide an example of how to implement a 'clickable label'?
I am using JavaFx-2.I need to view the pdf file in JavaFx. I searched in Google and found the below link.
http://www.idrsolutions.com/jpedalfx-viewer/
In this link I have created every thing whatever mentioned there and I am able to see PdfHelpPanel in Palette. When I drag this component to the PDFHelpFrame I am able to see the fileLocations property. Here I need to give the file locations but I don't know how to give the location of my pdf file. When I click browse in filelocations property it is asking for Custom Code, Default Editor, value from existing component. Which one I need to select. I am struck up exactly at
http://netbeans.dzone.com/articles/how-create-import-a-javabean-c-0
second image from last. If any one has done this already can you help me?
You can use this project https://github.com/james-d/PdfViewer
It uses PDFRenderer library.
sorry folks I should've elaborated more, this is my problem:
I have created a simple bean builder tool to allow users to add components like JLable or JButton or other components to a design palette and they can customize the properties of the added components as i have created the means to, now they want to save the source code of that to a file when they push a button and i want to prompt them for the name of the file, this is my problem?!?! Any ideas?
Thanks
Use a JFileChooser (see the example in the javadoc)