31,001 Topics

Member Avatar for
Member Avatar for dreamslct

Hi everybody, I am planning to build a java programe named word counter. It shall have file view and help menu. A text field where user can type or paste text. A button which starts counting number of words in the text. and a text field where the total number …

Member Avatar for masijade
0
480
Member Avatar for kyojin

I'm trying to improve one of my project by adding texture to a shape. The shape is oval, it basically the moon. I want it to have a realistic feel rather than gradient fill. So I look up some tutorial and this is what i got from [url]http://java.sun.com/products/java-media/jai/forDevelopers/jai1_0_1guide-unc/Graphics.doc.html[/url] [ICODE] // …

0
57
Member Avatar for AhmedGhazey

[code]public double bigramPMI(String bigram,String []bi) { String[] arr = bigram.split(" "); int n11 = 0, n12 = 0, n21 = 0, n22 = 0, n1p = 0, np1 = 0, n2p = 0, np2 = 0, npp = 0; double m11 = 0, PMI = 0; for (int i = …

Member Avatar for pbl
0
133
Member Avatar for deniseblue

I have been trying to remove two errors in this code, line 12 (non-static variable this cannot be referenced from a static context) and line 204(cannot find symbol:(method `compareTo(java.lang.Object)` import java.util.*; public class InventoryPart3 { public static void main(String[] args) { Inventory invent = new Inventory(); <---[U]non-static variable this cannot …

Member Avatar for deniseblue
0
96
Member Avatar for skhenry

i am having this problem , i have 8 strings say ( boy,topped,pens,remotes ,boted ,toyed, car,house) but i am looking for 3 strings having substrings ending with a (ed,s,s ) for exapmle topp[COLOR="Red"]ed[/COLOR],pen[COLOR="Red"]s[/COLOR],remote[COLOR="Red"]s[/COLOR] however i have to check by first checking the first string boy and i throw it away …

Member Avatar for skhenry
0
191
Member Avatar for Sunshineserene

Hi all, I am having some problem writing an ImageJ plugin for display image histogram. [CODE]import ij.ImagePlus; import ij.plugin.filter.PlugInFilter; import ij.process.ByteProcessor; import ij.process.ImageProcessor; public class Create_New_Image implements PlugInFilter { String title = null; public int setup(String arg, ImagePlus im) { title = im.getTitle(); return DOES_8G + NO_CHANGES; } public void …

0
86
Member Avatar for Awesomeness

I can turn on anti-aliasing, but whenever I draw stuff the arguments are still ints, not floats or doubles. How can I change this?

0
50
Member Avatar for rahul8590

Well i intended to develop a sohisticated java server client program . but just couldnt push myself so far so ust had to satisfy myself with it. Well , i have created a simple chatting interface . i would not call it a chatting interface actually cuz i had something …

Member Avatar for rameshccet015
0
181
Member Avatar for LianaN

Hi! When I try to run the code [ICODE]tableModel.setQuery("select l_code, l_title, l_description from Lists");[/ICODE], then I receive the following error: [CODE] java.lang.ArrayIndexOutOfBoundsException: 0 >= 0 at java.util.Vector.elementAt(Vector.java:427) at SystClasses.QueryTableModel.getValueAt(QueryTableModel.java:72) at SystClasses.QueryTableModel.getColumnClass(QueryTableModel.java:53) at javax.swing.table.TableRowSorter.useToString(TableRowSorter.java:224) at javax.swing.DefaultRowSorter.updateUseToString(DefaultRowSorter.java:607) at javax.swing.DefaultRowSorter.sort(DefaultRowSorter.java:556) at javax.swing.DefaultRowSorter.allChanged(DefaultRowSorter.java:816) at javax.swing.DefaultRowSorter.modelStructureChanged(DefaultRowSorter.java:826) at javax.swing.JTable.tableChanged(JTable.java:4364) at javax.swing.table.AbstractTableModel.fireTableChanged(AbstractTableModel.java:280) at SystClasses.QueryTableModel.setQuery(QueryTableModel.java:110) at SystClasses.Form.createAdminTable(Form.java:747) at …

Member Avatar for LianaN
0
273
Member Avatar for guessvic

Hello all, is that possible to help me out with Error Checking for user input? I am developing a peg solitaire program and now need a error checking for user input or for input file. Either use try and catch.. or making another method.. can anyone give a me a …

Member Avatar for geerthan08
0
324
Member Avatar for Naynah

I have to create all the method signatures in the ResizableArrayList and then fill it in with comments. And each method is supposed to be blank with a return null or --1. How do i do this?

Member Avatar for richieking
0
104
Member Avatar for hisrichness

Hey, I've gota make a program that reads characters from a text file, produces the Huffman code tree, and prints the codes for each character in the file. I've already written the code to read chars from a text file, but the Huffman code tree is the part I'm a …

Member Avatar for hanvyj
0
394
Member Avatar for Naynah

I have to create all the method signatures in the ResizableArrayList and then fill it in with comments. And each method is supposed to be blank with a return null or --1. How do i do this?

Member Avatar for hanvyj
0
174
Member Avatar for aleX_X

Here is what I need to do: have three editable text fields labelled operand1, operator, and operand2, and a fourth read-only text field labelled result. Have a button labelled Calculate. WHen the button is clicked the appropriate operator is applied to the two operands and the resulting value placed in …

Member Avatar for hanvyj
0
146
Member Avatar for tnclark8012

Hi all, I'm having a bit of a problem implementing a GUI and have no experience in multi-threaded programming. Here's the what I need to do: -Open GUI with file chooser -After user has selected 2 files, return control back to Main, along with an array of the selected files/file …

Member Avatar for hanvyj
0
117
Member Avatar for atoivan

i want to write a a program that will accept student name and grades and output it.use an array data structure in the implementation this program and implement the following write method that will traverses the array and allow the user to perform the following processes a) search for a …

Member Avatar for JavaDad
0
147
Member Avatar for javeria3

The problem is Design a class named Person with fields for holding a person's name, address, and telephone number. Write one or more constructors and the appropriate mutator and accessor methods. Next design a class named Customer, that extends the Person class. The Customer class should have a field for …

Member Avatar for jon.kiparsky
0
3K
Member Avatar for bejums

Hello I'm having trouble extending JPanel. I know how to extend JFrame but my assignment calls for JPanel. Here is what I have: [CODE]import java.awt.Color; import java.awt.FlowLayout; import java.awt.Graphics; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JTextField; public class Guess extends JPanel { private …

Member Avatar for bejums
0
3K
Member Avatar for Slyvr

I'm trying to organize my frame so that I have two panels, one on the left and one on the right, sort of like a website design with buttons on the right and empty text area on the left. How in the hell is this accomplished? I've been screwing around …

Member Avatar for Ezzaral
0
84
Member Avatar for ashu12v

Hi.... I have made this code for my college project but don't understand why i am getting some errors like 2 Error : java.sql.SQLException: [Microsoft][ODBC Driver Manager] Invalid cursor state (This error occured while checking availability of seats...) Also the Report section of project is not showing anything can anybody …

0
45
Member Avatar for spades0001

Hey guys! So, I created this form, but I can't seem to add color to it. I'm trying to make it color red. I've been trying to change the color for 2 days cuz I'm a noob :) Thanks guys! Here's code by the way: [code] import java.awt.*; import java.awt.event.*; …

Member Avatar for masijade
0
289
Member Avatar for alvalany

Hi friends, I am doing Bachelor's Course In Computer Science Engineering. Recently I recently completed my course on Application Development and Database Management. Coincidentally a few days ago I was asked by my friend to do a simple software for managing his store. So, i thought I got an opportunity …

Member Avatar for JamesCherrill
0
95
Member Avatar for alvalany

Hi friends, I am doing Bachelor's Course In Computer Science Engineering. Recently I recently completed my course on Application Development and Database Management. Coincidentally a few days ago I was asked by my friend to do a simple software for managing his store. So, i thought I got an opportunity …

Member Avatar for alvalany
0
130
Member Avatar for hanvyj

Ok, im gonna go ahead and just paste most of the stack trace in, (its massive) : java.io.NotSerializableException: com.sun.java.swing.plaf.windows.XPStyle at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at javax.swing.JComponent.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at …

Member Avatar for hanvyj
0
425
Member Avatar for Kiseki

Im currently running out of ideas at the moment and need some suggestions or ideas. [B][I]The alert (a popup) should be generated when the time at which the call-back time has been requested is in 1 minute from the current time.[/I][/B] My current program uses a while loop which keep …

Member Avatar for Kiseki
0
149
Member Avatar for manaila

Hi, Does Java provide any API that enables the communication between the Java GUI and an FPGA or any other hardware device? Cheers

0
62
Member Avatar for Transcendent

What is the difference between writing a application java program and a java program? I was asked to write an application java program and then I was asked to write a java program(s). Which is just one program and which is the one with that has to have two files …

Member Avatar for Slimmy
0
140
Member Avatar for sijothomas

Dear friends Please give me the JAVA CODE FOR CONVERTING COLOR IMAGE TO GREYSCALE IMAGE and creating the histogram of that greyscaled image .Including header files also... Anyway thanks in advance May GOD blessyou bye....

Member Avatar for masijade
-2
88
Member Avatar for crisabraham

I am doing a project on developing a one time password system. In that, I have to encrypt a counter value and secret key together by HMAC SHA 1 algorithm. But the counter value and key need to be stored very safely on the server. Is there anyway by which …

Member Avatar for JamesCherrill
0
122
Member Avatar for fenomenal

I have to create a class that will pick partners at random for my class tomorrow, out of the people that are in it. What I have so far is simple enough... [CODE]import java.util.*; import java.util.Random; public class GetPartners { public GetPartners() { } public void getPartner() { String[] names …

Member Avatar for masijade
0
98

The End.