32,204 Topics

Member Avatar for
Member Avatar for vijay_mca

i have created jar file when i am double click jar file i got error could not find main class program will exit i am setting jar properties file mycomputer->tools->folderoptions->filetypes->jdk->javaw i have created manifest file also i am using windows xp operating system can anybody tell wha t is the …

Member Avatar for kvprajapati
0
87
Member Avatar for gunjannigam

I want to draw a battery meter. For this I am painting my panel with Filled Rectangles using AWT Graphics class. Is it possible that I can add a tooltip so that whenver a mouse is pointed on the top of the rectangle a text is displayed(which will be the …

Member Avatar for gunjannigam
0
646
Member Avatar for nojtb

[CODE]import java.util.Scanner; class ReverseWord { public static void main(String args[]) { Scanner myScanner = new Scanner(System.in); char c1, c2, c3, c4; c1 = myScanner.findInLine(“.”).charAt(0); c2 = myScanner.findInLine(“.”).charAt(0); c3 = myScanner.findInLine(“.”).charAt(0); c4 = myScanner.findInLine(“.”).charAt(0); System.out.print(c4); System.out.print(c3); System.out.print(c2); System.out.print(c1); System.out.println(); } }[/CODE] the code above if you type stop in the windows …

Member Avatar for valy0017
0
268
Member Avatar for skiplatte

Hi, is there a way to read in a file to give a string which is passed to the method without reading line by line? I need to read in something like this... 1 MLRLPTVFRQ MRPVSRVLAP HLTRAYAKDV KFGADARALM LQGVDLLADA 51 VAVTMGPKGR TVIIEQSWGS PKVTKDGVTV AKSIDLKDKY KNIGAKLVQD 101 VANNTNEEAG DGTTTATVLA RSIAKEGFEK ISKGANPVEI …

Member Avatar for P00dle
0
76
Member Avatar for nola_Coder

Well, I just solved the problem I was having. A small and stupid error on my part. If there's a way to delete threads, let me know!

0
64
Member Avatar for hedwards09

Hi all, I have a test tomorrow morning and I'm stuck on this one question on my review and here it is: 1. Write a method that takes an integer n, and returns a String. Assume the integer n is an odd integer between 1 and 9. If the returned …

0
80
Member Avatar for kiranpvsr

Hi...I have created a browser using JAVA. But I cannot access any of the google or yahoo websites. I can access only a few select websites like cs.bham.ac.uk etc.... Can anyone tell me the reason and probably the solution as well..?

0
88
Member Avatar for hanntaa

hey guys, i was wondering if anyone could help, basicly at the moment (for the last few hours) iv been tring to find a way to align an container, to enable me to have my current work on one side (left or right) and a JTextArea on the other. the …

Member Avatar for kinger29
0
165
Member Avatar for johndoe444

HI, From the following code: [CODE] 1 import java.util.*; 2 3 public class t2 { 4 public static void main(String[] args) { 5 List aList = new ArrayList(); 6 7 aList.add("a"); 8 aList.add("b"); 9 aList.add("c"); 10 aList.add("d"); 11 12 List bList = new ArrayList(); 13 14 bList.add(aList.get(1)); 15 bList.add(aList.get(3)); 16 …

Member Avatar for Ezzaral
0
127
Member Avatar for kinger29

I have a java aplpet in eclipse. How do i get my java applet to load in an html web page. I put the .class file from the bin director in the same directory as my web page. I tried applet tag but it gives me an empty white box. …

Member Avatar for kinger29
0
473
Member Avatar for hedwards09

Dear all, I have a test tomorrow and I just wanted to double check on my answer for this review question. Write a method negativePositive that takes an array of integers, and returns an array that contains 3 integers. The first value in the returned array is the number of …

Member Avatar for hedwards09
0
95
Member Avatar for COKEDUDE

Can someone please explain what both of these mean and the good details about them. Please also explain the parameters of how to use it.

Member Avatar for llemes4011
0
455
Member Avatar for bruceaj

I have a GUI window with a JFrame. On this JFrame, I have a JPanel that completely covers the JFrame. I then have another JPanel within this first JPanel that contains a text box and 3 buttons. Within an event handler, I want to expand the JFrame and 2 JPanels …

Member Avatar for AndreiDMS
0
150
Member Avatar for bruceaj

When I start NetBeans I get a dialog with the following: [QUOTE][B]Cannot locate java installation in specified jdkhome: C:\Sun\SDK\jdk. Do you want to try the default version.[/[/B]QUOTE] I click Yes and everything seems to work ok. Now, I did have the SDK installed but didn't have any need for it, …

Member Avatar for bruceaj
0
169
Member Avatar for geek_till_itMHZ

I need to make multiple action listeners for 4 radio buttons and a regular button. They all need to call different methods from another class I currently have [CODE]Import javax.swing.*; import java.awt.*; import java.awt.event.*; public class CardGameCH15 extends JFrame { public CardGameCH15() { super("Card Game"); add(new CardTable()); } public static …

Member Avatar for geek_till_itMHZ
0
181
Member Avatar for sandeepani

I need to build a simple GIS or map view component for a larger system for my Final Year Project. But I have no prior experience in the field. Therefore I need to add this component as a additional feature only and with the least amount of effort and time. …

Member Avatar for Ezzaral
0
186
Member Avatar for Mehwish Shaikh

Well I was just wondering what should be the first step of making a project(school or professional). Ohkay we've conceived it all. But i just make a garbage of ideas. How to make them bit neat n clear. What shud be the steps, a developer should take before going for …

Member Avatar for Mehwish Shaikh
0
155
Member Avatar for iamthwee

Hello there, I need 2 learn binary search tree 4 my assinement in java but canot find anything useful. If anyone no of a useful link please tell me. Why is there no source code for deleting a node...that's all i ask how to delete a freaking node arg. :eek:

Member Avatar for kdc
0
181
Member Avatar for gibson.nathan

im working with a two class program. i have one for calculations and the other for the main method like so: [CODE] /** * Write a description of class CO2FromWaste here. * * @author (your name) * @version (a version number or a date) */ public class CO2FromWaste { private …

Member Avatar for AndreiDMS
0
329
Member Avatar for Sandar Khin

Hi all, Pls explain me about Timer and Thread.May I know the usage of Timer and Thread with examples if possible.I can't control these Class very well.Thank in advance.Pls help me.

Member Avatar for Sandar Khin
0
93
Member Avatar for P00dle

Hi guys 'n' gals Just need some advice - I am using a sorted map to store info that I read line by line from a text file. example of info: id product price 1 option_1 23 2 option_1 23 3 option_1 23 2 option_2 24 3 option_2 24 3 …

Member Avatar for P00dle
0
85
Member Avatar for P00dle

Hi all, and thanks for your help, in advance. I 'm stiing here with 2 choices, and I need help deciding which one to take. I want to take certain factors into account(i.e. efficiency, speed) I have values that I want to place into a SortedMap. I can do this …

0
140
Member Avatar for adcodingmaster

i m making chess in java swing and does not getting how to implement[B][I][U][COLOR="Red"] check & checkmate condition.[/COLOR][/U][/I][/B] any sugessions plz thnx in advance

Member Avatar for BestJewSinceJC
0
2K
Member Avatar for gotm

So we have to implement Bresenhams line drawing algorithm as well as Cohen-Sutherland line clipping algorithm. For some reason my whole program (9 classes, but only will include Line.java here) runs fine, but the output .xpm file contains a picture that is not what it's supposed to look like from …

0
88
Member Avatar for snehula

Hi :-) Yeah I'm new to this whole thing, that's why I'm probably going to ask a lot of stupid questions, I apologize in advance.. The story is: I'm writing a program to enter a string and a search character and output the number of times this character occured in …

Member Avatar for quuba
0
132
Member Avatar for hedwards09

Hello, I am an online student in an intro to Java programming course and am a little stuck on my current program. The program is supposed to prompt for the name of files until the user enters "stop" to quit and includes the following methods in addition to the main …

Member Avatar for brownjohn
0
120
Member Avatar for ulxlx

I've made pong and was wondering how I could embed it (it was made in java). I'm new to java so if you could explain it, that would be helpful, but if you can't that's ok. Thanks in advance :icon_mrgreen:.

Member Avatar for ulxlx
0
176
Member Avatar for xfriendsonfirex

I'm rather new to Java, and I can't quite figure out what to do with this program. Any help or suggestions would be greatly appreciated. Thanks in advance. File Account.java (see previous exercise) contains a definition for a simple bank account class with methods to withdraw, deposit, get the balance …

Member Avatar for xfriendsonfirex
1
825
Member Avatar for luxxnatura

Hi all, I'm supposed to write a small program that asks the user for a number of a month( 1= Jan, 2=Feb, etc) and then outputs the month name and the month number. If the number entered is invalid (for example, > 12 or equal 0), then the user receives …

Member Avatar for luxxnatura
0
89
Member Avatar for tootaa

please any help with this homework IMPORTANT: Use Techniques Learned in Chapeters 1 – 5 only Problem # 1 (Points): Write a JPanel class named OlympicsLogo which displays the Olympics logo as shown. The OlympicsLogo has one instant variable – diameter (type int). The diameter value must be an even …

Member Avatar for masijade
0
145

The End.