36,051 Topics

Member Avatar for
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
167
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
129
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
251
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
112
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
116
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
233
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
82
Member Avatar for jansenkzh
0
76
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
603
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
72
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
85
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
155
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
77
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
101
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
88
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
111
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
94
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
36
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
123
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
95
Member Avatar for muthumari
Member Avatar for masijade
0
102
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
68
Member Avatar for tllcll

Hi, Is there anyone who know of any website that offer free interactive learning of java? TQ

Member Avatar for tllcll
1
87
Member Avatar for LBasa

Hi guys, I'm currently taking a summer online intro to Java class (using Jcreator) and its kicking my butt! I might have to re-take it next semester to get a better understanding of how it works. I've been working on the same problem for the last 10 hours and I …

Member Avatar for LBasa
0
207
Member Avatar for parvin1987

hello every one I'm trying to design a program.It 's like a messenger but haven't a chatroom.you can write your sentence and the server should send it for the client that you want?I don't know how server should change the port.I think server's port should be the same as client …

Member Avatar for Phaelax
0
108
Member Avatar for it-1

is there a way that i can link JAVA with C#?? or that i can write a C# code in a Java code?? THNX

Member Avatar for Lord Soth
0
335
Member Avatar for stharmon

Hey all, I have a simple one I hope. I have created an editable combobox and wanted to clear what is currently displayed in the box once the user sets focus on it either through "tab" or a "mouse click". For example, the combobox would say "Enter a phone number …

Member Avatar for stharmon
0
276
Member Avatar for zidane28

As far as I know 'bout method compareTo, it compare Strings...... It return 0 when if the strings are equal. That one I know..... It return negative number if the string that invokes method less than the strings that pass as an argument...... It return positive number if the string …

Member Avatar for Phaelax
0
89
Member Avatar for kedklok

Hi, i am using swt with java and am having a problem with a message box. when i run my program a login shell appears. when a user clicks the close button (X) in top right hand corner of the login shell they are asked if they really want to …

Member Avatar for iamthwee
0
94
Member Avatar for vinahorse78

[INDENT]Hi all, I hava to do a small project about Multithreading in Java. The project must relate to Multithreading, realtime, struglle (the project must be a complete program and it returns a result). I have never been studied about Java, so could you give me some projects ? I look …

Member Avatar for larytet
0
222
Member Avatar for haidabalaji

1. Class A (extends JFrame) displays a textfield and a "submit" button 2. user populates the textfield and when "Submit" button is clicked, text from textfield is retrieved and passed to class B (through B's Constructor new B(obtainedTextFromtextField in class A) ) 3. class B also displays a textfield and …

Member Avatar for masijade
0
98
Member Avatar for haidabalaji

How can I create an uneditable date formatted (00/00/0000) textfield in JAVA, which allows user to type only numbers Numbers allowed in the first offset - 0-3 Numbers allowed in the second offset - 0-9 "/" in the third offset should not be deleted Numbers allowed in the fourth offset …

Member Avatar for jwenting
0
75
Member Avatar for Credy

[LEFT]hello, i need script for java virtual machine game... please give me the scirpt i realy need it... the cript not the applet :) i have search in internet but i can't find one, so i hope anybody can give it to me :) thx :) [/LEFT]

Member Avatar for jwenting
0
51
Member Avatar for Croft .L

Please could someone advise me on how to get started on Java programming and what version to use? Please supply Hyperlinks Please!:cheesy: :cheesy:

Member Avatar for hemanthjava
0
109
Member Avatar for unitethenations

I have some questions on StringTokenizer. I used it to break a string that has the format : [inlinecode] "string1,string2,string3;string4,string5,string6" [/inlinecode] first into the two strings: [code] "string1,string2,string3" "string4,string5,string6" [/code] and then: [code] " String a = string1" "String b = string2" "String c = string3" [/code] Where [inlinecode]a = …

Member Avatar for iamthwee
0
77
Member Avatar for boohoo

Ok. I have Jbuilder 8 Personal from Borland Installed, and am wondering how to start off in java. Should I convert the file after i've finished into a windows executable, and if so how would I go about it? Anyone recommend any good tutorials for a computing-experience person, but wants …

Member Avatar for hemanthjava
0
291
Member Avatar for holysmokes

I am trying to free up space on my hard drive. when I go into add/remove programs I see seemingly redundant entries. are they redundant or are they individually necessary. they are: J2SE Runtime Environment 5.0 Update 2 J2SE Runtime Environment 5.0 Update 4 Java 2 Runtime Environment SE v1.4.2_04 …

Member Avatar for jwenting
0
105
Member Avatar for rakesh.java

i had a small doubt abt chat server, i want to design my chat server using rmi technology. Till now i didn't work with rmi.could u please suggest me how to work with rmi for the development of my application chatserver.

Member Avatar for jwenting
0
52
Member Avatar for pineapple

Hey there. I have working code that reads in a text file into a 2d array. The text file holds symbols that make up a map for a game. I'm trying to assign each of the symbols (like ^, for a mountain) to an object, and store those in the …

Member Avatar for DaSogo
0
153
Member Avatar for etinnie

[B]:rolleyes: Hello All,[/B] [B]I am very new to writing Java program so am here looking for help but most I want learn more about java. I am try to understand the code but it does not click for me. [/B] [B]My question is: I am trying to write a program …

Member Avatar for iamthwee
0
90
Member Avatar for crawf

Hi all, I'm making a applet, about a users reaction time for when a coloured square changes colour... Ive seemed to get something off to a bit of a start, but its very basic at the moment, and i would just like to ask for a bit of assistance or …

Member Avatar for crawf
0
121
Member Avatar for darine32

Sorry Here is the code. I got my result ok I can't seem to get the calculation: [code]public class Commission { public static void main(String args[]) { int salesp[]; salesp= new int [15]; int salespw[]={500,1000,350,625,5000,200,280,230,290,376,610,2000,350,100,150}; double commision=.09; double total; { System.out.printf( "%5s%8s\n", "Salesper", "Sales per Week" ); { for(int counter=0;counter …

0
42
Member Avatar for rakesh.java

hi this is rakesh... i had a small doubt about rmi.. i want to design chatserver by using rmitechnology... would u plz suggest me how to preoceed with that.. bcos i am very new to this rmi application.. i think this is first time iam using this......... i want an …

0
58
Member Avatar for ljungmichel

ive been searching through at least 5 different forums on various sites (including this one) and i still cant understand why i'm getting the error message illegal start of expression at [code]public static overallNumGrade(int quiz1, int quiz2, int quiz3)[/code] here is the full program: [code]import java.util.scanner; public class Jungmichel3 { …

Member Avatar for ljungmichel
0
171
Member Avatar for lalit2512

Hi, can anyone hel me how to connect to database in struts? I am using Oracle DB of personal pc. Tomcat 5.0 and struts 1.2.9 thanks lalit

Member Avatar for jwenting
0
66
Member Avatar for praveenmanchu
Member Avatar for static

Hi , My project is about server control sys. Server can lock as well as unlock to clients, calculating computer usage.. How can I get some coding about client-server as a reference ? :confused: Plz H3lP. Thank you.

Member Avatar for jwenting
0
26
Member Avatar for med7at7egazi

hiii all ..... i am in the last year in the faculty of computer science and i wanna know more ideas about graduation projects and i prefer it to be about web or mobile application and ignore any recognition ideas cause it's accuracy can't be so good as i think...... …

0
56
Member Avatar for kathryninvt

hi.i am not sure if i posted this in the right area.if i didn't please forgive me.i am learning how to do this.i am not sure how to explain it,so i will try to explain and tell you what i see happening.please bear with me as i don't really understand …

Member Avatar for Phaelax
0
169

The End.