No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
12 Posted Topics
i want to implement client server communication through wirless network in java,by using Socket,ServerSocket classes can i connect two computers with wireless connection??? | |
i want to know about jena api,i have downloaded it but i m not able to install it,i searched for the google images for jena api but found nothing and i came to know that it is not a tool,it is a collection of libraries which can be imported to … | |
hello everyone i have created a text editor using java swings, my problem is that sometimes all features are working perfectly and sometimes they are not.... i wrote the entire program in one file and the no. of lines in it are 1770,is this a problem for that kind of … | |
i am creating a text editor using java swings, i have used rtfeditor kit for saving the file with styles,undo manager for undo/redo.bu tmy problem is that both are not working at a time,i.e., any one of these is only working.... can anyone say how to make both working??? | |
i have used the following code to save the text in a textpane into a file [code] final RTFEditorKit kit = new RTFEditorKit(); jta.setEditorKit(kit); jfr.setTitle(fname.getName()); OutputStream out = new FileOutputStream(fname); kit.write(out,doc,0,doc.getLength()); out.close(); [/code] where jfr is the main frame,jta is the textpane,fname is the filename given by the user,doc is … | |
i created textpane and added undo manager like this... [code] final JTextPane jta; jta = new JTextPane(); jta.setEditable(true); final UndoManager manager = new UndoManager(); jta.getDocument().addUndoableEditListener(manager); [/code] and undo button was coded as [code] ImageIcon undo = new ImageIcon(getClass().getResource("images/undo.png")); final JButton bundo = new JButton(undo); bundo.setActionCommand("undo"); bundo.setToolTipText("undo"); ActionListener act_undo = new … | |
i have created executable jar file for my program pedit.java as follows jar cvfm pedit.jar manifest.txt images *.class splash.gif where images is a directory where the icons for toolbar are there,as my program is a editor... my problem is that when i run the jar file the application is loaded … | |
[code] String filename = jfr.getTitle(); File fname = new File(filename); System.out.println(filename); if(filename.equals("untitled")) { System.out.println(filename); return; } else { System.out.println(filename+"+"); } [/code] when i run the above code though the filename is "untitled",the statements under both if and else are been executed... is there any wrong in it?? | |
i am creating a text editor,i am using textpane in that,how to enable discontinous text selection in the textpane?? | |
i have been searching about how to create an executable jar file, [url]http://csdl.ics.hawaii.edu/~johnson/613f99/modules/04/jar-files.html[/url] by seing the above site i have created a jar file,while double clicking the jar file an error saying that "jar file couldnt be loaded check for possible console errors" is being displayed,i had tried by downloading … | |
i have written program for a text editor,how can i turn it into an application??? | |
i am creating a text editor using java swings concept this is the code i am using to save a file jfr.setTitle(fname.getName()); FileOutputStream fop=new FileOutputStream(fname); fop.write(jta.getText().getBytes()); fop.flush(); fop.close(); where fname is the name given in save file chooser bye the user jta is the text pane in which the text … |
The End.