32,199 Topics

Member Avatar for
Member Avatar for Nollyvenon

How do i recode a china phone to show customize features like startup images, animations and sounds. this is my midlet code for image [code]//MIDlet-Name: startupScreen //MIDlet-Version: 1.0 //MIDlet-Vendor: MyCompany //MIDlet-Jar-URL: StartupScreen.jar //MIDlet-1: startupScreen, startupScreen //MicroEdition-Configuration: CLDC-1.0 //MicroEdition-Profile: MIDP-1.0 //MIDlet-JAR-SIZE: 100 import javax.microedition.midlet.*; import javax.microedition.lcdui.*; public class startupScreen extends MIDlet …

0
64
Member Avatar for freelancelote

Hi, I'm trying to print a string on the center of a window using GridBagLayout. All I see printed is a part of the string I expect (the current month) instead of the whole string. I don't seem to be able to spot where the error is and I'd appreciate …

Member Avatar for freelancelote
0
205
Member Avatar for harshadap

how can i make os independent .exe file in java. I am using netbeans IDE for developing java project

Member Avatar for stephen84s
0
86
Member Avatar for jay1992
Member Avatar for masijade
0
231
Member Avatar for amitabhpandey

plz tell me that how we can call one frame window from another frame window

Member Avatar for masijade
0
107
Member Avatar for jrosh

When i run a java file through comand prompt it says.. "Unsupported class exception error"...Bad version number in .class file. (compilation is ok. this happens @ runtime) i checked the versions of jdk & jre . Both are same which is 1.6.0_01. When i compile and run the same code …

Member Avatar for peter_budo
0
105
Member Avatar for rajuchacha007

HI all, I would like to know about Network data mover used for Java APIs. Please do let me know where I can collect technical quality information about it? Thank you very much. Regards.

Member Avatar for masijade
0
496
Member Avatar for Little Bunny

Hello All. Can someone tell me how I can set the first day of the year in the Java Calender? For example, if the first day of the year was 16th September 2007, then that would be week 1. so the 24th september 2007 would lie in second week,so on …

Member Avatar for masijade
0
64
Member Avatar for T'Scoopz

Hello! So, I created my own Arraylist class called myArrayList. I need to read a file that contains strings (which are just short phrases) into myArrayList. I created a class called Phrase that are to be the objects that will be stored into the Arraylist. I also have a class …

Member Avatar for sneaker
0
82
Member Avatar for Abibina

I m creating the page which contains username n password.. I dont know how to store the username n password in a file n to display an error message if the username or password is wrong .. how to do this.. ll anyone explain me using a simple program..?

Member Avatar for javaAddict
0
112
Member Avatar for hery

Hello, all I want to question for all. How to i make script like monitoring real time market data using Java, ex: [url]http://www.rabotransact.com/wps/portal/rtwpub[/url]. Can you help me??? Thank's

0
66
Member Avatar for dewyShaikh

hi, m doing a project on java using matlab......but i dont know the connectivity between them........... can u plz tell me....... thx.

Member Avatar for masijade
0
179
Member Avatar for harshadap

I am developing sudoku. Random numbers are generating but i want to place rthem into particular fields. here is my code [code= java] package sudoku; import java.awt.Color; import java.awt.Dimension; import java.awt.Font; import java.awt.GridLayout; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import java.util.Random; import javax.swing.BorderFactory; import javax.swing.JComponent; import javax.swing.JPanel; import javax.swing.JTextArea; import javax.swing.JTextField; import …

0
45
Member Avatar for nicolek808

hi :) This program requires me to read user input from the commandline (a int and a string) and use recursion to print out the the first letter of the string x times based on the int user input: I have this so far, but it seems print out just …

Member Avatar for VernonDozier
0
141
Member Avatar for javanub123

i started learning java yesterday and its my first programming language to learn. ive covered most of the basics and such but im stuck at one thing i have a program written that asks for a password i want it to compare the user input to the actual password using …

Member Avatar for javanub123
0
95
Member Avatar for herms14

guys..I'm in my senior year and I need to make a senior project by next semester. I'm planning to make a mobile application that will send the data to a computer and store it in a database and finally output it in a webpage or something. the problem is I …

Member Avatar for hansal
0
172
Member Avatar for droeph

Hello, I am new to the forum and to Java have no programming experience. try to write a program that enters a year and month as integers and displays the number of days in the month. here is what I have written any help would be much appericated. import java.util.Scanner; …

Member Avatar for javaAddict
0
165
Member Avatar for alsoumhi

Hi all, I am having a problem in JSP, it is very simple. I have a java class and a JSP program, my JSP program will call the a method of java program in order to work as one complete application .however, I got an error says undetermined method. Based …

Member Avatar for ~s.o.s~
0
58
Member Avatar for karen.tao

When I enter a string that it not in the list, I get this error in my enum CrimeType class: IllegalArgumentException, no enum const class CrimeType.a(in java.lang.Enum [code] public void enterCrime() { Crimes crimes = new Crimes(); System.out.print("\t\tEnter crime: "); crimeName = In.nextLine(); if("murder".equals(crimeName) || "arson".equals(crimeName) || "assault".equals(crimeName)) { crimes.daysToStay(3); …

Member Avatar for masijade
0
272
Member Avatar for anu_anu

Hi All, I am using jdk1.6, tomcat 5.5 and eclipse 3.3. While starting tomcat from eclipse i am getting an error as "Could not find main class.Program will exit". Please suggest. Thanks, Anu

Member Avatar for Salem
0
83
Member Avatar for heels

Hi, I am facing problem with my coding but can't seems to find the problem with it. Can someone guide me? [code] //for loop for (line=1; line <=height; line++) { for(col=1; col <=line; col++) { if (line%2 !=0)// odd line { if (col%2 != 0)//odd line,odd col System.out.print(A); else //(col%2 …

Member Avatar for heels
0
219
Member Avatar for topest1

Hello, I am beginner in Java we are going to develop a chat application But I don't know how to implement the network connectivity..././../ :confused: I googled, and I came to know something like Socket Programming.... Actually I don't know how the chat application works I want to store the …

0
85
Member Avatar for shikharana

Hi. I'm having alot of trouble completing this part of my assignment. can u please help me with it the ques is : Implement the following buttons: Rect, Oval, Image, Colour, and Clear. You do not need to have the Text button or its associated textField. Your Rect, Oval, and …

0
31
Member Avatar for masana1844
Member Avatar for masijade
0
43
Member Avatar for fareast87

Hi everyone! I'm developing some kind of program of handling an images and someone suggesting to me to use PixelGrabber class. I try to use it but I don't know what its return value. Is it some kind of integer value on pixel number 1 or any idea? And where …

Member Avatar for fareast87
0
99
Member Avatar for feartrich

This supposed to return the user's BMI. But the output is always 0. Why is that? [code=java] import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.text.DecimalFormat; public class bmi extends JApplet implements ActionListener { JTextField inputLbs, inputInches, displayBmi; public void init() { JLabel labelLbs = new JLabel("Weight (lbs):", SwingConstants.RIGHT); inputLbs = …

Member Avatar for VernonDozier
0
91
Member Avatar for runee1000

Hi: I'm trying to solve a question as it states: "Create a program which determines if a given number a is a common divisor of two other numbers num1 and num2." I am 100% beginner to Java and just started a couple days ago, so most terms discussed feel quite …

Member Avatar for akulkarni
0
139
Member Avatar for project_java

Hi All, I teach java to 2nd year students who are doing a very basic module on GUI and applets, without any animation etc. I need to give the class an individual mini project. Please could people suggest possible project ideas for a 2nd year CS. The syllabus does not …

Member Avatar for llemes4011
0
83
Member Avatar for Krstevski

Hey people... I have one problem... Find how many total cubes are there in the range from A to B, inclusive. An integer Y is total cube if it can be expressed as: Y = X*X*X, where X is also integer. The first total cubes are: 1, 8, 27, 64 …

Member Avatar for Krstevski
0
98
Member Avatar for Bloubul

I am trying to write a code for the following: Write a Swing program that declares an empty array of grades with a maximum of 50. Implement a JOptionPane input box within a while loop to allow the user to enter the grades using a -1 as a sentinel value. …

Member Avatar for quuba
0
129

The End.