32,204 Topics
| |
Hi, I've got a problem with my project. When I initialize an arraylist, the content is displayed and you can go through the arraylist by correctly answering the given word. But when I load a new arraylist from a file, the old arraylist is removed and the new one is … | |
Hi, I'm making a scoreboard for a simple word-game. The easiest way for this seems to be a JTable. I need both column headers and row headers, I believe this is achievable in JTable? For each game, the column headers should represent a random selection of predetermined categories, and the … | |
I am aware of the MouseInfo.getPointerInfo() method, but you can only get the mouse location using this. However, I also want to know the buttons pressed (specifically just the BUTTON1_DOWN_MASK), without any events. This is because the program will ask the user to create a rectangle by dragging the mouse … | |
Seriously need help here how can i wrte a program that read character only? i mean alphabert like people key in "i +am+ 12567 a",;. boy," and the program only read iamaboy is there another way other than lowercase the string and then compare a-z? | |
I successfully compile the code through cmd, however when i run it, when i enter my password with anything(which fulfill the first condition (6-20))it will show error. The question is to write a program that let user to create a password which is valid (more than 6 letters, must have … | |
I have a serious problem here! i understand that the switch is wrong(the Str class should be fine). I wonder what datatype should it be? and if "char" how i am going to key in int value and how to use scanner on it ? The display menu is fix. … | |
Hi All, I have a JAR file that contains a .dll file. But during an ant build a ZIP Error is thrown [CODE]error reading D:\COE\Libraries\client\WSQUtil-1.0.jar; error in opening zip file[/CODE] Is there a way to overcome this ? The jar looks fine(opens in winzip) and eclipse build path also references … | |
Hay everyone I want to learn(I need to learn java) java very fast. I have some knowledge of java but not the fundamentals like in html css php or sql and mysql. I know that the structure of a program in java starts with the imports than if you have … | |
plz help me... which file contains an applet that is to be run inside a browser? and is rmi is one language dependent architecture?[code]which file contains an applet that is to be run inside a browser[/code] | |
I am using jcalendar... I want to bind it with a textfield, i am using button to display this calendar , but i want to display it below the date text field, any suggestions??? | |
Is it worth going out and using a program like JCreator or something like that compared to good-old notepad? They all should compile the same code, no? Ian | |
my codes occur some problem inside.whn i answered 'N' to the last question(DO YOU WISH TO CONTINUE?(Y/N)), the program will repeat run again, but i cnt enter student name!anyone can help me solve the problem>? [CODE] import java.util.Scanner; public class homewok{ public static void main(String args[]){ Scanner xx = new … | |
Hi, I've just learned that Java's 'protected' access specifier has a different effect than that in C++. So is there a way to make a member of a base class visible to its inheritors but not globally? Dean | |
Hi, I don't know anything about generics interface in java but I would like to make threads with name qorker (qorker<Someqork> qorker = new Someqorkqorker<Someqork>()) which has three states INIT, WORKING and END. And I want this thread to call a web service like [URL="http://www.w3schools.com/webservices/tempconvert.asmx"]Web Service/tempconvert.asmx[/URL] I don't know where … | |
Hi I am doing java project for Image Hiding.Basically I am vc++ programme I have habit of making Dailog using visual studio where i can put button anywhere i want using mouse,but while i am trying same thing using java(using eclipse) it is not easy to move button,can u help … | |
I am trying to use a Weka method, crossValidateModel, which is posted in the last. It looks like that the fifth parameter is referred to as varargs parameter. I tried the example usage given in Weka page, such as [CODE]eval.crossValidateModel(cls, data, folds, rand);[/CODE] It works just fine on one system,(eclipse+Ubuntu); … | |
Hi! I'm writing a unit test where arbitrary objects have to be created without knowing anything about the objects (with some exceptions). I use reflection to create objects and set their fields to random values etc... I'm almost there but I've come to an issue I can't find a solution … | |
Hi Friends, How to create properties files for russian launguage in swing application, is ther any code format? kindly help me in this problem. | |
Classes Like Threads,Streams,Runtime and some of awt not serializable. Please tell me the Reason. This is asked in my interview. I said, classes which have native code will not be serializable. Is it correct? Please give detail note. | |
hi how can i disable the close button on IE using JAVASCRIPT??? any code for doing this?? | |
Actually I'm trying to open serial port to send logging data in j2me. When I connect my phone via usb cable to pc my code works correctly. But when I start app without usb cable connecting to phone it is hanging up. [CODE]private static void sendToSerial(String msg) { try { … | |
I have test midlet which requests my location via JSR-179 Location API. I use Nokia 6275i. Its java: MIDP-2.0, GPS enabled (I see blue icon on top of my mobile device) When I run this app I got the following error: "java.lang.securityexception: Positioning Log denied Location access." Google do not … | |
| I have problem formating this code to displey 2 decimal points [CODE] public String toString() { return super.toString() + "\n\tYear Level:\t" + getYearLevel() + "\n\tTuition:\t$" + "%1$.2f",calcTuition(); } [/CODE] calcTuition is type double how can I do this? Thanks |
Hi, I wrote the following Java Program. When I enter Arabic Course name, it displays non Arabic characters. Can you help me to read and write Arabic Character. Thanks. [code]package p91; import java.util.Scanner; class GradeBook { public void displayMessage(String courseName) { System.out.printf("Wellcome to the Grade Book Dr. Sherif! for \n%s!\n", … | |
I'm looking for some sort of collaboration software/tool where several developers can work on the same project, and edit the same files at the same time without conflict. Does anyone know of any? :icon_cheesygrin: | |
hi there, i want to make an application in which that if we select a shape to be drawn and the we draged the mouse in the panel aseries of the sames shape will be drawn my prog in the other hand draw the shape and if i drage the … | |
Hi all! I am developing a java-game where you are building with balls. It will connect to a server to create a huge map available for everybody playing this game.:) For this, I need a PHP-file who will append some urldata into the file data.txt, for adding a ball into … | |
I have been asked to design a method splitMid that can be added to the LinkedList<E> class. This method should have the following header: public void splitMid(LinkedList<E> sublist) and should split the given list into two sub-lists of (almost) equal sizes. Suppose myList points to the with elements 34,65,27,89 and … | |
Which two code fragments correctly create and initialize a static array of int elements? (Choose two.) A. static final int[] a = { 100,200 }; B. static final int[] a; static { a=new int[2]; a[0]=100; a[1]=200; } C. static final int[] a = new int[2]{ 100,200 }; D. static final … | |
Okay, so I've been working on this Inventory Program non-stop all day long. I've made massive changes to it several times and feel like I'm banging my head against the wall. And finally, I managed to make it do everything I need it to do like cycle through an inventory … |
The End.