35,617 Topics

Member Avatar for
Member Avatar for indienick

I have a question about creating my own custom classes. I want my own class - NButton. The idea of this class was to quickly make JButtons, by adding my own custom argument sets. Here's my prototype for this: [code] import javax.swing.JButton; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; /** * NButton - …

Member Avatar for indienick
0
114
Member Avatar for Visslan
Member Avatar for korbynlehr

I am having trouble getting my timer class working with my scoreboard frame and application. Any constructive help is appreciated. [code] public class ScoreboardTimer extends Thread { private int counter; // the number of seconds remaining on the timer private boolean isRunning; // toggle variable that controls whether the counter …

Member Avatar for peter_budo
0
168
Member Avatar for indienick

This post is asking ALOT, but I'm not expecting one person to leave me a hefty response, so any bits of widsom and knowledge are MUCHLY appreciated. Could someone(s) please explain to me (in detail) how to use: - Data Models (for JTree's and JTable's) - Pattern matching (java.regex.Pattern) and …

Member Avatar for indienick
0
76
Member Avatar for Embeza

Hi there , I need a calculator that is flexible enough to perform +,-,/,%,^and *. can you help plz:?:

Member Avatar for MattEvans
0
242
Member Avatar for sam1

hi, I did what it said in the following web site([url]http://www.onjava.com/pub/a/onjava/2005/05/11/sqlexplorer.html[/url] ) but cant get the sqlexplorer to show up in the other menue. has anyone else tried this in LINUX(suse), or if anyone has tried different way let me know please. thank you

0
62
Member Avatar for j1979c

[B]Just want to confirm if it is possible to set in this case (Example 1) class Two's pumpId variable by sending it as a parameter to class One's setPumpId method without using the usual return method assignment like : [code]pumpId = o.getPumpNum()[/code] I think in C++ we can do that, …

Member Avatar for jwenting
0
235
Member Avatar for indienick

Ok, I know this is a stupid-easy question, but how do I "gather" (best word I could think of) an image? [code] JFrame frame = new JFrame(); Image programIcon = (...?...); frame.setIconImage(programIcon); [/code] My main issue is that since Image is abstract, I can't exactly go " = new Image("yadda.png");" …

Member Avatar for indienick
0
165
Member Avatar for Badhrinath

Hi I want to repaint a page in applet. When that page is repainted, i want part of that page not to be repainted. That should be static. Is there any way to separate the applet window as so many parts and to repaint the necessary parts only? Pls provide …

Member Avatar for Rotak
0
126
Member Avatar for Cudmore

So. I'm having an issue. I'm building an application that loads class files as extensions during runtime. I'm doing this, becuase I want my application to be able to grow in the future without having to recode and recompile the main source.. So, I plan to make seperate class files …

Member Avatar for Rotak
0
247
Member Avatar for Iamnew2java

I am trying to calculate the miles per gallon per trip & also average miles per gallon overall. The per trip works fine but I can't get the average to work. It is just reading the per trip instead of averaging. Any suggestions? THANKS! import java.awt.*; import java.applet.*; import java.awt.event.*; …

Member Avatar for Iamnew2java
0
109
Member Avatar for nammi_aqua

Write a program that reads an unspecified number of integers. Keep track of how many positive and how many negative numbers are entered. The input terminates when the user enters 0. Display the count and the average of the positive numbers and the count and the average of the negative …

Member Avatar for jwenting
0
113
Member Avatar for hemanthjava

I have a table which is placed in a Panel. This panel contains a Horizonal Scroll Bar which when scrolled to the right enables us to see the whole JTable. Now the Table itself has a vertical scrollbar. The probelm is when the user can't see the whole table he …

Member Avatar for jwenting
0
230
Member Avatar for nammi_aqua

I am not able to code this is java. I have to use nested loops. The pattern I need to get is 1 2 3 4 5 6 1 2 3 4 5 1 2 3 4 1 2 3 1 2 1

Member Avatar for jwenting
0
78
Member Avatar for jansenkzh
0
74
Member Avatar for LBasa

Hey Guys, I've never used JLabel and JText Area before and this specific project requires it. I'm trying to create something that allows entry of student name, id and 2 grades. Then get the average of the 2 tests and show the letter grade equivalent. I'm getting error messages that …

Member Avatar for ranjanbaisak
0
602
Member Avatar for Embeza

Hi guys I want to write a VB 6.0 program that takes a text file as input and add contents of the file into the database. The file contains information organized like the following : 1 humberger $2.5 2 Dorwot $3.1 3 pasta $4.2 The table in my database called …

Member Avatar for Comatose
0
70
Member Avatar for Iamnew2java

The program runs but it doesn't calculate the average MPG correctly. It is calculating something, instead of zeroing out like earlier, but it sure isn't MPG! :mad: Any suggestions???

0
83
Member Avatar for parvin1987

I how another question I ran a program with one client and one server. it works correctly .but when I have a multiClient program ,the serverThread can not read the sentence from client .why it can't do this?is that because of extending thread I know that client class sends the …

Member Avatar for parvin1987
0
150
Member Avatar for N[e]tt[e]

anyone can tell me how to i made my two clients talk to one other .. the situation is that, i've a game server.. detecting of clients connecting to it. once there're 2 clients.. they will be group in a session and start to play a game. But then, i've …

0
74
Member Avatar for Chi'Manta

Oo... Can someone tell me the basic variables and keys for JAVAscript? Just a list please.

Member Avatar for jwenting
0
100
Member Avatar for grah3596

Hi, I am quite a competent c++ console programmer but I need to do some work with loading images and clicking on the images. I want to load a screen full of images, click on an image and be able to retrieve the code, index or some value which uniquely …

Member Avatar for grah3596
0
86
Member Avatar for danglingChap

Hi, I have recently graduated and now a days looking for job. I am very confused about the platform. At which platform should i go. .NEt or Java ... for me both are having good scope, but specially in my country .NET is ruling ... there are almost 7 jobs …

Member Avatar for danglingChap
0
110
Member Avatar for lconvoy

Is there any way to view or access javascript portions of a web page from the linux shell? For example, I use curl to pull a web page that has text and javascript. The javascript portion does not show up, just the filename as it is in the source.

Member Avatar for jim mcnamara
0
92
Member Avatar for freesoft_2000

Hi everyone, I have a question about the java multi-platform print dialog. My question is on collating the output of my print out using the java multi-platform print dialog. The thing is no matter even if i select the collate check box or not the output of the print out …

0
33
Member Avatar for freesoft_2000

Hi everyone, I seem to have in problem in adding columns and deleting colums in the JTable. When my program initializes there are five columns and six rows. I can append as many rows as i want and the column headers i have left to default which is (A, B, …

Member Avatar for freesoft_2000
0
1K
Member Avatar for aruma

hi , today i got an error with : Exception in thread "main" java.lang.NoClassDefFoundError : Loop i have gone thru so many links which i found in google but i am unable to solve that problem iam using both eclipse and command prompt. in both i got the same problem …

Member Avatar for aruma
0
120
Member Avatar for iamthwee

[B]skinnable apps[/B] How do you create kewl skinnable apps in java. Like say, windows media player or winamp? Please provide a weblink if possible, I'm really stuck here.

Member Avatar for jwenting
0
89
Member Avatar for muthumari
Member Avatar for masijade
0
99
Member Avatar for delizeka

Hi everyone, I am trying to use classes with JSP but I have a problem. I created a class and a method that will be used to return a specific querystring value . But I get an error while compiling the class and I can't solve the problem. I use …

Member Avatar for masijade
0
66

The End.