32,204 Topics
| |
Hello All, I've been through this article and found it very helpful {http://msdn.microsoft.com/en-us/library/bb250489(VS.85).aspx}. I have a 'static' callback method in my BHO dll which is called whenever 'some' event on the computer happens. I need to call a javascript method on all open browser instances when that happens (or do … | |
I am testing with HttpGet to simply see if it would download anything from my website, but the application crashes on startup. Anyone know why? [code=Java]package com.httptest; import java.net.URI; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import org.apache.http.client.methods.HttpRequestBase; public class httptest extends Activity { /** Called when … | |
How to set caption icon in java? Like firefox icon on the top caption bar. and how to run a process in background in java? Thank you. | |
Hi guys, I have a problem using GridBagLayout. I will paste my code here. You can run it. Sorry for the length :) I tried to comment it as much as possible. So there are three panels in this GUI. One left, one right, one south. The problem is only … | |
I need help designing a method that finds the percentile of a value given the percentile rank. Here are the exact instructions: public double getPercentile(int p) This returns the value of the pth percentile. A value stored in the array is the pth percentile if it is greater than or … | |
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 … | |
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 … | |
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 :) | |
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 } … | |
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? | |
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 … | |
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 … | |
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.. | |
[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 … | |
[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] | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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"> … | |
[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(); … | |
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]>> | |
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 … | |
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 … | |
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 … | |
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 … |
The End.