32,204 Topics
| |
Hi Friends, i made a window with a Panel and painted a text on it. Now i want to set a background color for the panel but it does not reflect in the window.. i am posting the code here.. Please let me know if anything is wrong with the … | |
Ok got a new problem i've started to implement a GUI for my program but for some reason in the actionlistener metho i cannot pass the method i want to display.. I dont know what im doing wrong because i am not familiar with using GUIs... can somebody please help … | |
Does anyone know how to use JTAPI and JSAPI and how to configure thse two in the system also tell if we want to swith on our phone automatically from phone if any incoming come then what is the procedure does the motherboard have inbuild feature for this? | |
Ok i got this thing to compile now perfectly no errors, when i run it the menu comes up. The problem is when i use the option in the menu it gives me an exception error?? ne one know where i went wrong on this one.... what i did was … | |
Hello Everytime i compile this i keep getting an error on non-static method can not bu passed to static method, i understand that. But how can i get around this, without making the non-static method static , because it has variable relating to otha methods ... i also keep getting … | |
| Ok, I've been looking through some of the older threads and noticed some bad things regarding vectors. So what's the deal. Are they worth using in java or should I avoid them like the plague? And if I should, what should I be using instead? The same questions applies to … |
can any one help me with the code for the pop & push methods in the class that implement a Stack with two Queues | |
I need help working on my Java project. Any amount is welcome. The project needs to prompt the user for a file input (txt), file output, and five words to search through the input file. Each input needs to be equipped with try and catch code to prevent crashing. The … | |
Can you help me wlth the following work?: This sample program shows how to print the current month, now using the "Calendar" object (instead of the Date object which has been deprecated, meaning it has been slated for removal from the language). [code]// Program prints the current month import java.util.Calendar; … | |
Hi, I am getting 3 similar types of errors.its saying illegal start of expression in public void makedeposit<int deposit>,public void makewithdraw<int withdraw> and public void showbalance<int a, int balance>{} plz help. here is my code--- [code]public class bank { bank b; public class output{ public output outputobject=new output(); } public … | |
hello. Im having problems trying to get my jframe gui to work correctly i got the window all done fine but when i tell it to display somethis in the code , it comes up with errors when compiled. Can someone please tell me where im going wrong .. apreciate … | |
I'm working on a fairly basic program and can not seem to get it to work. I've checked my spelling and all that; the only thing I can think of is my main isn't able to find my class file. Here's the error message: ComplexDemo.java:10: cannot find symbol symbol : … | |
will like to know more about java programming language | |
Hi! Do we create two Queue classes:?: | |
Ok this is a homework program and this is my first JAVA course I am stuck on how to pass double values from one method to another I have a menu that appears with this code [code] public static int menu(int curmenuselection, double curitemprice) { while(curmenuselection != 5) { double … | |
hi to all... Plz i wnt a valuable code to append two text files in java i tried alot using WriteBuffered and FileOutputStream(file,true) but without any use i wrote the following code: import java.io.*; public class append{ public static void main(String[] args) throws IOException { FileInputStream Message_File=new FileInputStream ("C:/JBuilder4/lib/input6.txt"); BufferedReader … | |
i ve Q which ask me to write method called nodelevel(int k ) which returns how many nodes in level k.. and i write a code but i dont know what is wrong with it ??? [code]public nodelevel(int k){ if(root == null) return 0; else return getnodelevel(root, 1); } private … | |
hi, which one of these two would be better to design a file transfer protocol FileInputStream or FileReader? i know FileInputStream is meant to be for image type of files........ thanks | |
Hi to all i have requirment like this the field length is 15 digits but am getting input only 6 digits..means i have to put spaces after the 6 digits position menas spaces after the value.how to do it in java,could u send the sample programe because i dont know … | |
Can someone please help me convert the following code to C? I am just learning C and this is too overwhelming... the java code basically reads in a file (specifically for this program, a text file or whatnot for assembly language code), and the program is a pretty printer which … | |
Hi everyone, i am trying to use some java code to encrypt passwords entering a database on the system i am building, please could someone explain what the code below is doing and if it would be useful for encrypting passwords. Thanks [code]import java.util.StringTokenizer; public class Encryption { public static … | |
hi, would you say that multithreading is part of java's architecture? thanks | |
I have already working client-server messenger which is using threads. I can easily do plaintext username and password but I wish to use encryption on password. How can this be done? | |
Hi everybody Can you please explain me the weakpoints of c++ language? I think it is very difficult to create GUI in C++, isn't it? I also would like to know is there any method to combine C++ program and Java Program. | |
I am trying to get this program to return the index value of the number that is input by the user. It is currently returning whatever number the user inputs. [code] import java.lang.Math; import java.util.Scanner; class Arrays { public static void main (String [] args) { int A[]= {3, 1, … | |
I need help writing pacman with NGP for a school lab. I just started with java. I am NOT trying to have the project written for me, just need help getting started. There are two classes and an interface we need to use listed on the site below. The game … | |
I'm using a JEditorPane and StyledDocument, which automatically wraps text to the window. I cannot have this, I need the window to allow horizontal scrolling of the text. I've been all over yahoo and google and cannot find an answer on how to disable word wrapping. And before anyone tells … | |
I am having a problem with my browser. When I click on a link, a javescript error or void/null page appears. I downloaded pc onpoint, thinking that would help. It helped some, but not exactly what I was looking for. I am still getting these javascript error pages. If there's … | |
Hi all, this is ganesh,working on struts,like to clear my doubt in struts. My coding is : ActionErrors errors = new ActionErrors(); errors.add( ActionErrors.GLOBAL_ERROR,new ActionError("err.nodatafound")); saveErrors( request,errors); this coding is working fine but it shows waring named as "deprecation" ,letme know how to clear this,thanks in advance. hereby, ganesh. | |
Does anyone know how the compareTo() in TreeSet is implemented? I needed a sorted list of String elements and was going to use a binary chop method to find if a search key was in the list. Is this how the TreeSet does it already? Reason I'm asking is because … |
The End.