32,204 Topics

Member Avatar for
Member Avatar for trace63b

I have a few minor problems with this program: 1. My selectionSort method - it sorted Z - A, not A - Z. 2. Since I used a string array, I'm running into problems with "operator > cannot be applied" and "incompatible types". 3. Return "search term not found" in …

Member Avatar for trace63b
0
185
Member Avatar for Laidler

i have an array which fills with objects in my code after i press a certain button in my GUI I have another button which when i press should remove all of these objects from the array. however i cannot find a way to do this. can anyone help me …

Member Avatar for BestJewSinceJC
0
78
Member Avatar for ahoest

Hey all! I use the folowing class in my program to draw lines. However I also need to be able to delete them. So I need to add a mouselistener to the lines but I don't know how and whereto do this.. Can anybody help me with this? Thanks!! [code] …

Member Avatar for ahoest
0
4K
Member Avatar for KirkPatrick

I am reading a .Csv file and am having problems trying to get the information I want, set up the way I want. Here is where my problem comes in: [code] String[] info = beanInfo.split("," , 3); for (String str : info) { ip = info[0]; hostname = info[1]; ping …

Member Avatar for KirkPatrick
0
157
Member Avatar for asian_al

I cant get the program to drawy the triangle properly. Can some help me with the draw the polgygon triangle? [CODE]/* Alex Bruso (student 2) + Tim Mumford (student 1) Hw Shape Group Exercise This program will create an applet which will draw shapes. The input from the user will …

0
57
Member Avatar for tomo_uni

I have a 3,3 GridLayout and the grid is filled with labels, but say i wanted to replace one of the label with a picture when i click a button how would I go about doing that? Tom

Member Avatar for BestJewSinceJC
0
76
Member Avatar for Ko Thu
Member Avatar for BestJewSinceJC
0
51
Member Avatar for utado

am looking for information about development as outsourced software programming i live in Africa Kenya and i have expertise in Java programming looking forward to exchanging info with anyone . about legality and how sourcing is done thanks.

0
49
Member Avatar for Laidler

i am trying to code a toString() method which returns the string "Power: ON" if the power variable is equal to true and "Power: Off" if the power variable is equal to false (the power variable is the boolean type). However i dont know how to do this as the …

Member Avatar for BestJewSinceJC
0
1K
Member Avatar for grisha83
Member Avatar for BestJewSinceJC
0
95
Member Avatar for sammo5889

Hi guys this is for an assignment, its the last part and its not working:sad: heres the instructions i've been given: All SpaceObjects float through "Space", so we will need to also define a Space class. That is the goal of this task. Similarly to task 1, each attribute, constructor …

Member Avatar for JamesCherrill
0
121
Member Avatar for aktor

I have java database application. I have login form using JDialogForm and I have Main program. The problem is I want to call JDialogForm when I run my main program and if the DialogForm is closed, I want my main program Appear. I have try it, but failed..... can you …

Member Avatar for peter_budo
0
130
Member Avatar for kbullard516

Hello, i have to design and implement an application that helps a museum analyze the flow of visitors for an exhibition that lasts for 3 weeks.(The museum is opened 7 days a week for 4 hours)...well getting to the point. I need to store this information in a 3d array …

Member Avatar for kbullard516
0
87
Member Avatar for sivak

using javascript in c# only for validations..i want to learn javascript in c# ..is there any website or material ...i dont want to read it fully..mainly used function in c# is enough..plz guide me

Member Avatar for serkan sendur
0
85
Member Avatar for weblover

hi all ..i need help plz ...where can i find a java code(not Javascript) for an image slide show ...made in GUI ...if someone knows ..plz help ..and thnx in advance

Member Avatar for verruckt24
0
1K
Member Avatar for sriradha

hi all, Can anyone tell me a real time example for inner classes?

Member Avatar for BestJewSinceJC
0
91
Member Avatar for smoore

Okay so I have an ellipse and I could like to have a "racecar" (actually just a 10x10 rectangle) follow the ellipse around the edge. The point that is always touching the ellipse is the upper left hand corner of the "racecar." I'm not even sure where to begin writing …

Member Avatar for neilcoffey
0
132
Member Avatar for llemes4011

Hi. I have a predicament... I'm trying to make a JComponent that looks like this: _____________________ | | |Option Name [Text Field] | |____________________| It's for a Option screen that I asked about earlier (I got that part working fine). But now, I need a component that has the option …

Member Avatar for BestJewSinceJC
0
390
Member Avatar for Arlenx

Hi, First of all I apologize if its the wrong forum, hope its not =) I am trying to create a java prog for my cellphone to calculate my received/dialed call timers. The phone stores 40 entries of received/dialed calls, and my plan is unlimited after 7 + weekends, so …

0
46
Member Avatar for dranoel23

Well, i have a problem with the snake in my problem... if it runs into the body it dies. But, if I press, for example, up when i am going down, it loses. How do i keep my self from doing that? Here is the code for the movement: [code]public …

Member Avatar for llemes4011
0
151
Member Avatar for Laidler

im having a problem getting an abstract method to work, heres the code [CODE] abstract ImageIcon getPicture(); { return picture; } [/CODE] When i compile the code i get the following error: Appliance.java:30: return outside method return picture; Can anyone help me fix this?

Member Avatar for BestJewSinceJC
0
196
Member Avatar for dranoel23

I am having trouble creating the snake, let alone making the animation. I need someone to assist me in creating such things, as well as helping me complete the program. Thanks [code]import javax.swing.*; import java.awt.*; import java.awt.event.*; /** * @(#)SnakeGame.java * * * @author * @version 1.00 2009/4/30 */ public …

Member Avatar for dranoel23
0
428
Member Avatar for llemes4011

Hi, I'm trying to make an Options screen for the game that I'm writing. I know how I want it to look, but I don't know how to add Tabs, or move the buttons that control the options around... Below is a link to a picture of what i want …

Member Avatar for llemes4011
0
89
Member Avatar for Zibo

Hello! I'm searching and searching and can't find a solution... In my project I've got a folder 'Images' where from my application loads icons etc. Running project from IDE (NetBeans) it's of course working fine, but I want to create stand-alone application, so I create .jar file. And here's a …

Member Avatar for BestJewSinceJC
0
177
Member Avatar for peedi

I am working on this lotto project which generates 6 random numbers in which are put into an array. How do i put it in an array where the numbers don't repeat?

Member Avatar for BestJewSinceJC
0
5K
Member Avatar for gubju

Hey, for our project purpose we had to collborate java with vb using JNI.because in our project there is a idle checking procedure for the client from server which cannot be done with java.... can anyone help us with java code or JNI code....

Member Avatar for kvprajapati
0
71
Member Avatar for grisha83

Hello, I have a program called Date. While this program compiles and runs, I have noticed something weird. I have an output line that displays my values twice. Sample Run: The word date output is: February 12 2009 [B]The numeric output of the date is: 2/12/2009 The next incremented date …

Member Avatar for grisha83
0
120
Member Avatar for Rastabot

I have to write a program the accepts a fully parenthesized like "((3*4)+(2-(4/2)))", or (3+5). It builds a tree for the expression, without the parentheses. So the tree for the (3+5) would be - "+" is the root, and the 3 is the left node and the 5 is the …

Member Avatar for sillyboy
0
136
Member Avatar for AMetnik

Ok, i have read alot about this bugs now, and nothing seems to help. Hope someone have a step by step solution for me, or atleast can give me some more insight hehe ;) Here is a few intel on my work. Im working in netbeans on my labtop, uploading …

Member Avatar for peter_budo
0
601
Member Avatar for grisha83

I have two methods. One method was to set location of 2 points x and y. Another method was to copy that location. I used arrays. Well the program compiles but it doesn't display my values properly. Error message says: [D@af9e22. Does anyone know what this is? Thank you // …

Member Avatar for grisha83
0
75

The End.