32,204 Topics

Member Avatar for
Member Avatar for MWE_QUE

This JFrame opens and puts in the empty questions and answers when it starts as it should, but it doesn't print the questionList.size() at line 191. The next button also won't go to the next question which should be retrieved from the text file. I'm not sure if the questionList …

Member Avatar for MWE_QUE
0
237
Member Avatar for nickcolb

So far my professor has given us code and we basically "fill in the blanks" of the methods below the main code. I've done all the other methods, but am now stuck on the Taylor series portion. The code below is to calculate angles, and one of the methods called …

Member Avatar for Slimmy
0
1K
Member Avatar for sikelesS

Hi there, first post! First off, I apologise for asking such a basic question, but I am new to Java (done VB before..) and was wondering if you could please help me out with a little problem I'm having! I have a method that reads data from a text file, …

Member Avatar for Slimmy
0
191
Member Avatar for gstavreski

In one European country there are two types of music festivals national and international. All take place in one or more (sometimes random) days, but all days are in the same calendar year. For the national festival is significant whether or not have jury (that is giving additional prizes). For …

Member Avatar for gstavreski
-3
147
Member Avatar for Slyvr

This is my first time trying to use KeyListener and I just need it to move an image over 20 px every time I press the right arrow key. After 400px, it should move down to the next line vertically 'playery.' For Some reason it prints out the console output …

Member Avatar for Slyvr
0
133
Member Avatar for chaliworm

please help need a code tht calculates number of hits and misses in the cache from a adddress file with addresses stored as hexadecimals stored on th hard drive.these hexadecimals should first be changed into binary.. ive read some psuedo codes buh i seriosly dont know were to begin the …

Member Avatar for Ezzaral
0
254
Member Avatar for Limiter

HI, a pretty frustrating problem arose. I am not going to post any code this time. This should be straight forward question anyways... :) I have a class that contains a constructor with arrays. Also, a methods to add to the array using scanner class. The problem is, I implemented …

Member Avatar for dononelson
0
313
Member Avatar for chetan_8187

Hi, I want a code for opening a particular folder or directory on button click. Thanks.

Member Avatar for sairakhushi
0
929
Member Avatar for cnlengr

Hi, I've been learning java, and I have a question about creating an array. Basically, what I want to do is that I wish to create an array with an unknown array length, then ask the user to input values to be stored in the array. The length of the …

Member Avatar for cnlengr
0
113
Member Avatar for SCass2010

Hi everyone, I have an ArrayList containing 40 or so JPanels for a board game developed in Netbeans with java - is it possible to have an event listener or something similar that will "monitor" the ArrayList for any of the JPanels being clicked, rather than having to create an …

Member Avatar for SCass2010
0
1K
Member Avatar for ajayb

I am doing a GUI in swings using Netbeans IDE. I have two frames AudioVideostreaming.java Audiostreaming.java There is button called "Audiostreaming" in AudioVideostreaming.java file. When this button is clicked I want that the AudioVideostreaming.java frame is closed and Audiostreaming.java frame is opened. What code should I include in AudiostreamingbuttonActionperformed() method …

Member Avatar for Ezzaral
0
102
Member Avatar for sumprit

Hi everyone, i need some suggestion regarding the display of the values of two database table in a single JTable. Can anyone help me to get the proper way of how to do it. Actually i need to show the comparison of the two tables in the JTable by displaying …

Member Avatar for Ezzaral
0
102
Member Avatar for XxPKMNxX

i have this code. i am trying to set a grid and start at c. it then moves to the next value - 1, so in this case, would move to a 4. However, in my IF statement, i want to put if(position surrounding c == c-1){then change that position …

Member Avatar for XxPKMNxX
0
140
Member Avatar for ubi_ct83

Hi guys, ive read an article about using PHP with Java here:[url]http://www.devshed.com/c/a/PHP/Using-PHP-with-Java/[/url] but im a bit confuse to get start with this instruction in this article.i pasted getting started page: [QUOTE]PHP doesn't come with Java support turned on by default, so you'll need to recompile it to enable this support. …

0
76
Member Avatar for Alex Edwards

This is a simple Search Engine that contains tokenized words as keys, in which they will return values associated with them in an ArrayList. All that is required is a text file from a valid extension.

Member Avatar for fayimora
0
10K
Member Avatar for gcclinux

Hello everyone, I am trying to write to a file what I am currently displaying on the console. I have a bit of code that works fine by creating a list of files based on it's file extention and it then displays it using println: What I want it to …

Member Avatar for gcclinux
0
197
Member Avatar for vedangi

Hey there!! I have been working on creating a 3D solar system...I am done with creating the planets, adding textures and lighting and putting the planets into an orbit revolving around the sun. The part left is the saturn's rings. Can somebody tell me if it is possible to create …

0
76
Member Avatar for TSprog

hy for all . i have to do a new university work about text mining and specialy on sentiment analysis . i have to try to analyze some mails and forums to extract from about what the student are discussin .. i've seen a lot of documentation about this , …

Member Avatar for TSprog
0
129
Member Avatar for MasterBerd

Hi forum, Could you give me some simple 2D array problems to solve? Thanks!

Member Avatar for abelLazm
0
81
Member Avatar for harinath_2007
Member Avatar for Slimmy
-1
133
Member Avatar for Taimoor Rana

hello guys, I don't have a programming question but a mathematical one but need to implement it in a program. I need a formula the will let me find the X,Y position of Circular motion. For example: earth travelling around the sun, I would wanna know the X,Y position of …

Member Avatar for Slimmy
0
141
Member Avatar for csl

how do i create new JLabel() dynamically in a while loop, and add to a JPanel by using the setBounds method. The setBounds work, however, there are other JLabel added to other place. why is this happen? [code]while(condition){ pin = new JLabel(); pin.setIcon(pinIcon); pin.setBounds(Panel1.getImgX(), Panel1.getImgY(), 20, 30); Panel1.panel.add(pin); }[/code]

Member Avatar for mKorbel
0
157
Member Avatar for jasperFernandes

Hi, i wanted to create a JTextField to receive the user input instead of having the user key in the input through the IDE console. This is my code. Now, my code just runs fine if the user key in the inputs through the console. After running the code, the …

Member Avatar for mKorbel
0
2K
Member Avatar for ChieftanBill

I've been working on this program recently and its been blowing up with errors, every time I work through a bug, more surface. Now I keep getting incompatible type errors at the spots I marked out. If someone could help me sort it out or point me in the right …

Member Avatar for Slimmy
0
127
Member Avatar for lee.j.baxter

Hi folks, Please forgive a bit of a n00b question, but I'm working with the SwingWorker class and want to create a subclass of this which includes an input type, as well as the existing output and progress-message types (so basically I'd have "CTSwingWorker< I, O, M >"). Now, I'm …

Member Avatar for mKorbel
0
130
Member Avatar for wonder_laptop

hello there, this is really urgent, do you know how to convert from a string to AgletProxy ?? i have two classes : Parent.java and Child.java, The Parent.java class, creates a child , passes it its agletproxy while creating it and dispatches it to another machine : [CODE] package examples.help; …

0
231
Member Avatar for Jaily

I'm trying to make a digital clock in Java. The program is at the end going to be an alarmclock. So far I've made 3 classes: Main, Clock and Time. Main only creates an object of Clock. Time handles the javax.swing.Timer function for the clock. And the Clock creates a …

Member Avatar for mKorbel
0
488
Member Avatar for chico9

[CODE] public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((temp1== null) ? 0 : temp1.hashCode()); result = prime * result + ((temp2== null) ? 0 : temp2.hashCode()); return result; }[/CODE] I don't really understand about haschodes, yet, so I …

Member Avatar for chico9
0
352
Member Avatar for newcoder310

Hi , I have two string which have time in them like one= 11:54:30.360 two= 11:54:30,427 Wht is the best way to get the difference between them Thanks

Member Avatar for ~s.o.s~
0
104
Member Avatar for mkab

Hello everyone. I have some problems in implementing some stuffs about genetics in java. Here's the scenario. A human cell contains 23 pairs of chromosomes. Each chromosome in each pair has thousands of genes. Each copy of a gene is called an allele. These alleles determine the different traits of …

Member Avatar for dononelson
0
163

The End.