32,199 Topics
| |
[CODE]/* * PartOfSpeechView.java */ package partofspeech; import org.jdesktop.application.Action; import org.jdesktop.application.ResourceMap; import org.jdesktop.application.SingleFrameApplication; import org.jdesktop.application.FrameView; import org.jdesktop.application.TaskMonitor; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.Timer; import javax.swing.Icon; import javax.swing.JDialog; import javax.swing.JFrame; import java.util.StringTokenizer; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.FileNotFoundException; import java.io.IOException; /** * The application's main frame. */ public class PartOfSpeechView … | |
i don't know if this is the place to ask this but is there a way to write a program that will increase the mobile phone's bluetooth's range for one second??? if not in java then is there something else... thank you in advance :) | |
Hey guys, I had to determine the output of given code that uses a 2D array. The 2D array given looks like this: data.txt: 5 8 4 3 9 5 6 4 9 5 3 2 2 2 0 9 7 3 7 4 5 6 9 5 8 8 … | |
Hi All! This forum looks refreshing. This will be my first post and I am a new software guy working on a Java Gui issue. I recently built a java graph class and the graph works nice. The Graph class was lineonly, and it extends JPanel. In the main function … | |
Hello everyone, I am having a problem, I want to transfer the data from a text field which is found in the class "ServerInterface" to a method in another class "Server". I wanted to transfer data to the method "sendData()" in the class Server when the user enter data in … | |
I work for a company that does not allow us to have access to the internet but I need to create graphs using HTML. What I want is this file to be able to read from a file and create a graph that tracks four values; A,B,C,D. The graph needs … | |
hi im a new memeber .iv started learning java recently. i was wondering could anyone help with this problem because i just cant seem to work out where i'm going wrong. its my method call thats giving me the proplem...i think. if anybody has any solutions i would be grateful … | |
I have recently encoutered an error that I have failed to figure out while trying to implement something in MVC. I have used a similar code on another program which seems to work but I cant figure out why this one is not working. I get the error code "cannot … | |
i require to submit a crime reporting system as my major project in engg. can anyone provide me with a similiar code in [B]java[/[B][/B]B] is there any way to store images and videos in a database...and then retrieving them from a java application.. plz five some example.. thank u in … | |
i am trying to add a bmp image file to a panel but i dont no how. i have been trying a few different code but nothing seems to be working for me. [code] ImageCanvas imageCanvas = new ImageCanvas(this,bi); visibleArea.add(imageCanvas, BorderLayout.CENTER); [/code] this code makes the area where th image … | |
In netbeans I added a scroll pane + bar inside one of my JPanels. When I drag enough items into the JPanel, the size of the JPanel increases in netbeans. How do I get it so that it stays at a fixed size, so I can use the scroll bar? | |
i want to replace a word in string by other word how do this simply ? | |
How to print Tokenizer and Split out put in Text Area? Normally is use System.out.print() to print them. I wan it print in Text Area or something like text area, anyone can help me out? Thanks. | |
Hello everyone, I am in big trouble, actually, I am developing a chat in Java. I am still on the server part, but the problem is that when i am clicking on a button to instantiates a class, the whole program freeze, please help me to figure out this problem. … | |
Hi guys, I have a J2ME application that I'm developing in NetBeans. It's ok. I however added one jar reference, let's call it x.jar, which is being seen by Netbeans. Upon compiling however, netbeans calls Preverify.exe with classpath references. It is not including this x.jar. It's causing preverify to return … | |
hi is it possible to poen some ports in java. give code for this. thank u. | |
hi i am having a bit of trouble displaying the mouse position in JTextField. i have currently done this code. i need to display the x and y positions inside the textfield. [code] private JTextField xTextField, yTextField; private int mouseX, mouseY; JPanel mousePanel = new JPanel(); xTextField = new JTextField … | |
Not sure how to call the methods in this program. [CODE]import javax.swing.JOptionPane; public class Main_Class { private static final char Y = 0; /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub /** * @param args */ // declare variables int input1, input2, … | |
So I have been messing around with Swing and am starting to grasp general functions with buttons and text boxes etc.. But what I want to do is have a main page (JFrame Form) with 3 buttons and when I click whichever button I want it to open another JFrame … | |
Hi all! I have several tables in an MsAccess db and I would like to read all data of a certain column to a Hashmap. With 3 tables and using static array, it' working but i have about 300 tables. With the static array, I used sg like this: [code=java] … | |
The Problem: Aircraft fly from one point to another. At the same time, birds fly around. The objective is to determine whether the aircraft will encounter birds or be able to reach its destination safely. The airspace is divided into 100 squares (10 x 10 squares). For simplicity, we shall … | |
I'm reading Data structures and algorith analysis by Weiss lately. There's just one part that doesn't make sense to me at all. [CODE=java]public class QuadraticProbingHashTable<AnyType> { public QuadraticProbingHashTable() { this(DEFAULT_TABLE_SIZE); } public QuadraticProbingHashTable(int size) { allocateArray(size); makeEmpty(); } public void makeEmpty() { currentSize = 0; for (int i = 0; … | |
Hi all, I am using JCIFS jar to connect samba server. Is there any possible to increase session time. | |
[i] Topic The topic of this question is: tracking the content of an array in a session bean debug sessionbean1.java [/i] [icode] Hello and Thank you in advance for any assistance. [/icode] [u] [b] Purpose: [/b] [/u] [b] The purpose of this code is to try to find the best … | |
Hi all, i am doing online banking project in java. i have MINI statement page which displays LAST 10 transactions. And i have DOWNLOAD link on MINI statement page. Onclicking the DOWNLOAD link "SAVE as" dialog box should popup asking users to save the ministatement to their locations on the … | |
I have a problem with my program. When i try to compile it it says i need a ; can someone try to compile it and please help me? [CODE]//This program will represent a pizza public class Pizza { private double cost; //the cost of the pizze private String crust; … | |
Hi everybody. I am writing a program that calculates the amount of Carbon Dioxide produced in a year from waste by a few selected households and comparing how recycling can reduce the CO2 footprint. However, I believe the code is correct; I am just not getting the expected output. So, … | |
Hi Guys! I am trying to get a scroll bar to go to the lowest position possible. I am using a chat program and it bothers me that I have to scroll down to see new messages! I googled around and found lots of answers for flash, and other languages … | |
HI all wonder if someone can help, i want to be able to printout specific elements within an arrayList without using array keys. I have the following code, which will print out every element in the array. I want to print out every 2nd element. So so i had a … | |
Name: The name of this file is table_autoincrementedId Hello and Thank you in advance for any assistance. Purpose: The project is a Visual web JavaServerFaces project that is in the same folder and that imports the app library. Modeled after the tutorial at Using Java Persistence API Within a Visual … |
The End.