32,199 Topics
| |
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 … | |
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. | |
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 … | |
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 … | |
plz giv me some useful link to study struts 2 thanks in advance | |
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 … | |
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 … | |
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? | |
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 … | |
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 | |
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. … | |
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 … | |
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 … | |
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 … | |
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 … | |
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.... | |
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" … | |
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 … | |
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 … | |
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 … | |
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? | |
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. … | |
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, … | |
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 … | |
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; … | |
hey, i have jsp file that contains drop-down list once the value is selected from drop down list one of the javascript methods gets invoked that alerts me with what has been selected. what i need is once the value has been selected it would be sent to a my … | |
My program needs to tell whether two Students were selected, and if so I need to output to the screen their averages. I got the first specification which works for only one selection (just shows grade) but I have no idea to tell whether they selected two from the list... … | |
Problem: it print "null" in front of every line for example input this is sparta output [COLOR="Green"]null[/COLOR]histay isay partasay [CODE]import java.util.*; public class PigLatin { String[] piggieLatin; String[] sentence; public PigLatin(String[] random) { sentence = random; piggieLatin = new String[sentence.length]; } //repalce everything beside a~z with space public String punctuationFree(String … | |
Hello, I need to perform a binary search on an array of objects but to do so I need to have them sorted. I've been looking online and no one really has a good explanation of how to conduct a quick sort on an array of objects. If you can … | |
i have an array like this: [B]String[][] data= {"s", "w","s", "y", "r", "r", "y", "p"};[/B] i wanna do some action if there was no similar array element before that particular element, for example, do something if [B]data[0]=="s"[/B], then do something if [B]data[1] == "w"[/B], but skip when [B]data[2]=="s"[/B], because [B]"s"[/B] … |
The End.