1. Swing Large Files Performance stackoverflow.comWe need to load and display large files (rich text) using swing, about 50mb. The problem is that the performance to render the files is incredibly poor. We tried both JTextPane ... |
2. How can I have a download file option in JAVA Swing? stackoverflow.comI am new to Swing and wish to implement the download file feature in my Swing code, that would allow the user to either save or open the specific file. I did ... |
3. Can I get file path from Swing to explorer stackoverflow.comI read FileTreeDragSource Can I get file path from Swing to explorer. Not explorer -> Swing!! Swing -> explorer I wanna get path with explorer |
4. Interpreting Java crash files stackoverflow.comI have a Swing application that is heavy customised with a lot of custom painting mainly on the panels and button to add gradients and round borders. The application infrequently crashes with ... |
5. Netbeans: using GUI Builder on regular Java class file stackoverflow.comI'm using Netbeans. When I create a Java class, I sometimes want to change it to be a GUI component so that I can visually edit it using the GUI Builder. What ... |
6. Java OutputStream equivalent to getClass().getClassLoader().getResourceAsStream() stackoverflow.comI am attempting to Store() the change made to my application's Properties. The .Properties file is located in 'resources' package, which is different from the package that contains my UI ... |
7. Resource files with Swing Application Framework stackoverflow.comCould someone explain how I should use resource injection when I have several packages in my application? I seem unable to load resources in any other package but the one where ... |
8. Self-contained JNLP launcher + data file stackoverflow.comI've got a JNLP editor application that saves data to data files. I'd like to allow users to send self-container viewer applications+data in a single file. Ideally, this self-contained file would be ... |
9. Trying to get the files from a directory using list() or listFiles() in java stackoverflow.comI am working on a small basic GUI program that gets the files from my resources and gets the names of the files and places them in a combo box. for ... |
10. Evaluating creation of GUI via file vs coding stackoverflow.comI'm working on a utility that will be used to test the project I'm currently working on. What the utility will do is allow user to provide various inputs and it ... |
11. code for searching from file using GUI stackoverflow.comhi everyone,I'm looking for a code that allows me to search from file , for example, in my program which is shoes shop's program . I should design and implement interfaces ... |
12. UI not updated while using ProgressMonitorInputStream in Swing to monitor compressed file decompression stackoverflow.comI'm working on swing application that relies on an embedded H2 database. Because I don't want to bundle the database with the app(the db is frequently updated and I want new ... |
13. How to upload multiple files using Swings Applications? stackoverflow.comI m trying to upload multiple files in swings applications.I have declared an array to hold the values of selected files but when i click on upload button only 1 file ... |
14. Using an empty file to have one application instance stackoverflow.comThere's probably other ways of doing this but I'd like to use an empty file to have one instance of an application running at a given time. This would be done ... |
15. How to evaluate/translate Logic sentences defined in XML Files stackoverflow.comI am going to work with some XML files containing logic sentences like these:
|
16. Proper file reader used inside a swing Java.awt app? stackoverflow.comI'm trying to pull the contents of a file using only its filename (ex- file.txt). The catch is I'm doing it via a Java.awt swing applet, and the user has to input ... |
17. Problem reading File using UTF-8 encoding in java stackoverflow.comwhen i read the entire XML file in JEditorPane all works fine except the BOM charatcer. I get a BOM charatcer (a dot) at start of file. If i remove the ... |
18. modification of xml file in java stackoverflow.comI have a dialog box that the user inserts various data through gui controls,
and this information is saved as an xml file (implemented in java). |
19. Swing component to open an existing file and then after viewing file save the file stackoverflow.comI need a swing component for opening an existing CSV file in notepad or respective available viewer installed on machine and then after viewing give the capability to the user to ... |
20. How can we create more than one instance of a class from single Java class file? stackoverflow.comI have a requirement which says I have to create only once class file of one Java Swing application and reuse them to create multiple instance of same application. One way comes ... |
21. Output/Input of Java Files via GUI stackoverflow.comI have three classes libraryDB, libraryItems and libraryGUI. libraryDB() is essentially a hash map with the keys as book barcodes/ISBN's and the values are libraryItems, which consist of and therefore take ... |
22. How do we save(serialize) an object of a GUI Class to a file in Java? stackoverflow.comI have a GUI class in netbeans that retrieves Tweets from the twitter search API ,it contains TextAreas, Labels and Editor panes that shows the source user, time of posting, tweet ... |
23. Is it possible to open a log file programmatically if it's continously being written to? stackoverflow.comOr will this generate an error? I just wanted to know if this were possible before I put forth the effort to implement this behavior into my application. Sorry for the ... |
24. File - Quit no longer working in Java GUI stackoverflow.comin the process of tidying up the java gui code below i've managed to render the file/quit open inoperable - i can't see anything wrong, any suggestions please?
|
25. Best way to view/edit a property file in Java GUI? stackoverflow.comI am trying to create a GUI tool to edit few property files, each property file contains large amount of lines. What's the best swing controls in Java should I use ... |
26. Loading Numbers from a File Instead of Words stackoverflow.compackage jtextareatest; import java.io.FileInputStream; import java.io.IOException; import javax.swing.*; public class Jtextareatest { public static void main(String[] args) throws IOException { FileInputStream in = new FileInputStream("test.txt"); ... |
27. Building a Java Swing application from a configuration file stackoverflow.comDo you know of any tutorial/example on how to code a dynamic GUI with Java Swing in Netbeans? What I'd like to do is:
|
28. .bat file interaction with java or C#.net GUI application stackoverflow.comHow to interact .bat file with java or C#.net GUI application? Here is part of my .bat code.
|
29. saving & loading from file custom jcomponents stackoverflow.comWhen I try to save and then load from a file (and subsenquently add to a JPanel) an object that extends JLabel which is movable by dragging it with the mouse, ... |
30. Where do I place log4j.xml file for Swing based project in netbeans? stackoverflow.comBut, Can anyone here explain how one can configure log levels if its 'jar'ed. I've no clue as to where do I place so that netbeans doesnt include this while creating the ... |
31. Opening another .java file within a GUI stackoverflow.comShort and sweet: I'd like to be able to run another .java file, from the click of a button in a GUI in Netbeans for Mac. A little more explanation: I am recreating ... |
32. Configuration Files in java stackoverflow.comI have created a Swing Application- GUI containing fields like TextFields, Labels, CheckBoxes and ComboBoxes. When the user enters some information, I want the details of the textfields, comboboxes and checkboxes ... |
33. Open GUI Java file with Netbeans stackoverflow.comI created a .java file with NetBeans 6.9 GUI builder. Then I transfered the file to my LInux machine and tried to open it up and continue editing with the GUI ... |
34. Saving and appending a file using a GUI JAVA stackoverflow.comOk I have been working on this program (see code below) and I can save the data typed into the GUI to a text file. When I click the next button ... |
35. Access a file from different Directory stackoverflow.comI am working with a Java Application. In this, I must copy a file from source to Multiple Destinations. The destinations are various USB drives. (ie) I'm copying a file for ... |
36. Gui builder not saving source file forums.netbeans.orgHi All Twice, I've tried using the GUI builder to create a complex GUI using a tabbed pane and lots of repeated widgets. The first time, all was well until the ... |
37. Changing GUI while "Run file" is active. forums.netbeans.orgPosted: Mon Oct 12, 2009 7:30 am Post subject: Changing GUI while "Run file" is active. Hey there. I have a school project to do on netbeans, basically ... |
38. [platform-dev] How to revert changes in layer.xml after modifying the file via the GUI forums.netbeans.orgIf changes is made to a project's layer.xml through the Netbeans GUI, Is it possible to revert the changes. -- Odeyemi 'Kayode O. Application Developer & Systems Engineer (Sun Certified Professional), ... |
40. Uploading XML Files From Swing Application coderanch.comHi, Im working on Swing Application in which data ll be stored in XML. And on some user Event i wnt to Sync those files on my server through Authorization. Many client Applications ll be distributed to the different areas. And thre will be n number of clients updating n number of files to the server. It is not finalized but ... |
41. class files coderanch.comAll you need to do is open explorer, select the view menu, select the options (or folder options), select the file type tab... Click on the new type... Enter the name or description (Java Class File) Enter the .class under extension Enter a mime type (e.g., application/x-java) Click on the new action... Enter name - Open Enter the application location (e.g., ... |
42. EXE Files coderanch.comHi! Well U can make Exe Files by writing the Java Code in Ms VJ++ or Symantec Visual Cafe. Well select win32 application when prompted the project type in the two and they should work. Regarding the Jar files.. package the classes in some "x.y.z" and then run jar cfvm //manifest file name // //outputfile.jar// //input file names// That should work. ... |
43. Writing an application to access local file system coderanch.com |
44. Viewing a file using default application associated with it coderanch.comIn Windows, when the user tries to open a file, Windows searches the registry for a known file extention. If it finds one, it reads the registry entry to find out which application is to be used for that type of file. Then it opens the file using that app. If no matching entry can be found in the registry you ... |
45. Send file using HTTP from thick application coderanch.comOriginally posted by ming fan: If you want to use HTTP to send file, you have to send it as a multipart request, Jason Hunter gave out some sample code on how to write a multipart request in his book Java Servlet Programming. You can make changes to his MultipartRequest class sample, and that should work. Hi Ming: Thanks for your ... |
46. Property files in conjunction w/JTabel coderanch.comHi, I am new to java and swing, are there any tutorials on the web on how to use property files? (i have looked and was unsuccesful). The reason I want to use them is because I have a table where I want the user to be able to select the type of colors its cells have. Also I wanted to ... |
47. Missing Swing File com.ibm.awt.* coderanch.comI'm trying to build a sample Java program that was supplied with IBM's MQSeries Integrator for NT product. The compiler complains that it cannot locate the import Swing file com.ibm.awt.*. Do you know where this file could be located? It was not on the MQSI CD. Thanks so much. ------------------ Sandy Korth |
48. Access to Files coderanch.comHi Amer Seif el Dine, hmmm... this doesn't sound like something I would want to do voluntarily, but I asume you have a good reason ;-) Since you are out for a simple solution I don't suppose you want to write an editor kit for the DOC and XLS filetypes as this would be VERY much work to get it correct. ... |
49. Saving a File coderanch.comHi, I am working with JTrees and using JDOM. I would like to know how to save a file I have been creating. I want the user of my program to be able to save their file. I want the file name to be named what they type in the save as window. How would i go about saving? thank you. ... |
50. Swing/FileName coderanch.comHello Sir, I have a difficulty in this code: File file=new File(""); path="http://sonara/project/sounds/"+filename;-----1(or) path="file:///c:\\sounds\\"+filename;--------------2 mediaplayer.setFile(path); I am passing a set of sound files which has 8 soundfiles(for example.) The soundfiles r fetched & its starts by newmediaplyer.start(); When the path for the sound file is given as specified in 1 i am not getting the 1st soundfile alone the remaining soundfiles ... |
51. who to make a file explore coderanch.com |
52. File listing using swings.... coderanch.comhi, pl. help me out in acheiving the foll: U all must hv seen tht while using std Word or any Microsoft prod, When we clk on File menu we get the listing of recently opened files before "exit" menu item. whtevr file r opened or closed it appears in the list. Same file list also appears whn we clk on ... |
53. run this file coderanch.comDear Selvas Kumars, After copying your source and changing the line: if(mark startpostion =mark; Into the following, which I guess it should be: if (mark < dot) { startposition = mark; I was able to compile your application and run it. And it worked just fine. I could mark a piece of text, press the toolbar button and it became bold, ... |
54. How to make SelfExtracting Setup EXE file!! coderanch.comHi Everybody, First of all I would like to apologise as I know that this question has nothing to do with JRUN but as frustration is too much I thought perhaps this forum may extend some help.. I have made one standAlone application and want to achieve following:- 1. want to make a self extracting setup EXE file like in others ... |
55. Saving and Opening Files ? coderanch.comOk I have a question.. suppose you have a program ( an application NOT an applet) and say on this application you are allowing to add and buttons to the JPanel and move the buttons around. Say on thi application you have a menubar and on this menubar you have the options of Openning and saving your files. I have 2 ... |
56. Really opening and saving REAL files!!!??? coderanch.comHi Avin, You are correct! The component is called JFileChooser not JFileReader so your comment is not all together shocking. Don't get confused about a programming language and an application. Java is a programming language you can use it to build applications. Microsoft Word is an application that was written using a programming language. Its features (i.e., reading in/writing out various ... |
57. Save and Open files ( realistically) ?? code included coderanch.comHi Avin, I have looked at your code and made some changes. To save the button locations I used a simple ASCII file that prints out the following for each Moveable button: label, xLocation, yLocation, width, height Each line containing the above information for a single button. Therefore, the number of lines equals the number of buttons. To try and have ... |
58. importing other files in java coderanch.comHi Dubey, Since Excel files are binary your first objective is to find the format and write a translator to ASCII for it. I am not even sure that Microsoft has even published its format anywhere as it might be proprietary (and probably patented!). The easiest approach, of course, is to have Excel output the ASCII for you and then read ... |
59. How to run a midi file coderanch.com |
60. Why isn't my code Opening a Saved file? coderanch.comHi Avin, Your file I/O is working correctly. Your problem is what you do with the file contents. You probably want to view the buttons (that were saved into the file) on the panel. To perform that you need to do more than placing the file contents into a vector. You will need to use the vector contents and add the ... |
61. file opening with java program coderanch.comDear Friends, As we have seen in many OS, when we click upon the .java file, .class file or a zip file, the corresponding registered application will attempt to open the file. In case, we write an application that is supposed to decompile the .class files and show the code, what should we do to register our application so that our ... |
62. Open a File in disguise using Runtime.exec("Start file") coderanch.com |
63. Closing a File via swing application ? coderanch.com |
64. Open a .chm file from Swing App coderanch.com |
65. opening up .chm help file - Urgent coderanch.com |
66. Best Choice for a File List coderanch.comI'm making an FTP program and I'm trying to figure out what component to choose for a file list. I want to include an image for the type of file, the name of the file, the date, and the size. I've been trying to work with a table, but I haven't found an easy way to clear the table and then ... |
67. file upload in swing coderanch.comI don't know of any examples on the net, but I can tell you what you need: 1. a JFileChooser, so the user can specify what file to upload (if that is not clear, yet). 2. you should read about multithreading - now that you know which file where to put, you should open a background thread so that the ui ... |
68. Writing objects to files and reading them back into the UI coderanch.comHi Hector, Java makes it almost too easy to persist objects to a file. The classes your are interested in are ObjectOutputStream and ObjectInputStream. Here's an example: import java.io.*; public class ObjectIOTest { public static void main(String[] args) { /* * Make an ObjectOutputStream and write a TestObject to a file */ try { ObjectOutputStream oos = new ObjectOutputStream( new FileOutputStream("test.out")); ... |
69. how can i make a .gif file ? coderanch.com |
70. Reading RTF File in Java coderanch.com |
71. How to make Installation file of Swing Application ? coderanch.com |
72. writing help file - please help coderanch.comhi, yes, I am using it. There is a documentation that comes with the binaries. you can download the whole package at the given url. I cannot explain it better than in this User Guide. Basically, you are writing the content of the help in html format. JavaHelp does the indexing (for search) and the displaying in a helpviewer for you. ... |
73. FileFilter--more SAME Files of Type comes out coderanch.com |
74. setting file attribute coderanch.com |
75. launch associated program of file type coderanch.com |
76. Can I generate a .gif file using java,how? coderanch.comof course import java.io.*; public class WriteBytes { public static void main(String[] arguments) { int[] data = { 71, 73, 70, 56, 57, 97, 15, 0, 15, 0, 128, 0, 0, 255, 255, 255, 0, 0, 0, 44, 0, 0, 0, 0, 15, 0, 15, 0, 0, 2, 33, 132, 127, 161, 200, 185, 205, 84, 128, 241, 81, 35, 175, ... |
77. File Extensions Mappings coderanch.com |
78. Dealing with ASCII files in a swing application coderanch.comHi, I have developed a small swing application (as a .jar file) where I store (persist) data in an ASCII files. I read from these files while launching and using the application. My question is 1. To avoid cluttering of files and to prevent these files to be edited outside my application, can I somehow keep all the files encrypted, say, ... |
79. Playing 16-bit stereo files coderanch.comHi, Can someone tell me how to play 16-bit stereo audio files using Java Media Framework. It is said that JDK1.2 supports 16-bit stereo sound format but when I try to play it is giving Exceptions: Unable to handle format: mpeglayer3, 44100.0 Hz, 16-bit, Stereo, LittleEndian, Signed, 16000.0 frame rate, FrameSize=32768 bits Failed to realize: com.sun.media.PlaybackEngine@a4488 Error: Unable to realize com.sun.media.PlaybackEngine@a4488 ... |
80. Executable File coderanch.com |
81. Problems reading file coderanch.com |
82. java file conversion coderanch.comThere are several commercial programs that will do this. Just search google and you will find them all. With that being said, you might want to consider the ramifications of doing this. You will lose your applications platform independency The size of your app will probably increase (could change how it is delivered) As well as some others. If you are ... |
83. Open a log file's content coderanch.com |
84. call a .chm file from java coderanch.com |
85. writing path in a file coderanch.com |
86. how to create exe file for java application coderanch.comFollow One of These steps: 1)Download "JRun" and you will run any Class by Double-Clicking... Or 2)Download "ExeJ" and you will have your .jar file to Windows executable... Or 3)Write a program on Java that's executes your commands (but you'll need the dependencies files or jars.) You will find that on net. But i am warning you that your source code ... |
87. makning java application as exe file coderanch.com |
88. Help with java input file coderanch.com |
89. Why just .gif files? coderanch.com |
90. regaining functionality from saved file coderanch.comHi there, I'm working on a project where I'm saving to file a subclass of JPanel, which in turn contains other objects. All the objects being saved in the project implement Serializable. I have no problem saving to file and re-opening the file. But some functionality of the objects are lost! For instance, all the objects have an inner class that ... |
91. How to get the program associated with a file's extension coderanch.com |
92. Mediaplayer framework and avi files coderanch.comI've got a large number of avi videos that i want to display using the java media framework. In the documentation i find that the framework supports avi files. However, it seems like it can't handle the type of avi-files that I've got, because when i try running my program, i error messages like this: Unable to handle format: CRAM, 452x452, ... |
93. Receive a variable from another file or batch file coderanch.com |
94. problem in playing movie files. coderanch.comHi Friends, Iam actually trying to show a flash file in swing components, so ive downloaded this coded from the sun site, iam able to run but unable to play the files /* * @(#)MDIApp.java1.3 01/03/13 * * Copyright (c) 1999-2001 Sun Microsystems, Inc. All Rights Reserved. * * Sun grants you ("Licensee") a non-exclusive, royalty free, license to use, * ... |
95. How to save the content withen a table into a XML file? coderanch.comI have a table like this: ----------------------------- Name Sex Superman M Allen M ... ... ------------------------------ columName[] = {"Name", "Sex"}; data[] = {"Superman", "M", "Allen", "M", ...}; tableModel = New MyTableModel(columnName, data); Now I want to press a "Save" button to save this to a XML file. How do I construct the file? I'm not familer with XML. Thanks a lot. ... |
96. How to compare two records in a XML file? coderanch.com |
97. How to make an executable java file, exe/bin? coderanch.com |
98. Regarding reading a property file coderanch.com |
99. Help needed for File Uploading code... coderanch.comHello Everyone, I need a help. I had made a swing component for file drag and drop. I used JTabbedPane and when user drag any file from FileChooser or Local Desktop Location and drop it to the Tabbed Pane, It displays the contents of the file on a tab. Program is working perfectly fine. Now what i want, if any user ... |
100. creating setup file? coderanch.comHello hoang, you can make batch file into which you can specifiy your directories to create, and from there you can call your jar file. Below is the sample program might help ful to you ********************** set JAVAVER=1.5.0 set JAVAPATH=c:\JDK set JAVADIR=%JAVAPATH%%JAVAVER% SET JavaBinPath=%JAVADIR%\bin call %JavaBinPath%\javaw Sample.MainClass > sampleLog.log 2>&1 ********************** In this way you can call your jar file, but ... |