32,199 Topics

Member Avatar for
Member Avatar for MAYYOS

hi everyone, iam an IT student that tried to solve this java programming question but have many problems can anyone help me with it ?? here is the assignment .... using java programming language, write a program that will read a java code and locate all the assignment statements.from each …

Member Avatar for ~s.o.s~
0
91
Member Avatar for jetru

Its pretty standard, why the hell isnt the window showing?? Cant figure it out :( [code] import javax.swing.*; import javax.swing.text.*; import java.awt.*; import java.awt.event.*; public class GUIpart { //All ze variables required int tempboard[][]=new int[9][9]; SudokuBoard fresh= new SudokuBoard(); JFrame sudoku = new JFrame("Srik Sudoku"); JFormattedTextField guiboard[][] = new JFormattedTextField[9][9]; …

Member Avatar for jetru
0
233
Member Avatar for Phaelax

Given a JTable which presents 30-50k rows, its responsiveness becomes very slow. Is there anything I can do to improve its speed? I don't see why the number of rows would affect it so much. Wouldn't it stop rendering rows once it passes the a point beyond the size of …

Member Avatar for Phaelax
0
122
Member Avatar for Fungus1487

i have a GUI application that needs to check that it is connected to a database every 30 - 60 secs. can this be done with java threads or do i need to look somewhere different. obviously i need the application to be fully useable whilst it is performing this.

Member Avatar for Fungus1487
0
75
Member Avatar for Fungus1487

right MS Access is balls compared to other DB's i know but im working on a project which already uses an Access DB. Now after writing the following eclipse gives me a lovely error which im yet to figure out. Googling has thrown up people with similiar problems but no …

Member Avatar for Fungus1487
0
131
Member Avatar for chio

i have this homework... i'm using a switch to offer some options for some sorting methods like bubbleSort, heapSort and some of them... what i want to do is that instead of writing the bubbleSort code in the case, just pull it from where it is... i don't know how …

Member Avatar for Rayhan Muktader
0
100
Member Avatar for Dhanesh.M

I want to store the results generated out of SQL query into excel file ... how do I go about doing it? help

Member Avatar for jwenting
0
97
Member Avatar for jetru

How would I go about making JTextField allow the user to input only numbers 0 - 9? I looked into JFormattedTextField but it doesnt seem to be what I need. Would I have to code it to check the users' input everytime? Is there a simpler way?

Member Avatar for jetru
0
87
Member Avatar for vinod_javas
Member Avatar for vinod_javas
0
105
Member Avatar for kkusankar

could i know how t create interface in java. explain simple example

0
73
Member Avatar for push
Member Avatar for push
0
110
Member Avatar for Monyet

[code=java] import java.util.Random; public class CardDeck { private String deck[] = new String[52]; private String shapes[] = {"heart", "club", "spade", "diamond"}; private String numbers[] = {"ace", "deuce", "three", "four", "five", "six", "seven", "eight", "nine", "ten", "jack", "queen", "king"}; public void CreateDeck() { for(int s =0; s < shapes.length; s++) { …

Member Avatar for Johnbull
0
120
Member Avatar for ally1002

hello, i'm studying files and streams in java from JAVA how to program - Deitel but it's so not clear,,, is there another book or a website that explains this better? i could really really use it. thanx ally:icon_biggrin:

Member Avatar for ~s.o.s~
0
78
Member Avatar for msvinaykumar

Can any one pls help me to know any real time example for Static polymorphism Dynamic polymorphism

0
53
Member Avatar for LyddieFrog

I'm currently writing a program that acts as an application for a store manager, sorting, searching, reading in, etc. products. This program has two classes: one to handle the GUI and another to handle the actual calculations. I am completely done coding this, save for one requirement: I need to …

Member Avatar for LyddieFrog
0
151
Member Avatar for kahilw

I am building a speech recognition application with j2me and I am looking for a simple open source application that I can use for the interpretation. If you know of one please help.

0
72
Member Avatar for Rikardsen02754

Need help with a program that represents names The rubric is found here: [URL]ftp://ftp.aw.com/cseng/authors/lewis/jss3/HTML_Labs/ch4/Names.html[/URL] this is what I have done right now, but my lab partner and I are STUCK, any help we receive would be appreciated [code=language] // **************************************************************** // Name.java // **************************************************************** import cs1.Keyboard; public class Name { …

Member Avatar for peter_budo
0
156
Member Avatar for hbk619

Card game (again, or still). This one's got a GUI. Problem is, the draw and stick method need the total value that is made in start. So when call draw() or stick() from the actionPerformed method it needs a value or it won't compile [COLOR=red](stick(int) in game1 cannot be applied …

Member Avatar for hbk619
0
131
Member Avatar for isitintheback

No they're not mental. Well, maybe partially. It's 1:47am I'm tired as hell, but won't rest until I complete this. I know this is right in my face, and it's something stupid but I'm just not picking it up for some reason. Here's the code: [code] if(g1 == true){ total …

Member Avatar for isitintheback
0
167
Member Avatar for jk_bscomp

Gud day everyone........I just want to ask if anyone here knows how to compile java using the terminal in ubuntu if your sourcecode has many classes.. I tried already how to compile java in terminal using ubuntu like this one javac hworld.java and this command creates Begin.class(the name of the …

Member Avatar for jwenting
0
96
Member Avatar for static

Hi, I got this code from the internet and i compiled it. But i dont understand the result. Could u explain the result ? I cant figure out the output that shows 'classname@somenumbers' . thz [code=language] public class Andy { public static final Andy nd= new Andy(); private Andy() { …

Member Avatar for isitintheback
0
76
Member Avatar for beachlounger

import javax.swing.*; import java.awt.*; import java.awt.event.*; public class Square extends JApplet { int size; public void init() { String input = JOptionPane.showInputDialog( "Enter square size:"); size = Integer.parseInt( input ); } public void squareOfCharacters( Graphics g ) { String input = JOptionPane.showInputDialog( "Enter Character:"); int y = 50, x = …

Member Avatar for Phaelax
0
89
Member Avatar for paradox814

I have been searching for a long time, and I cannot remember the name of this swing component that I attached in the image. It's the one that is captioned "Please input the...." I don't need help on how to implement it (beyond knowing the class name), I just forgot …

Member Avatar for jwenting
0
118
Member Avatar for christianthag

Hello everybody!!! I'm desperead and i want your help!!!!! I have an excersice which say's: Built a class for dates using private data.the attributes must be controlled for validness.Implement methods for print and a method which returns the difference between 2 dates.Also make a method that calculates the day of …

Member Avatar for christianthag
0
85
Member Avatar for hassanmushtaq

hi to all plz give some link of pocket pc emulator that integrate into netbean 5.5. i have download creme 4.12 which can integrate into netbean 5.5.1. but i m using Netbean 5.5. so plz tell me pocket pc emulator that integrate into neatbean 5.5 not 5.5.1. and it should …

0
68
Member Avatar for christianthag

well the problem is with the libraries.our teacher hasn't tought us how we can use them, so i find it difficult to solve the problem.i don't want complicated solutions.just something simple if it's possible.the others in my class have much more easier programmes. thanx

Member Avatar for stultuske
0
30
Member Avatar for virendra_sw

Hi. I am unable to create file object from javascript in Vista platform. ex. i am using this statement javascript var oFso = new ActiveXObject("Scripting.FileSystemObject"); after executing this and make try catch block for this i am getting this error "Automation object can't create object". I have enabled some options …

0
98
Member Avatar for rahulgupta1979

Hi all, please help me. I need to know how to create barcode labels in a desktop application and then how to print them out. If anybody can provide me with java code, that will be a great help. I have tried my hand on various progs on different forums …

Member Avatar for rahulgupta1979
0
256
Member Avatar for Stoney

I can't figure out a way to have this program continue to loop if you press any number other than 1 or 2. Here's the test appilcation. [CODE]public class AnalysisTest { public static void main( String args[] ) { Analysis application = new Analysis(); // create Analysis object application.processExamResults(); // …

Member Avatar for deng_cen
0
210
Member Avatar for Tenac

Hello. I'm currently revising for an exam in structures and algorithims, but recently ran across a problem in my studies. I have already tried lookung through notes, online and Daniel Liangs java book, but can't find exactly what I need. The code is as follows: [CODE] public class QuizTest { …

Member Avatar for deng_cen
0
132

The End.