32,199 Topics
| |
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 … | |
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()"). … | |
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 … | |
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 … | |
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 … | |
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) { … | |
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 … | |
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 … | |
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 | |
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 … | |
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.) … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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() … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
We are making a project on restaurant management system where the customers will be placing the orders through the touchpad mobile which is to be sent to the receptioist's pc via wireless network.The application on pc is made by core java and the menu for order using j2me.But we are … | |
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 … | |
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 … | |
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. | |
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 … | |
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"); … | |
Hi! Is it possible to dynamically update a text of items in JList? Let's say there is JList defined as follows: [CODE] list1.setModel(new AbstractListModel() { Object[] values = listOfTasks.toArray(); public int getSize() { return values.length; } public Object getElementAt(int i) { return "Task " + i; } }); [/CODE] As … |
The End.