32,204 Topics

Member Avatar for
Member Avatar for gordonrehling

[QUOTE=varunnanda;1173601]Thanks you very much, I am oblized.[/QUOTE] I'm very new to Grails, so hopefully this isn't blind leading blind! Below is the environment entries from my datasource.groovy dev works ok against memorydb prod works ok against MySQL running on a server with the noted IP address However, I can't get …

Member Avatar for gordonrehling
-1
222
Member Avatar for spartanace

This is my overloaded Jpanel i want to pass the event of the buttons, so that i can change the text in the jLabel in my main class listed below. [CODE]import java.util.Scanner; import java.awt.*; import javax.swing.*; import java.awt.event.*; public class Keypad extends JPanel{ private JButton b1,b2,b3,b4,b5,b6,b7,b8,b9,b10,b11,b12; public Keypad() { setLayout(new …

Member Avatar for javaAddict
0
3K
Member Avatar for SHARKASI

I'VE A PROJECT AND I'M JUST START LEARNING JAVA SO I NEED HELP . HOW SHOULD I START WITH THIS PROJECT ............????? Design and code a Java application to store and manage the rates of some currencies of interest and to perform conversions between them. The application should have a …

Member Avatar for stultuske
0
170
Member Avatar for Memo..~

hi everyone.. I have this assignment that I should sort whatever I enter in ascending order of the variable a .. I want to know what is wrong with this Thank you all in advance.. [CODE]public void addRecord() { Scanner abc=new Scanner(System.in); System.out.println("Enter the file number "); int a=abc.nextInt(); System.out.println("Enter …

Member Avatar for s_sridhar
0
108
Member Avatar for sajithdil

hey guys i want to know is it possible to take a 3ds max 3d model and show it in a java file?? if so could i have some pointers in the right direction?? thanks a lot its much appreciated!!!

Member Avatar for sajithdil
0
266
Member Avatar for mitch9654

My custom button thing isn't clickable. I don't know why! (obviously :P) I DO have an action listener This make a button that looks like a cross. The input is: [code] "name", g, 0, 0, 100, 100 [/code] It looks like this: [url]http://mitch9654.zymichost.com/Java/index.html[/url] [code]package Buttons; import java.awt.*; /** * * …

Member Avatar for mitch9654
0
130
Member Avatar for DeadSoul

Hello friends i have spend a week to make a notepad.But i have one error in it i dont know where i am wrong . i am not able to add JFileChooser in my notepad i have JFileChooser in my code but its not working properly that's why i have …

Member Avatar for leiger
0
161
Member Avatar for memo1

pleas help [CODE]public double getInvoiceAmuont(int q,double pric){ System.out.println("ente the quantity and the peice" ); q=in.nextInt(); pric=in.nextDouble(); if (q<0) return 0; if (pric<0) return 0; return q*pric; }[/CODE] is this answer correct for this question : {{ -Provide a method named getInvoiceAmuont that calculates the invoice amount (i.e., multiplies the quantity …

Member Avatar for leiger
0
76
Member Avatar for b89smith

I have written two different classes that are in two different files one is LoadData.java and the other is csvReader.java both are in the same folder. In the class LoadData I try to use a public function in csvReader by calling csvReader.getData(), when I compile LoadData, which is after I …

Member Avatar for leiger
0
135
Member Avatar for Cerberus

Sorry if this has been asked before. I have a jframe with a textcomponent in it and a menu with an exit option. When you select the exit option a funciton is called that checks whether a change has been made to the document and the user can select to …

Member Avatar for leiger
0
611
Member Avatar for z3r0acidk

Hey all, I need help with this. I have a .txt file, called "littlefile.txt", inside that .txt there is text of course and my java program is supposed to read that text (as a String), and find a word like ... "hello", ... that's ok, but the java program must …

Member Avatar for z3r0acidk
0
151
Member Avatar for ShunT

Hello, a few months ago I started not being able to view javascript. Google ads, chats, javascript popups, chats ect. I use Mozilla firefox but I have the same prob on IE (Yes javascript is enabled on both). I use XP and run Nortions Internet Sec 2005 although I have …

Member Avatar for imnotmyself
0
455
Member Avatar for stevebush

Hi, I am working on assignments that deal with Generics in java. I have a class Movie that have a String name variable. However I have to add a few more properties to Movie objects like Release year and Director name. So I created an Inventory class that uses the …

Member Avatar for JamesCherrill
0
104
Member Avatar for opera

Can I apply JSP and J2ee technology for Social Network developing I am novic in web programming and My thesis title is social networking ! Please reply and advice me how should I do? I have little experiences in J2EE and MySQl looking forward to your reply!! Opera, Mandalay Technological …

Member Avatar for s_sridhar
0
97
Member Avatar for lwschjang

Anybody know of any good tutorials for customizing the appearance of Java GUI's and applets. Specifically, I'd like to design the layout of the GUI or applet in Photoshop. Thank you for your time and help.

Member Avatar for DeadSoul
0
149
Member Avatar for bigmouthmonster

Write a program that asks the user for the name of an input text file. The text file (which could be created with NotePad) will contain integers in character format, one per line, such as follows. 12 1023 -56 84781 0 -9371 The program also asks for the name of …

Member Avatar for jwenting
0
110
Member Avatar for iRemember

I'm trying to create a blackjack program for school. No matter what I've been doing, this keeps coming with errors. My teacher says theres some logic errors, and i don't understand it. [code] import java.util.Scanner; import java.util.Random; public class BlackJack { public static void YesNo(){ Scanner input = new Scanner(System.in); …

Member Avatar for jwenting
0
97
Member Avatar for stephbebalinda

Estoy haciendo un programa en java donde el usuario puede jugar torres de hanoi o resolverlo solo, pero cuando hago q se resuelve solo me tira d una vz la solucion enontonces e intentado cn timers y sleeps para q pare redibuje y asi se mire paso a paso pero …

Member Avatar for stephbebalinda
0
138
Member Avatar for momill06

[CODE]import java.util.Scanner; public class THREE{ public static void main(String args []) { Scanner in = new Scanner( System.in); String symbol; double averagePrice; double stockPrice; int sum = 0; int count = 0; final int FLAG = -999; char options; do { System.out.println("Please chose from one of the following menu options: …

Member Avatar for finito
0
97
Member Avatar for hodna1

Python functions. 1. Given a list of words, return an array which indicates the frequency that each letter occurs. For example, in the list ["apple", "bob"], [ 'a' -> 1, 'b'->2, 'e'->1, 'l'->1, 'o'->, 'p'->2] . The order of the array does not matter and a Frequency class will be …

Member Avatar for jwenting
-1
97
Member Avatar for levraheit

the program asks the user to input the number of users who wants to play. i couldn't get the result of players.length individually. each players result should be number of correct answers from the number of questions asked. please help!. [CODE]import java.text.DecimalFormat; import java.util.Random; import javax.swing.*; public class coll { …

Member Avatar for levraheit
0
103
Member Avatar for tyson.crouch

G'day, I've got rather a simple problem to deal with though i'm personally having some trouble. I've recently fixed up some of my database queries so that i use a view to get the data that i need. My view gets the following info: [LIST] [*]Attraction Name [*]Package ID [*]Package …

Member Avatar for tyson.crouch
0
285
Member Avatar for aleesya88

code [code] import java.awt.*; import javax.swing.*; import java.awt.geom.*; public class QuestionA extends JApplet { public void init() { PanelLukis panel = new PanelLukis(this); getContentPane().add(panel); } } class PanelLukis extends JPanel { private int x_axis, y_axis; private int squareWidth, squareHeight; private int x, y, coordinateX, coordinateY, squareNo; JApplet app; public PanelLukis(JApplet …

Member Avatar for aleesya88
0
151
Member Avatar for Fazle

I am being tasked to record TCP data and play them back with same speed. I am able to record tcp data but struglling to playback with same speed. If someone can help will be greatly appreciated. My codes below are reading TCP data and writing them in minute files …

0
39
Member Avatar for pink_872

Hello everyone, I am trying to build this simple chat program that consist of two classes. One is Server class and the other one is Clint class, but I have this problem with it. It does send and receive strings, but after the the second received string it does stop. …

Member Avatar for s_sridhar
0
166
Member Avatar for haseena04

import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.util.*; import java.io.*; import java.text.*; import java.util.regex.*; import java.io.FileNotFoundException; import java.io.IOException; import java.io.RandomAccessFile; class Clustering1 { public static void main(String[] args) throws IOException, FileNotFoundException { int diff_matrix[][] = new int[500][500]; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); System.out.println("Enter the data file name\n"); String fname=br.readLine(); …

Member Avatar for javaAddict
-1
159
Member Avatar for haseena04

import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.util.*; import java.io.*; import java.text.*; import java.util.regex.*; import java.io.FileNotFoundException; import java.io.IOException; import java.io.RandomAccessFile; class Clustering1 { public static void main(String[] args) throws IOException, FileNotFoundException { int diff_matrix[][] = new int[500][500]; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); System.out.println("Enter the data file name\n"); String fname=br.readLine(); …

Member Avatar for javaAddict
0
82
Member Avatar for Abdel_eid

Dear friends i just need a web link or an ebook that contains all java built in functions and classes with it's return types and parameters. thanks in advance

Member Avatar for Abdel_eid
0
85
Member Avatar for staufa

Hi im trying to connect to my database but i dont know why i cant load my jdbc driver: -I've saved the jar file together with the other java files in the same folder called "a" -I used –classpath flag: Windows: "java -classpath .\mysql-connector-java-3.1.8-bin.jar;. LabDB4" but I dont know if …

Member Avatar for peter_budo
0
217
Member Avatar for NPOT

I want to get the size of a folder and also the size of files in that folder but the output is zero even though I used the java **long method** for file size and a for loop to access the files in the folder.The programme only outputs the size …

Member Avatar for masijade
0
129

The End.