31,001 Topics

Member Avatar for
Member Avatar for kuay

You are the leader of a crack intelligence unit, and today your team intercepted a set of encrypted messages ('ciphertexts') from 'IndyBoy', a well known and much feared terrorist leader. It is thought that these ciphertexts contain instructions to his henchmen on which targets to attack next. Your team knows …

Member Avatar for kuay
0
92
Member Avatar for desmiserables

i have a textarea where a user can enter free flow text.I want to seperate out lines/occurences in my java class based on the below conditions: Unless the user presses the enter key i want to get substrings(texts) of 15 characters each or else whenever the user presses enter i …

Member Avatar for kvprajapati
0
91
Member Avatar for localp

I need to Stream [B][COLOR="Red"]Live[/COLOR][/B] Audio and Video, i went through a web site, and it gives a code, [URL="http://www.cs.odu.edu/~cs778/spring04/lectures/jmfsolutions/examplesindex.html#transmitboth"]http://www.cs.odu.edu/~cs778/spring04/lectures/jmfsolutions/examplesindex.html#transmitboth[/URL] in this, i dont no how to run the application, because we should have 2 port addresses each for Audio and Video. how do u compile this(The Command line arguiment) …

0
83
Member Avatar for peter_budo

I'm having small issue with drawing on panel. Neither image or text appears, however background is set correctly therefore it has to be due some issue inside my paintComponent() method. [code=Java] import java.awt.Graphics; import java.awt.Color; import java.awt.Dimension; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import javax.imageio.ImageIO ; import javax.swing.JPanel; public class …

Member Avatar for peter_budo
0
155
Member Avatar for Lensva

if using tomcat with eclipse plugin everything works fine through the eclipses built-in browser. is it suffice to say if i copied the eclipses project to tomcats webapps it should work as well? heres how my eclipse project looks like: [URL="http://i40.tinypic.com/315e713.jpg"]http://i40.tinypic.com/315e713.jpg[/URL] invoking html is in WebContent\ WelcomeServlet.html proccesing .class in …

Member Avatar for Lensva
0
98
Member Avatar for bensjomic

Hi all, I'm trying for a long time, to make a program working in java. I would load a JPanel in my java programm when i press on a menu item. Now i have made a function ChangeRoot(); in the main class. After that he must change the contentPane();. Can …

0
44
Member Avatar for weblover

hi all ..how are u ? i have a security project in java ...i have to implement the DES cipher and the Stream cipher ...with GUI ..where can i find a working source code for these ciphers ...can someone help plz ...and thnx in advance?

Member Avatar for weblover
0
118
Member Avatar for henks

[CODE]class Panelz extends JPanel{ public String test; Panelz(KeyListener ky){ addKeyListener(ky); test = "Empty"; } public void paint(Graphics g){ g.drawString(test, 10, 10); } } public class Begh extends JFrame implements KeyListener{ Panelz a = new Panelz(this); Begh(){ super("Press"); setLocationRelativeTo(null); add(a); setSize(500, 500); setVisible(true); setDefaultCloseOperation(EXIT_ON_CLOSE); } public static void main(String[] args) { …

Member Avatar for henks
0
111
Member Avatar for baftjar

Hi folks, Guess what....I am kind of new to OO programming programming. However, I have this task to complete in next week and if someone is willing to help, would be much appreciated. Task: Given input file A, translate the content to produce output file B File A: Consists of …

Member Avatar for Salem
0
160
Member Avatar for multicoder

My application uses many such packages which are not inborn sun packages and need to download and configure them for application to import properly. like import org.apache.commons.lang.StringUtils; or like import org.apache.log4j.Logger; etc. and also the java advanced packages like group of javax 's packages, I dont wanna to download the …

Member Avatar for multicoder
0
147
Member Avatar for Lotus_2011

Hi : I am beginner in using java , I tried to add bignumber using java my program enter numbers and add them , stop when user enter 0 then show the summation. [CODE] import java.util.Scanner ; import java.math.BigDecimal; public class CODE { /** * @param args */ public static …

Member Avatar for Lotus_2011
0
132
Member Avatar for vanpersie

Hi guys Iwant to connect java to oracle ,but Iam not familiarneither jdbc nor in setting classpath however depending on my little information,I used the following code [CODE=java] import java.sql.*; public class OraThin { public static void main(String[] args) throws ClassNotFoundException, SQLException { Class.forName("oracle.jdbc.driver.OracleDriver"); // // or // DriverManager.registerDriver // …

Member Avatar for vanpersie
0
238
Member Avatar for nickguletskii

Toxic. When I set look and feel, and have a static JProgressBar, the look and feel resets to "Metal". Anybody, please explain this behaviour.:@ :icon_mad:

0
57
Member Avatar for smoore

Hey guys. In my Data Structures Class today somehow we ended up talking about the Monty Hall Problem for a little while. Anyways I got bored and wrote code to statistically check if it is correct (even thought I know it is). For those of you who don't know what …

Member Avatar for yilmazhuseyin
0
262
Member Avatar for jamojo

Hello Everyone, Can you give me some idea on how to connect to an https site which requires user name and password? I would like to download or upload a file to the https using Java. Is this possible? Any suggestions are greatly appreciated. Looking forward to your replies. Thanks …

Member Avatar for jamojo
0
110
Member Avatar for acplayer

In my application I have: Class B Class C extends B. Class C contains one method that overrides a method in B. Lets call the method myMethod and Class C has the constructors that simply call the super method in the parent class. In a JSP file that uses these …

Member Avatar for JamesCherrill
0
73
Member Avatar for djdanjo82

Hello All. First, I thank you all for viewing this thread. Second, I was wondering if anyone here knows of a way to pull data from Wireshark and to insert it into an Eclipse Application. My eclipse application is measuring data sent across a network. If I can pull packets …

Member Avatar for djdanjo82
0
245
Member Avatar for komal_asrani

Hello I am looking forward for converting a .jpg image into binary image. Please guide me.

Member Avatar for JamesCherrill
0
29
Member Avatar for anusha88

hii,im new to java graphics.can anyone tell me how to create a circular slider(like a Jslider just its circular in fashion).

Member Avatar for smilingruheena
0
95
Member Avatar for mybluehair

Hello. I'm developing a game in c++ and have found that you almost have to be Bill Gates to figure out how to connect to the internet using c++. So I've taken the idea that I should create the first section of my game in Java. This section would open …

Member Avatar for BestJewSinceJC
0
77
Member Avatar for Killer_Typo

[CODE]Could not connect to: : 50404 java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:520) at java.net.Socket.connect(Socket.java:470) at java.net.Socket.<init>(Socket.java:367) at java.net.Socket.<init>(Socket.java:180) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.connect(RemoteTestRunner.java:560) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:377) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) [/CODE] has anyone run into this issue and or find a fix? I've not been …

Member Avatar for dmanchester
0
1K
Member Avatar for jooa

Hi, I am trying to write some code which uses a JSlider to specify the number of lables to be displayed on a frame. I know how to create the JSlider and display it, but I am not sure how to implement different numbers of lables. I hope someone can …

Member Avatar for VernonDozier
0
104
Member Avatar for weblover

hi all ...how are u? i have a question ...how can i output the items of a java Stack ...is there any predifine method?? and another question ...how can i use the class Queue without interface ? ...because i'm typing in my code (Queue q =new Queue();) but it's giving …

Member Avatar for weblover
0
197
Member Avatar for titosd

Hello, I have a question about sorting. How can I sort HashMap by element in the HashMap ? That's meaning, if I have in the Sys class map such as: [code=java]protected Map <Constructors,RaceTeam>raceTeam=new HashMap<Constructors,RaceTeam>();[/code] and in the RaceTeam class I have this variables: [code=java] protected Constructors name; protected int totalScore; …

Member Avatar for titosd
0
86
Member Avatar for kakakon

Hello, I have a Tree structure with custom TreeNode nodes. The structure of TreeNode is: private int level; private String label = null; private String data = null; private TreeNode parent = null; private Vector <TreeNode> children = null; I should find each unique path from root to all leaves …

Member Avatar for kakakon
0
159
Member Avatar for juser11

Am having problem calling a simple stored proc to insert data from a java program. The insert statement works fine when called directly with prepare statement. But when I use call it through a strored proc I get an error. jar file is ojdbc5.jar. - oracle10g. Then i tried another …

Member Avatar for kvprajapati
0
778
Member Avatar for samrin

this is my code and it says i have problem in line 5 which i couldnt solve . can anyone please help me with this soon! [code=java]import java.text.*; public class SavingsAccount { private double static annualInterestRate; //declare static variable private double savingsBalance; //instance variable public SavingsAccount(double bal); //constructor { savingsBalance= …

Member Avatar for samrin
0
117
Member Avatar for KirkPatrick

I'm having a problem deciding how to handle a situation. I'll briefly explain whats going on before I ask the question(s). I have a viewObject (bean) and what it does is display information that is gathered. To keep it from getting too complicated I'll say I have 3 jLabels. One …

Member Avatar for ~s.o.s~
0
93
Member Avatar for exzibit23

is it possible to use try catch exception inside while loop? [code=java]while(username_ctr <= 5){ try{ user1 = str_div[username_ctr].indexOf("open_pm_tab",username_start); user2 = str_div[username_ctr].indexOf("')", user1); user3 = str_div[username_ctr].lastIndexOf(',', user2) + 3; str_username[username_ctr] = str_div[username_ctr].substring(user3, user2); //System.out.println(str_div[username_ctr].substring(user3, user2)); username_ctr++; }catch(Exception e){ slash1 = str_div[username_ctr].indexOf("</font", 0); slash2 = str_div[username_ctr].lastIndexOf('*', slash1); //System.out.println(slash1); //System.out.println(slash2); //System.out.println(str_div[username_ctr].substring(slash1, slash2)); //System.out.println(str_div[1].substring(slash2,slash1)); …

Member Avatar for ~s.o.s~
0
4K
Member Avatar for Web_Sailor

Hi, I am trying to do something like this:- [CODE]1 10 20 30 ##########|##########|########## rect 1 rect2 rect3 5 ########### 15 user rect - (transparent and temporary based on user mousedrag) [/CODE] Now If a user clicks suppose in the middle of rect1 and drags it to the middle of …

Member Avatar for Web_Sailor
0
158

The End.