32,199 Topics

Member Avatar for
Member Avatar for firebugg

Hi Everyone. I am working on an assignment with the following instructions... Enhance the DataSet class so that it can either be used with a Measurer object or for processing Measurable objects. Hint: Supply a default constructor that implements a Measurer that processes Measurable objects. I'm confused about how to …

Member Avatar for firebugg
0
517
Member Avatar for tonymate

Hi all, Below is a program that continues to give me multiple errors when I ran it. I kept getting error which I don't know how to fix and where/or what I did wrong. I need your help. Please bear with me as you read through this because it is …

Member Avatar for dreamcode
0
279
Member Avatar for Bladtman242

Hi guys, I have been searching the web a bit without success, perhaps I'm using the wrong keywords. Anywho, I'm looking for a way to monitor how many bytes are uploaded/downloaded from the computer, weather trough the winAPI or whatever, I would really appreciate any help on this :)

Member Avatar for Bladtman242
0
148
Member Avatar for A M R

i have problem in updating GUI from another thread my code gives me exception i debugged to find the reason of exception i found that it is here [ this part of Wedget class [code] if (display.thread != Thread.currentThread ()) { if (display.threadId != OS.GetCurrentThreadId ()) { error (SWT.ERROR_THREAD_INVALID_ACCESS);//hereeeee } …

Member Avatar for A M R
0
119
Member Avatar for A M R

Hi i wrote classes of content and label providers as illustrated here [url]http://www.vogella.de/articles/EclipseJFaceTable/ar01s05.html[/url] now i want to Bind my tableview with such list as it is done here with textfield and such strings [url]http://www.vogella.de/articles/EclipseDataBinding/article.html#swtdatabinding_dependency[/url] :-/ can i do that?

0
364
Member Avatar for Pezzy

Hello, I just started learning Java, and I'm having problems getting Kruskal's algorithm to work properly. While I have had more success implimenting this in C++, I'm still having issues there. I have a feeling my find() method may be the cause. I've been scouring the net trying to find …

Member Avatar for Pezzy
0
513
Member Avatar for devstarter
Member Avatar for verruckt24

My current project needs me to include the facilities of an email client into the system in order to keep track of all communication done through email. Designing an building an email client would be sort of re-inventing the wheel especially since thats not one of the core modules of …

0
74
Member Avatar for talha06

Hi everyone, I want to convert [B]JDBC ResultSet to JSON Array[/B]. As u guess, direct casting isn't allowed.. How can I convert my DB data which is stored in ResultSet to a JSON Array? I'll be happy if someone can help me. Thanx in advance, With regards, Talha..

0
108
Member Avatar for halfnode

[CODE]System.out.printf("%-10s \t %8d\n",name[i],stationA[i],getStationScore(stationA[i]),stationB[i],getStationScore(stationB[i]),stationC[i],getStationScore(stationC[i]),award[i]);[/CODE] hi all, i'm finishing up on this assignment of mine and can't figure out how to format my output correctly. the correct format should be Name Station Station Test A B A b but so far i only been able to manage to get Name Station Station …

Member Avatar for halfnode
0
110
Member Avatar for tapas.chand

[CODE] [B]Hi there I am using several insert statements in a method in Java. If the connection fails in between I want to roll back the inserted rows. I cant use [COLOR="Green"]con.rollback()[/COLOR], because there is no connection. How to handle such situation? Thanks in advance.[/B][/CODE]

Member Avatar for tapas.chand
0
73
Member Avatar for logicmonster

I have a program that a friend wrote for me in Java, however I'm trying to put it in C++ and I don't know Java myself. Does anyone know somewhere that I can get it translated? Or maybe someone who has time to translate it themselves? It all looks vaguely …

Member Avatar for javaAddict
0
184
Member Avatar for santiaguinho15

Sorry if this sounds silly but i am having a hard time understanding what "n" is when talking about big-oh. I know "n" is the data size but what does it really mean. Like in: public static boolean isArrayOver100(String[] args) { 2 if (args.length > 100) 3 return true; 4 …

Member Avatar for BestJewSinceJC
0
90
Member Avatar for PuQimX

my output output a large number of newlines to force the old board off the screen. how to stored the memory from first output if the first input is true but the second input not true. how to display to new line screen? import java.util.*; public class ModifiedMemory { public …

Member Avatar for BestJewSinceJC
0
70
Member Avatar for FotG2

I have a project set up using a JLayeredPane with a number of JLabel objects. Some are gray images, and others are images of cards. The cards are drag-able, but I'm trying to make them so they can only be dropped onto the blank spots, if its not one of …

Member Avatar for FotG2
0
113
Member Avatar for solomon_13000

I created the first package inside the directory C:\test\eugene\scjp containing the following source code: [CODE] package com.test.eugene.scjp; public class SuperClass { private String name; public SuperClass(String name) { this.name = name; } protected String getName() { return name; } } [/CODE] Then I created the second package inside the directory …

Member Avatar for solomon_13000
0
113
Member Avatar for bkinney

Hey everyone, I was just looking for some hints for my COMP class project. Im having a hard time getting started. My professor wants me to get true/false values of the pixel numbers to change the color(i still dont understand that). Ill post the first class and if you guys …

0
43
Member Avatar for LevelSix

I need to write a program that draws the next iteration if a koch snowflake, when a button is clicked. It begins with a equilateral triangle. The program uses an ArrayList, Polygon, and GeneralPath, as I found these imports in the starter code. I think I may also be supposed …

Member Avatar for BestJewSinceJC
0
954
Member Avatar for komyg

Hi, I am developing a small Web Service that should send and retreive a String. To do this I wrote the wsdl file below: [code=xml] <?xml version="1.0" encoding="UTF-8" standalone="no"?> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://itautec.com.br/Sagem/WebService/Impl" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="SagemWebService" targetNamespace="http://itautec.com.br/Sagem/WebService/Impl"> <wsdl:message name="WS_IdentifyRequest"> <wsdl:part name="parameters" element="xsd:string"/> </wsdl:message> <wsdl:message name="WS_IdentifyResponse"> <wsdl:part name="parameters" element="xsd:string"/> </wsdl:message> <wsdl:portType name="SagemWebService"> …

0
62
Member Avatar for rena0514

[code] import javax.swing.JFrame; public class Demographics { public static void main(String[] args) { JFrame frame= new JFrame("Survey"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.getContentPane().add(new DemographicsPanel()); frame.pack(); frame.setVisible(true); } } [/code] [code] import java.awt.*; import javax.swing.*; public class DemographicsPanel extends JPanel { public DemographicsPanel() { this.setLayout (new BorderLayout()); //Panel 1 (North) JPanel panel1 = new JPanel(); …

0
110
Member Avatar for siddharth jain

dear friends, i m working on recruitment and selection process project. i want ideas about what should i include in my project from employee and company perspective. regards siddharth jain <<[i]Email Snipped[/i]>>

0
51
Member Avatar for mag88

Hi am having problems creating a switch statement, in need to creatw the following statements N Neuromancer C Count Zero M Mona Lisa Overdrive B Burning Chrome V Virtual Light Choose a novel from menu above: c You chose "Count Zero" This is a main/driver class. Use a switch statement …

Member Avatar for majestic0110
0
142
Member Avatar for beforetheyknew

Hi guys, I'm really new to graphics and im trying to pick it up but struggling with a few points. Can someone provide some code on how i can set where a graphics shape should be created/spawn? eg like (32, 11) 32 pixels on the horizontal axis and 11 pixels …

Member Avatar for Ezzaral
0
119
Member Avatar for ChPravin

Hello All, I am getting concurrent modification exception while I have only a single main thread running.I am not sure why I am getting this exception.I tried to put final keyword before the iterator in the abpve code snippet and also tried to synchronize access to the lists but nothing …

Member Avatar for ChPravin
0
104
Member Avatar for Cort3z

Hi, I'm trying to set a double-value, but somehow it does not take my statements. This is what I got: [CODE] public double getDouble() { return aDoubleValue; } public double getAnothertDouble() { return aDoubleValue2; } public void myMethod(MagicObject a) /* Some magic */ //Here lies the problem: (FX is a …

Member Avatar for Cort3z
0
92
Member Avatar for bertyhell

is this a bug in nimbus or am i doing something wrong? i make this jframe: [CODE] package nimbus_bug; import java.awt.BorderLayout; import java.awt.Dimension; import javax.swing.ImageIcon; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.JTabbedPane; import javax.swing.UIManager; public class Main extends JFrame{ public Main() { try { UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel"); } catch (Exception e) {} this.setLayout(new …

0
74
Member Avatar for wandrewm
Member Avatar for bertyhell

i made a jtable in java with 2 columns when i select some rows and click a button it should get the selected rows but this array comes back empty here are some sniplets [CODE] JScrollPane scroller = new JScrollPane(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); scroller.setBorder(null); this.add(scroller,BorderLayout.CENTER); customers = new JTable(); scroller.setViewportView(customers); customers.setAutoCreateRowSorter(true); customers.setModel(new …

Member Avatar for bertyhell
0
568
Member Avatar for kgkamaraj

Hi. I am passing different kind of text file and calling same function.. Can any one know how to avoid these repeated code. [CODE] public static void main(String[] args) throws IOException,NullPointerException { MultipleLinearRegrssionModel fex = new MultipleLinearRegrssionModel(); //Calls Read From File //First ocument docsum=1; fex.readFromFile("f:/project/document/training/1.txt"); //Calls compare training corpus and …

Member Avatar for kgkamaraj
0
207
Member Avatar for polska03

I am only showing the spaceport and fileIO. I want the first line of my txt file to show the number of spaceship to create an array then choose what type of spaceship. I did the best i can and now i am completly stuck its not working. Can Someone …

Member Avatar for javaAddict
0
142

The End.