32,204 Topics

Member Avatar for
Member Avatar for angellove40

Hi,I am in TE comp Engg.We have got a project in ADBMS subject using Applet or Swing.we are using Jpanel.We had made admission form in which user will fill the form and data will be stored in Database.So to make the form look good we want to add image at …

Member Avatar for peter_budo
0
80
Member Avatar for java dummy

I am trying to say " if a number is divided by 2 and the modulus is equal to 1" if(count/2% == 1) or if(%(count/2) == 1) It's not working. What am I doing wrong? Would really appreciate help. Thanks.

Member Avatar for java dummy
0
89
Member Avatar for and12

I can't seem to control the size of the applet when it appears in the appletviewer and i assume that will be how it looks on the web. Right now, on the web, my applet is too big: [url]http://blogfriendlyzone.webs.com/WheelOfFortune/WheelOfFortune.html[/url] When i run it as application, it obeys setSize to make …

Member Avatar for llemes4011
0
96
Member Avatar for and12

I want to create a program where i can create data files, either in text, binary: data or objects. Once the data files are created by the user they can be used to view them in all modes. They should view existing data files in the current or sub directory …

Member Avatar for puneetkay
0
122
Member Avatar for fareast87

Hi, I am using a code to read a grayscale image and store the pixel value in a 1D array. But the code is taking a default image(though i am providing the complete path for the image to be loaded) and the height and the width are returned as -1. …

Member Avatar for fareast87
0
122
Member Avatar for java dummy

If I create a class to be used by an application how can I display some of the information from the class. I am using get and set for the information but as soon as I add the public static void line so I can have a display method everything …

Member Avatar for peter_budo
0
158
Member Avatar for sandeepgrandhi

Hi, I have downloaded jdk1.6.0.please tell me how to install it in my windows pc.

Member Avatar for stephen84s
0
124
Member Avatar for and12

I just noticed a bug in my game.[url]http://blogfriendlyzone.webs.com/WheelOfFortune/WheelOfFortune.html[/url] To start, scroll down and click start. Then i click on the Spin the Wheel for player 1. When the wheel stops spinning, it expects a character from the keyboard because i attached a listener to the panel. But if i click …

Member Avatar for and12
0
84
Member Avatar for LiBOC

Dear all, How would you best explain the below code fragment? [CODE]return (i == 0) ? strNum : strNum.substring(i);[/CODE] Thanks alot!

Member Avatar for MoZo1
0
101
Member Avatar for dazzyg

Hi, I need a bit of help with the java app I have. I am trying to have a tree structure that contains 2 different types of nodes..] a simple node called 'SimpleNode' - to hold a name and url strings and another node called TreeNode that act as folders …

Member Avatar for JamesCherrill
0
105
Member Avatar for docesam

i came across two high level programming languages :python and ruby. they are cross platform,just like java. they are very productive ( a programmer can write a program using python in less than quarter the time you need to write the same program in java). they have have -more or …

Member Avatar for tux4life
0
148
Member Avatar for ChiboSempai

I'm working with editing GCT code files. I've already been able to open them fine. They are just files with hex code. I've been able to open them the following way: [CODE]byteArray = getBytesFromFile(file); String inputString = byteArrayToString(byteArray);[/CODE] So now, after editing the string I made, I want to be …

Member Avatar for ChiboSempai
0
131
Member Avatar for llemes4011

Hello. I'm writing an RMI application for my semester project, and I'm getting a really frustrating error! I have the interface PlugNPlayIMPL that contains 5 or so abstract methods. One method (init) is called and it creates a new JPanel in the class that was bond to the registry. Here's …

Member Avatar for llemes4011
0
789
Member Avatar for philjava

Could you please help me with something I am trying to acheive. I am using Java 6 and Eclipse 3.5.0. I am new to programming generally and have created two java files. Driver loads the UserForm and will go on to control a number of other files eventually. UserForm is …

Member Avatar for philjava
1
145
Member Avatar for djdanjo82

Hello All, Thanks for viewing my thread. I am not very experienced as a programmer. However, I have been trying to figure out how to generate reports such as HTML reports on tests that were ran using JUnit. I do get feedback from Eclipse but I am pretty sure there …

Member Avatar for ~s.o.s~
0
190
Member Avatar for hkbk_mukeshnegi

Hey Guy's can anybody help me out on how spam filters works and how do i approach this to develop a software using java. Regards Mukesh

Member Avatar for freelancelote
0
30
Member Avatar for revatijadhav

test.c [code] #include<stdio.h> int main() { //System("cat test.c"); exit(0); return(0); } output: #include<stdio.h> int main() { //System("cat test.c"); exit(0); return(0); }[/code] when i compile & run this program in c then i want the same output in java program with it's compilation.. i think i hav to do some change …

Member Avatar for maks91
0
120
Member Avatar for latinajoyce

I am working on the following Java application Write a program that allows the user to enter the last names of five candidates in a local election and the votes received by each candidate. The program should then output each candidate’s name, the votes received by that candidate, and the …

Member Avatar for jakx12
0
158
Member Avatar for scias23

[B]EDIT: [/B] i mean "parsing number from a string?" sorry. what should i do to parse a number from a string? i tried this. [CODE=java] Double leap = Double.parseDouble(this.yyyy); [/CODE] but it gives me error. i want to keep the zero in front of the input. for example: 1. i …

Member Avatar for amitrail
0
113
Member Avatar for Durrah

Hi for everybody. :confused: I am nowadays trying to learn [B]JavaEE 5 [/B] so I get the pdf tutorial from Sun website but when I try to download the tutorial bundle examples, I've encountered a problem saying that I have no permissions to access the bundle. so my request is …

0
55
Member Avatar for Silvershaft

Hello, I've made registering system to my little test program, It works well until you try to create two accounts with same name, It shouldn't allow it but it still does it. I have tried to solve this problem all day now by trying diffrent methods but sadly nothing helped. …

Member Avatar for Silvershaft
0
125
Member Avatar for waffletaco

Ok soo i'm completely lost, i have taken java 1 and 2 in school but didn't learn a thing. Please help me with some quick and easy code . Using a boolean array with 10000 elements set to "true" write the following program in Java now. 1. Set an integer …

Member Avatar for llemes4011
0
104
Member Avatar for gcardonav

Hi everyone: I ahve this program to plot a graph using x and y coordinates. I cna plot the graph but I will also like to plot the x and y vlaues and name the xx and y coordinates. Anyone can help me ? Here is my code. [code] // …

Member Avatar for gcardonav
0
4K
Member Avatar for divya931987

In our code we have a table with check boxes in one column.How to retrieve selected rows values to the action class.

Member Avatar for jakx12
0
64
Member Avatar for gcardonav

Hi all, I am trying to learn my Java, and I am using my terminal in my mac to run my Java code. It compiles but when I run it I get the following error message: [CODE]-bash-3.00$ java Bifurcationlo Exception in thread "main" java.awt.HeadlessException: No X11 DISPLAY variable was set, …

Member Avatar for jakx12
0
139
Member Avatar for idgirl

I have my brackets all messed up and was wondering if someone could help me fix them. I am sure there are other errors too, so any advice would be greatly appreciated! :) [code] import java.util.*; import java.awt.Container; import java.awt.TextArea; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.IOException; import java.text.DecimalFormat; import java.text.NumberFormat; …

Member Avatar for VernonDozier
0
101
Member Avatar for java dummy

When I compile the program below I get the message "variable x may not have been initialized" yet as far as I see I did. I am trying to have a program where a person selects a number from 1 to 10 and it then shows the corresponding string from …

Member Avatar for cgeier
0
99
Member Avatar for Radhika.Gupta

hello!!!! i m a student of 3rd year.....and i want some mini projetcs in java..... so can u please help me........ from Radhika

Member Avatar for majestic0110
0
44
Member Avatar for loozax

can someone check my codes where my error was?! [code] import java.io.*; import java.util.Arrays; public class exer06_01{ public static void main(String [] argv)throws Exception{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String sh = " "; String str = new String(sh); System.out.print("Enter a string: "); str = br.readLine(); System.out.println("The reverse: "+ReverseString.reverseIt(str)); …

Member Avatar for amitrail
0
120
Member Avatar for Nitroxxerz

Hi there. I received an assignment to sort Strings alphabetically which a user inputs. So far I've been able to produce the first word that would be top in the sort, so if someones inputs ("All Big Cats"), the first would be All. Anyways that is where I am now …

Member Avatar for amitrail
0
163

The End.