32,199 Topics

Member Avatar for
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
427
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
Member Avatar for tomo_uni

Television(boolean power, int channel, int volume); Keep getting error "missing method body or declare abstract" Can't understand why? Help please :) If you need to see all code ask TOM

Member Avatar for BestJewSinceJC
0
103
Member Avatar for mhodgkins

...and it's due by midnight tonight. But I've mad a huge effort. Can I get any help? I'm trying to stay alive in this class. :'( File attached.

Member Avatar for BestJewSinceJC
0
131
Member Avatar for Kamal_Java

Hi I am new to java and need help . Whats the C++ map equivalent in Java. In C++ i can use map for three purposes like i) Sorting while insertion into it ( efficient ) ii) Key ,value iii and for storing unique item. I came to know there …

Member Avatar for Ezzaral
0
134
Member Avatar for Seamus McCarthy

[CODE] public void deleteDvd(String title) { String DvdCompare; Dvd dvdObj; Collections.sort(dvds); for(int i = 0;i< dvds.size();i++) { DvdCompare = dvds.get(i).getdvdTitle(); dvdObj = dvds.get(i); if(title.equals(DvdCompare)) { System.out.println("Dvd is in system"); int index =Collections.binarySearch(dvds,DvdCompare); dvds.remove(index); //delete method in arrayList } else if (!title.equals(DvdCompare)) { System.out.println("Not found Dvd Object"); } } }[/CODE] I'm …

Member Avatar for Seamus McCarthy
0
185
Member Avatar for mostafanageeb

Please how to get a specified data from a file?? in java and what is the substitution of the seek function in java??? I need information Thanks

Member Avatar for kvprajapati
0
88

The End.