32,204 Topics

Member Avatar for
Member Avatar for plasticfood

this assignment has stomped me. i thought it about long and hard and can't imagine how would i edit the quicksort to sort an array-based queue object. i'm required to use an array-based queue class which has only 3 methods: enqueue(), dequeue(), and peek(). they're pretty self explanatory. i cannot …

0
71
Member Avatar for thebigbroski

Hi guys, so I had an idea for an app that would basically log onto a website with a giver username and password, and then it would pull specific data from that website. Any ideas on how I could do this? What should I read about? I've never coded anything …

0
54
Member Avatar for gedas

Hey, i have written immanence java program and now i have been asked to create sequence diagram for it. i am really unfamiliar with uml therefore i was wondering are there any good reverse engineering programs that would create sequence diagrams for me? p.s project has been written using netbeans …

Member Avatar for gedas
0
137
Member Avatar for Nooshin Z

Hi, It's about a year that I have been coding on Java but I still have basic problems working with threads. My main concern is that I can't understand the logic they obey in their behaviour. I know that they are processes which run independently but I don't know how …

Member Avatar for Nooshin Z
0
88
Member Avatar for eileenc87

Dear all, Can anyone tell me how can I call Java function to VB.net window application? Regards

Member Avatar for Sultan ALfarsi
0
95
Member Avatar for stupid guy

hi all, i have an applet code here..i wanna do database operations later on..but i m stuck to this basic applet function..have a look [CODE]/* * @(#)Appletsamp.java 1.0 11/04/09 * * You can modify the template of this file in the * directory ..\JCreator\Templates\Template_2\Project_Name.java * * You can also create …

Member Avatar for JamesCherrill
0
141
Member Avatar for cretaros

Is there any methods that in java can make or prevent its window frames from being moved or being dragged, like those in windows 7 installations. post it guys if any and it will help others too! thanx in advance.

Member Avatar for mKorbel
0
109
Member Avatar for Armanious

Hey, everyone, as you can see, first post. I'm just stumped. I've tried everything I can think of to [COLOR="Red"]highlight certain keywords as the user types in a non-CPU intensive manner in JTextPane with a StyledDocument[/COLOR]. I'm almost sure there is a logical way that I cannot see, but here …

Member Avatar for Armanious
0
387
Member Avatar for cwarn23

Hi, I have 2 images stored in the variables [ICODE]Image img_arrowl; Image img_arrowr;[/ICODE] and now I need a function or method to set the opacity of these two images. So the syntax I'm after would be something like the following: [CODE] img_arrowl = set_imgopacity(img_arrowl,0.75); img_arrowr = set_imgopacity(img_arrowr,0.75); [/CODE] The only …

Member Avatar for mKorbel
0
2K
Member Avatar for joseph.roy9
Member Avatar for MingMing

I was wondering how I could create a java application program which allows sending free sms to any network subscribers without the use of any hardware component (i.e. GSM modem). Is it possible? What are the things should I consider and how does the logic work? Can anybody tell me …

Member Avatar for MingMing
0
172
Member Avatar for ManShake

Hi everyone, I have an assignment where, given a list of points in 1 dimension (that is, they are points (x,0)), to find the closest pair recursively. I've been moving along pretty well and I think I have a sound algorithm in place, but I hit a roadblock. My algorithm …

Member Avatar for chico9
0
1K
Member Avatar for xcamp

So, I created some code in a jpanel. Is it possible to display just this panel or do I need to put it into a form. Either way, how would I go about doing it?

Member Avatar for Slyvr
0
145
Member Avatar for jason75080

This program accepts input in the form of a String of names and grades. It picks out the names and picks out the grades and puts them in seperate arrays. Then it needs to output them together sorted by grades and then by names. I can get the Grade Order …

Member Avatar for jason75080
0
5K
Member Avatar for javanub123

ive been trying to get slick2d installed properly on my mac, im using netbeans and followed a tutorial found here [url]http://thejavablog.wordpress.com/2008/06/08/using-slick-2d-to-write-a-game/[/url] but something goes wrong when i compile. i think it has to be a pathing issue but cant figure it out

Member Avatar for programmable
0
98
Member Avatar for khwhitaker

I am running Vista and I am unable to do a reinstall of Java. An internet explorer 7 file updated fairly recently, but I can't remember how to uninstall that one and I think that I'm remembering correctly, that that turned out to be one of the issues last time. …

Member Avatar for khwhitaker
0
1K
Member Avatar for tracydo

import java.text.*; // format output import java.util.*; // Scanner class public class gpa { public static void main(String[] args) { DecimalFormat num=new DecimalFormat("#######.00"); // Create format for name num (courseName) DecimalFormat gpaNum=new DecimalFormat("##.00"); // Create format for name gpaNum (gpa) // variable names gpaNum gpa=0; // grade point average double …

Member Avatar for jon.kiparsky
0
461
Member Avatar for Nooshin Z

Hi, Can anybody guide me about how I can merge large sorted blocks of a file whose records are English words? I'm doing this on a personal computer and my programming language is Java. I'm passing information retrieval this semester and the file has a size about 1.5 GB and …

Member Avatar for Nooshin Z
0
87
Member Avatar for aanders5

Ok, so I have images for my applet, but when I upload it online, none of the images appear. When I add an image, they are all Image Icons for Labels, and I just browse to the folder on my desktop, selected the image, and hit ok. It then shows …

Member Avatar for aanders5
0
148
Member Avatar for MrHardRock

Hey everyone, I am writing a GUI that allows a person to enter all their own numbers into an array, then they can search the array for any number they want. I have it almost completely written except for two compile errors I can't figure out The first one is …

Member Avatar for mKorbel
0
167
Member Avatar for shiv0013

is there any way to implement auto complete in a jtable cell. i checked for selectin a part of the text in the cell like the option in jtextfield. but seems that there is no option for that in jtable. please guide me in any one of the above....

Member Avatar for mKorbel
0
545
Member Avatar for smokin745

Hey guys, this is my piece of code from a GUI that i am building, in which i have a button "Delete Row" and a table besides it which has, let's say 2 rows and 4 columns. Now when i select one of these rows, and press the "Delete row" …

Member Avatar for mKorbel
0
159
Member Avatar for MrHardRock

Hey everyone, I am writing a program that needs to take 10 integers and display them, then it needs to sort them in order from lowest to highest and then display them again. I was trying to use selection sort to sort them, but I think I set it up …

Member Avatar for jon.kiparsky
0
165
Member Avatar for MrHardRock

Hey everyone, I am writing a program that requires me to use an array to find the mode of 10 numbers. I have working except I want it to just print the mode, but it keeps printing every number I enter. Any suggestions? Thanks in advance. [CODE] import TerminalIO.KeyboardReader; public …

Member Avatar for Spamj
0
2K
Member Avatar for rjdelight

I'm trying to display some text in a JTextArea I have set up in a simple GUI. Easy right? That's what I thought, but I'm clearly not that advanced at Java. The hook is the information I want to display in the JTextArea is in a text file (file.txt). Right …

Member Avatar for mKorbel
0
1K
Member Avatar for xcamp

Ok, so I've never programmed for android before but I downloaded the eclipse plug in. I am proficient in Java and was wondering how easy it is to transfer programs into an app. Are there any useful tools I should know about?

0
61
Member Avatar for C#mark

I have a batch file that sets JAVA_HOME, PATH and CLASSPATH and calls a jar file. The last line in the batch file is "java -classpath test.jar test %1". When I run the batch file from the command line, using a paramater, the parameter displays in the console as expected. …

Member Avatar for C#mark
0
2K
Member Avatar for smokin745

I have implemented the addActionlistener for the Add Contact button in this GUI setup (please try running this code in your computer to know what i am talking about) and when i click on Add contact, the new frame pops up, i enter the details in the New contact frame, …

Member Avatar for smokin745
0
178
Member Avatar for chester1908

Hey all. I'm making a program which uses many buttons and a textfield. I need help and some explaining on how to organise components within a panel. For example,using [CODE]mainPanel.add(BorderLayout.NORTH,display); mainPanel.add(BorderLayout.CENTER,background); mainPanel.add(BorderLayout.EAST,buttonBox); mainPanel.add(BorderLayout.WEST,buttonBox2 );[/CODE] All components (the buttons within the background panel,the buttons within buttonbox1/2 and the display field) are …

Member Avatar for mKorbel
0
195
Member Avatar for zach&kody

How do you override a superclass's methods with a subclass? These are my two programs, the first being the super class, and the second being the subclass of which I am attempting to override the superclass's methods. [CODE]// This class represents a walker with two feet. import java.awt.Image; import java.awt.Graphics; …

Member Avatar for rubberman
0
209

The End.