35,617 Topics
![]() | |
As a part of our project i need to learn 'JAVA swing'. can i get a free tutorial on it anywhere ,or any site ,u could suggest.i got a couple of books on java but none has more on swing. Please help me. | |
Is there a way within Java to adjust the screen size? When I wrote a program in C++, I used the following code to do it, but I can't find anywhere (either Sun's API's, or on this site) how to do it. system("mode con:lines=50"); system("mode con:cols=100"); | |
I am trying to write a program in Java that takes in someons hexidecimal input. To make it eaiser I just want to do two digit hex. So they put in A2, and then I want the binary output for that. What I do know how to do is put … | |
I am new to Java programming and am converting a program I wrote in C++ to Java. It is a currency conversion program that uses a number of functions to display different menus. It also allows for user input of the menu options to either do a currency conversion or … | |
I would like for someone to help me with writing the codes for Round Robin Scheduling in Java please. | |
hi...i need to pass my operating system project on the [B]december 10th[/B]. Can anyone help me with my project? the question is: i have to make a java multithreading program that use round robin scheduler, there is no special requirement for this program. i really don't get used to java … | |
Hello everyone, I have found that class "URLConnection" has methods to establish a connection, for example, method "openConnection" and method "connect". But I have not found any methods of this class which are dealing with disconnect. I am wondering if I use class "URLConnection" to establish an HTTP connection to … | |
I have this simple calculator I just started on, and I'm having just a few problems. First of all, I don't know how to append text to a textfield. Maybe I would have to create a string buffere or something. Then, when the user clicks one of the buttons, the … | |
Hi everyone, I have a bit of a problem converting a JTextPane to an image. I am able to convert the JTextPane to a PNG image but its quality is really bad. Is there a way that i can convert my JTextPane to a high quality image. The type of … | |
dear all the programmer i m facing a difficulty in creating the concept of data access layer (DAL)concept in java ...as it is implemented in .net...if any one can help abt this plz send mail at [i][email]email removed by moderator[/email][/i] | |
I've been trying to do this for weeks now, and can't seem to get it to work. I have a JTextPane called textArea2, and I have a variable called doc that gets the document from the textpane. I want to get the selected text but I can't get no code … | |
1. How do you clear the screen in a console java app? 2. How do you input text in the console area? Is it something with System.in? ...There may be more later :-P | |
Hello all, I am looking for an audio or video Java player which can be used on Foundation of J2ME platform. It is better an open source Java player (but not a must requirement). I am wondering where can I find related sources? regards, George | |
Hello everyone, I have written the following simple program to play a local .wav file. [Code] URL url = null; try { url = new URL("file:/c:/temp/sample.wav"); AudioClip clip = Applet.newAudioClip (url); clip.play(); } catch (MalformedURLException e) { // TODO Auto-generated catch block e.printStackTrace(); } [/Code] But when running the program, … | |
I need to know if there is any way that I could create an entrance box, for a link, that would change on part of the link.. What I'm trying to do is change the "User" part of that link, but leave the rest alone. [url]http://chat.teenchat.com/optichat.html?oc_acc=teenchat&oc_stage=2&oc_room=Test+[/url] Room&oc_dyn=&oc_user=Blah+Blah&oc_syspass=0 I'm not sure … | |
Hi everyone, I have two weird questions but bear with me for a while. The first question is about the printing of a styled document using the printable interface. i am using windows 98 and using the windows page format and print dialog. I have managed to print all the … | |
I am having a problem opening java applets...like in yahoo games or im windows.. on the bottom it says applet notinitited I'm a newbie not too technical an answer please | |
hi my project involves ping multiple comps simultaneously to do that i am storing results of each comp in its designated text file for that at startup i have to clear its contents i want to know how to do that in java??????? | |
I am trying to write a program that generates an array of 3 random letters out of a choice of 6. I then want to copy the array and sort it, then check that none of the letters are duplicated. This is causing me major problems. The code I have … | |
hi my project involves ping multiple comps simultaneously to do that i am storing results of each comp in its designated text file for that at startup i have to clear its contents i wanted to know how to do that in java??????? | |
hello every body in my site i want to use java script for main menu. for example i have link 1)about us 2)vision 3)product- steam generator Engineering services textile machinery etc when mouse over on the product link the link further show sub links i dont want to use flash … ![]() | |
Hi, i have written a servlet application as follows : import javax.servlet.HTTP.HttpServletRequest; import javax.servlet.HTTP.HttpServletResponse; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; import org.apache.struts.action.*; public class SubmitAction extends Action { public ActionForward perform(ActionMapping mapping,ActionForm form,HttpServletRequest request,HttpServletResponse response) { return mapping.findForward("success"); } } But when I compile this file, the packages http, org.apache … | |
Hi, Can anyone please describe briefly what is the baisc function of the file web.xml in Tomcat5.0.19 ? | |
Hi, I am trying to learn developing J2EE application on Jrun4 server with oracle or MS Access database. Can anyone please suggest me good sites or books with lots of samples. Thanks | |
The following is a piece of code for performing linear search: [code] import java.io.*; class search { String str; int key,size,seaArr[]; public void getdata() { System.out.print("Enter how many data you want to enter : "); System.out.flush(); try{ BufferedReader obj=new BufferedReader(new InputStreamReader(System.in)); str=obj.readLine(); size=Integer.parseInt(str); seaArr=new int[size]; for(int i=0;i<size;i++) { System.out.print("Enter element … | |
Can i insert a JPEG picture into my application with out import javax.swing.*; ????? or is where a way to do that with out import javax.swing.*; ??? | |
How can i plot a histogram from the results of the following code. Thanks in advance for your help Serkan import java.io.*; public class LineLen { public static void main(String args[]) throws Throwable { // // Open the file final String filename = "LineLen22.java"; BufferedReader infile = new BufferedReader(new InputStreamReader(new … | |
I need to get the position in a JTextArea...Anyone know how to do this? | |
How can i add reversing line code to the following code. Program must read the document which is selected by user from filechooser and write the reverse lines to another file. Additionally, I have to add a histogram which shows the length of each lines in document. [code] import java.awt.*; … | |
I have this code that is suppose to append text to a JTextPane, using the Document method insertString(). I can't seem to get the attribute argument right, so maybe one of you can point me in the right direction... Here is the one line of code giving me problems, just … |
The End.