32,204 Topics
| |
I have a drag-able JLabel that I'm trying to set that object to be above all other JLabel objects when its dragged. The only method I can find that sets the order is setComponentZOrder(Component,int)' But when I Try to use it, I get a large amount of errors printed to … | |
I have this error"String index out of range: 14 at java.lang.String.substring(Unknown Source)" I am unable to find the mistake in my code. A little help would be great. | |
I'm wondering if it is possible to control certain aspects in my function. All my it does is control how an object gets placed on my gui. I'm wondering if there is a way to control [I]GridBagConstraints.fill[/I] and [I]GridBagConstraints.anchor[/I] [B][U]Function:[/U][/B] [code=java] public void gridBagControl(Component ob, JPanel p, Insets in, int … | |
I am having trouble making use of a MouseMotionListener to make some card images be able to be dragged around the screen. What this program does is show a table of cards in a random order. The user will be able to drag any of the card images and move … | |
1/ Write a Java program that reads in a Name and Age (in years) of four persons and prints the name and age of the youngest person. Assume that all persons are of different age. The sample program run must look as follows: Enter the name of the person: John … | |
I hide text inside image then i want to save the image wich contain message . The problem is when i save image with JPEG it saved but give me exception : [B]java.lang.IllegalStateException: Output has not been set! at com.sun.imageio.plugins.jpeg.JPEGImageWriter.write(JPEGImageWriter.java:312) [/B] and when i save image with any other formate … | |
Hello everyone! I have a button on my main form that allows me to get the visitInfo Table. The data are displayed inside a JTable. What I would like to know is how do I edit or delete a row from that Jtable by the click of a save button … | |
Folks, I'm getting the following error message from Trados Studio 2009, a computer-aided translation program. "QuickInserts will not be available. Failed to create Framework 1 plug-in filter components. Failed to create Java Virtual Machine." Some Googling suggests that the problem might be caused by not allocating enough memory to Java. … | |
How do you search for information in a file already created. Also how to add or delete existed information from same file. | |
could anyone help me i have been trying to do this for a good 2 hours now and still can't get it to work :( i have created this class diagram for the server side of my project and i can't get the inheritance right i need to be able … | |
[code]import java.util.*; public class array1 { public static void main(String[]args) { int[] value = new int[1000]; Scanner keyboard = new Scanner(System.in); for (int i = 0; value[i]!= -999 && i < 999; i++) { System.out.print("Enter number " + (i + 1) + ": "); value[i] = keyboard.nextInt(); if(value[i] == -999) … | |
so im trying to make a game for school that i have to have done by friday at the max my source for the main class is [CODE]//shooter game //main class import javax.swing.*; //frame import java.awt.*; //color import java.util.*; import java.awt.event.*; public class Shooter extends JFrame implements KeyListener{ Image img; … | |
This is what Im gonna do: In a class called UsefulMethods : a) Write a method public static int maxOfTwo( int tal1, int tal2) {} . As you can see this method will accept two integers as parameters and returns the larger of this two. [B]This one I rly need … | |
I currently have a complete CLI program, which consists of around 12 classes. I would like to convert this program into a GUI. My weak point is using GUI when several classes are involved. My final program is going to have around 5-6 different screens. Should I incorporate the GUI … | |
java is robust and secure what is meant by robust and why is java robust? why is java called secure? can any one please help me with these? | |
import java.io.*; public class duplicateArray { public static void main(String[] args) { // check the no. of args if (args.length != 3) { System.out.println("No. of args is not correct"); System.exit(0); } // open file BufferedReader in = openfile(args[0]); if (in == null) { System.exit(0); } // read file int Rows … | |
Hi guys, am currently stuck while trying to connect an Omron V720 series RFID equipment to read and write tags. I've have it in source code on VB6 but i want to create it in Java. I am using RXTX to connect to the RFID equipment and send the codes, … | |
Hi, I'm using WebSphere WebFacing tool to convert an old 5250 application and I am getting this error when I try to convert a particular application. I've tried increasing the java heap but this does not make any difference. Would anyone know how to allocate more memory within websphere? Thanks. … | |
I am experiencing a problem with this CheckBoxJList class (I found it posted somewhere, it is not mine), in which when there are no boxes checked, and then you check a box, you cannot click to uncheck it--you must first check another box. This is an annoying bug and I'm … | |
Hi I am new to Java GUI development I installed the NetBeans IDE I have not used anything other than Visual Studio in my life I have studied Java in school and college and am familiar with it So i was able to create a basic application but don't know … | |
well im thinking of making a program that can impress my instructors,, can you suggest what program should i make?? and please assist me.. | |
Hi, I'm trying to print some text on a credit card size card with a card printer. So, I'm using the print api and it works, the only thing is I want to position text somewhere specific on the card but that I can't change the coordinates of the imageable … | |
hello This is Sarada Adiraju. I have signed up for this community today. i got an error in a java program Its REACHED END OF FILE WHILE PARSING ERROR. Can anyone help me to solve this and I wanna know about why am I getting this error. Thanks. | |
what is eclipse? well i am a beginner in java n i am learning the basics will u plzz explain about eclipse in a clear way | |
Hi I'm writing a client/server remote viewer application where screenshots of the desktop are sent across the network over a socket. I'd like to reduce the size of the transfer by getting [I]the difference between the two images and then sending the difference[/I]. The difference would be at least a … | |
Hello sir.. I am talking about the skype password. Actually I have made some accounts on skype... I have got the location of password stored in the encrypted form. And that location is..at a credential2 tag in xml file which is C:\Documents and Settings\Administrator\Application Data\Skype\skype_username\config.xml. As far as I know … | |
I am trying to create a program that counts the Prime numbers then I will continue and use this second method in my main method. I am confused how to count the Prime numbers. I just pulled the text from JEdit.. not sure if that was the right way to … | |
Hi, I have a problem, I have written a class, inside another class. No problem with that, but I have now come to develop a unit test for the outer class. The JUnit must be able to test the methods of the inner class as well as all other class … | |
Hope i have posted the mail in the rite place. what I have done so far is: 1>I use Borland C++ Builder Version 5. 2>I use TCppWebBrowser which can access a website. which could be done through any browser outside my application.So no point in what i have achieved till … | |
Hope i have posted the mail in the rite place. I need to know the google map API to save maps to a folder. My borland c++ application should in the background download the map according to a gps latitude longitude and save the map in a folder. There is … |
The End.