31,001 Topics

Member Avatar for
Member Avatar for sbhavan

Hi All, In my development of an online application, I have to generage the serial no for the available number from the serial number table in sql server. Multiple users will hit the table to generate the serial numbers. So the serial number should not be repeated. I have to …

0
185
Member Avatar for jon.kiparsky

Most of the posts here are from people with problems, looking for help. I thought I would try to talk a bit about ways to find your way out of "stuck". It's been on my mind lately, since I've been wrestling with Swing and it's been winning. Finally worked out …

Member Avatar for apines
1
124
Member Avatar for yap_1991

Hi all I have a empty GUI , what i need to do now is to put the algorithms I have into the GUI. Im not very sure how im supposed to go about doing it. Calling of files would be easier to me as i do not have to …

Member Avatar for JamesCherrill
0
203
Member Avatar for lee.j.baxter

Hi folks, I'm writing some utility classes for a project, and I've written an abstract class called "XPObjectTable" that displays a table of objects of a given type. To refresh this, I'm using "AbstractTableModel.fireTableDataChanged()". Now I'm writing a similar class for JList, but can't find a similar method (i.e. "AbstractListModel.fireListDataChanged()"). …

Member Avatar for lee.j.baxter
0
185
Member Avatar for camopaint0707

Write a program that asks the user to enter today's sales for five stores. The program should display a bar chart comparing each store's sales. Create each bear in the bar chart by displaying a row of asterisks. Each asterisk should represent $100 of sales. Here is an example of …

Member Avatar for kramerd
0
1K
Member Avatar for techieinvents

Hi Dear Danimates.... This techie from Chennai. First let know my profile... Am a Engineering Graduate passed out in 2008. Currently am working as a Web Researcher for more than 3 years. But in my concern only i had chance to work with Perl scripting and Java tool development for …

Member Avatar for jon.kiparsky
0
87
Member Avatar for cassyjack

OK. I need help with my homework. I a few problems to complete I was able to get pass the first few but I'm stuck. They are progresive problems So If I can get this one going I think I will be OK with the rest. This is what I …

Member Avatar for jon.kiparsky
0
2K
Member Avatar for Buffalo101

Hello, I'm trying to change the look of java apps to something native. In my first JFrame, I'm using: [code=java] try { //org.fife.plaf.VisualStudio2005.VisualStudio2005LookAndFeel //de.javasoft.plaf.synthetica.SyntheticaStandardLookAndFeel //com.jgoodies.looks.plastic.Plastic3DLookAndFeel //UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel"); UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel"); } catch (ClassNotFoundException e) { e.printStackTrace(); } catch (InstantiationException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (UnsupportedLookAndFeelException e) { …

Member Avatar for leiger
1
152
Member Avatar for enfamos

I have asked my instructor to help me with this error so I can move on to the next part of the program which is due Sunday, but no help to give I guess my problem is that when i try to compile my program I get a class, interface,enum …

Member Avatar for enfamos
0
163
Member Avatar for serph09

Hi I have some practice problems for an upcoming quiz. Can someone answer them correctly so I can use that as a reference to study? I would great appreciate it. Write a program that will print multiples of 2. (0, 2, 4, 6, 8, ...) First complete the constructor and …

Member Avatar for Ezzaral
0
134
Member Avatar for purijatin

Can some one please suggest a good advanced book on Concurrent Processes. I am a bit week in it and would like to give a lot of time to improve

Member Avatar for Ezzaral
0
79
Member Avatar for MellyMel1984

hi guys, I have a program using a JTabbedPane where I 3 classes, 2 are JPanels and one is a JFrame which contains a JTabbedPane. I am trying to swap one JPanel when a button is clicked. The first JPanel is a login and when user is verified I have …

Member Avatar for MellyMel1984
0
188
Member Avatar for TahoeSands

I am going to keep this discussion fairly abstract initially in hopes that I will get a broad range of approaches. Here goes... I am working on an application which uses paint() to fill a JFrame with a "background" (a game table) and several ancillary elements (table markings, chips, etc.) …

Member Avatar for Ezzaral
0
79
Member Avatar for sciprog1

Hello Members, The following Client/Server does a simple chat where I am able to send and receive one line at a time. How should I proceed if I were to send at aleast 4-5 lines at a time. Any help (with some sample pseudocode) would be of immense help. Thank …

Member Avatar for sciprog1
0
228
Member Avatar for Java_90

Here is my code, I want it so you type something in to the textfield and then you press the button next to it which puts the text in the textArea. It compiles but when you click the JButton it errors out, I'm a beginner to Java anyone know what …

Member Avatar for Java_90
0
2K
Member Avatar for extemer

i want to run my java program as autorun as plug in the usb but i cant figure out hopw to. i am come out with a method below it is [autorun] open=fun.java // my program name action=Run fun Program icon=fun.exe label=extemer i made this file in notepad and saved …

Member Avatar for ElieM
0
1K
Member Avatar for Sunshineserene

Hi all, I am trying to call a 2D array from another class, and equate the 2D array to a 2D array in the class its at. However, I'm having some problems. I can call the 2D array from the class that I want to, but it seems like my …

Member Avatar for Sunshineserene
0
2K
Member Avatar for fahadyousaf

i have made this little program in GUI, Please help in these following error. 1st time when we save the data second time it comes to 2nd field name not on cnic field, it should ask cnic field first then other ask for other fields. Please any one guide me …

Member Avatar for kramerd
0
235
Member Avatar for Jonil

Hello! I'm suppose to code a word counter for my Java class. The user is suppose to keep entering a sentence until they type "xxx" then at the end, it'd count how many words entered. It's only counting the "xxx" for me, so at the end, it says I only …

Member Avatar for kramerd
0
146
Member Avatar for bibiki

I have the following code as taken from the book I read from: [CODE] import java.awt.*; import javax.swing.*; /** Frame1 is a frame with a label and a button */ public class Frame1 extends JFrame { /** Constructor Frame1 creates a frame with a label and button */ public Frame1() …

Member Avatar for kramerd
0
190
Member Avatar for newbie14

Dear All, Below is my codes. I have already managed to open the port sucessfully. I could send the AT+CMGF command, but in order to read the response as "OK" I had to do 4 is.readLine();. So my next problem is how to send the AT+CMGS which also require to …

0
87
Member Avatar for rama83

Hi i don't know if anyone can help me or not?? i have an assignment about java dice game and here is the instructions: This program will simulate two people playing a two dice game. The objective of this game is to be the first to score 100 points. The …

Member Avatar for rama83
0
126
Member Avatar for Kunal Lakhani

I am having a column named 'AREA' in a table named Editors. I am now making a html page for Staffs. In that page, i am having a field named 'AREA OF WORKING'. I have to retrieve values from AREA column of EDITORS table, and have to give the same …

Member Avatar for javaAddict
0
94
Member Avatar for rishabh7777

Hi, I am developing a web crawler using java. I have implemented it to some extent, like I have developed program which parses all the hyperlinks from the entered URL and and visits each link one by one and iterates this process. Now I want to parse all the visible …

Member Avatar for rishabh7777
0
109
Member Avatar for hazeeel

Hey guys, I seriously need some help here. I have no idea why but after undergoing the Rotation phase I lost coordinatesRotZ[a][0],coordinatesRotZ[a][1]. The value appears to be 0.0 However coordinatesRotZ[a][2] has values stored in it. so the output looks something like that after printing: coordinatesRotZ[a][0] coordinatesRotZ[a][1] coordinatesRotZ[a][2]: 0.0 0.0 13.44 …

Member Avatar for hazeeel
0
116
Member Avatar for ceyesuma

I would like to learn how to save a JInternalFrame. Currently reading through Serialize info. I have never ran the app outside of Netbeans. I have had no success with creating the jar for the app (JDesktopPane). Now Serialization is adding to the confusion. Do I have to have the …

Member Avatar for JamesCherrill
0
106
Member Avatar for blknmld69

I am having problems with the output of my program. The progam should Design a class named Employee. The class should keep the following information in fields: Employee name Employee number in the format XXX-L, where each X is a digit within the range 0-9 and [INDENT]the L is a …

Member Avatar for Overbooked
0
8K
Member Avatar for newsb2Java

i want to read file data as below. [ int, double, double] 1234 12.30 45.60 2345 23.40 67.50 3456 45.60 67.80 . into multiple arrays of type int, double and double. any help will be appreciated.

Member Avatar for apines
0
2K
Member Avatar for Tankadin

Ok here is my problem thus far. My program I have created is horrible lol...I am adult enough to admit it. My issue is the output I am getting that I will post after my code. It has weird characters at the top and I am not sure why. The …

Member Avatar for Tankadin
0
245
Member Avatar for NightOwls

As the title states, I can't get the background of my JFrame window to change. I would've bet that just .setBackground(Color.RED) would've worked but no luck. Here's my code: [CODE]import javax.swing.JFrame; import javax.swing.*; import java.awt.*; public class win { public static void main(String[] args) { JFrame guiWindow = new JFrame("Calculator"); …

Member Avatar for NightOwls
0
90

The End.