32,199 Topics

Member Avatar for
Member Avatar for denniskhor

[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 …

Member Avatar for ejosiah
-1
178
Member Avatar for dv1r

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 :)

Member Avatar for peter_budo
0
93
Member Avatar for Asmodaii

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 …

Member Avatar for Asmodaii
0
103
Member Avatar for djdanjo82

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 …

0
60
Member Avatar for neutralfox

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 …

Member Avatar for neutralfox
0
86
Member Avatar for ozzie212

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 …

Member Avatar for sharada.rk
0
236
Member Avatar for lounestor

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 …

Member Avatar for lounestor
0
132
Member Avatar for joshmo

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 …

0
84
Member Avatar for freaky.pandit

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 …

Member Avatar for verruckt24
-1
125
Member Avatar for sammyboy88

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 …

Member Avatar for jasimp
0
49
Member Avatar for BestJewSinceJC

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?

Member Avatar for BestJewSinceJC
0
2K
Member Avatar for m_sam6
Member Avatar for denniskhor

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.

Member Avatar for verruckt24
0
92
Member Avatar for neutralfox

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. …

Member Avatar for neutralfox
0
2K
Member Avatar for Rombosia

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 …

0
44
Member Avatar for prashant1111

hi is it possible to poen some ports in java. give code for this. thank u.

Member Avatar for masijade
0
61
Member Avatar for sammyboy88

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 …

Member Avatar for JamesCherrill
0
77
Member Avatar for charlie81

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, …

Member Avatar for darkagn
0
88
Member Avatar for jackiejoe

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 …

Member Avatar for weblover
0
117
Member Avatar for erdomester

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] …

Member Avatar for erdomester
0
1K
Member Avatar for danibarry

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 …

Member Avatar for quuba
0
143
Member Avatar for cppStudent

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; …

Member Avatar for cppStudent
0
903
Member Avatar for senthil12345

Hi all, I am using JCIFS jar to connect samba server. Is there any possible to increase session time.

Member Avatar for verruckt24
0
65
Member Avatar for ceyesuma

[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 …

0
56
Member Avatar for PradeepCR

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 …

Member Avatar for sillyboy
0
115
Member Avatar for peedi

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; …

Member Avatar for peedi
0
154
Member Avatar for jdbarry

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, …

Member Avatar for quuba
0
132
Member Avatar for PhiberOptik

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 …

Member Avatar for PhiberOptik
0
134
Member Avatar for VinceAshbySmith

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 …

Member Avatar for jasimp
0
78
Member Avatar for ceyesuma

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 …

Member Avatar for ceyesuma
0
115

The End.