32,199 Topics

Member Avatar for
Member Avatar for mikewyatt

I have a popup window that instead of the ordinary YES_NO_CANCEL_OPTION I want the user to select from 3 options {A, B, or C} static int Select_Use_Move_Items(int Select_Col){ int n = JOptionPane.showOptionDialog(frame, "Select Option for:\n "A: Remove - Discard one Item\n"+ "B: Transfer one Item to Person\n"+ "C: Transfer one …

Member Avatar for mikewyatt
0
358
Member Avatar for game06

i am making a calculator in swing and need help with some logic. so some of button my cal will have: 0,1,2,3,4,5,6,7,8,9,dot, mult,divide,mod, equal,sqrt, ln,log,sin,cos,tan, ^, exp, fractor, etc...... bc i have alot of buttons i need a good way to compute them. here what i am thinking: first user …

Member Avatar for stultuske
0
225
Member Avatar for durgesh1

hello all i need to create comobox untill value come from database,example:-if in data base have 5 value then there should be five combox and value should be set in combobox each time automatically anyone help me to how create combobox that should equal to np. of value in database

Member Avatar for stultuske
0
213
Member Avatar for cleve23

Hi all, I was trying out this for loop example and i notice that the for loop only works for the printing of x.The printing of y value did not work at all until the loop ends. I am trying to understand how for loop actually works. Am i right …

Member Avatar for cleve23
0
135
Member Avatar for DeadH34d

Hey guys, I'm working on a tip calculator as an excercise from the book I'm using to learn Java, and I've run in to a bit of a problem. When I run this code: import java.util.Scanner; public class TipCalculator { public static void main(String[] args) { Scanner input = new …

Member Avatar for DeadH34d
0
254
Member Avatar for Fatima_110

I have no idea how to do this: Create a class called Date that contains three pieces of information as instance variables – a month, day and year e.g. 4, 14, 2007. All three of type int. Your class should have a constructor that initializes the three instance variables. Provide …

Member Avatar for JamesCherrill
0
223
Member Avatar for cleve23

Hi I keep having problem on trying to call the method 'in3050'.Please someone guide me on this???? Thanks public class NumberCheck { private static void main(String[] args) { int num1 = 31; int num2 = 40; boolean check = in3050(num1,num2); } public boolean in3050(int a, int b) { if (a …

Member Avatar for cleve23
0
295
Member Avatar for mesbahuk

I am working on a Java to C# conversion project. In this project, my custom java library uses `java.net` packages [`DatagramPacket`](http://docs.oracle.com/javase/1.4.2/docs/api/java/net/DatagramPacket.html) and [`DatagramSocket`](http://docs.oracle.com/javase/1.4.2/docs/api/java/net/DatagramSocket.html) classes. Are there similar classes in .NET C# with similar functionalities?

Member Avatar for ddanbe
0
332
Member Avatar for FrenzyMo

Create a program using JCreator that will accept student`s information. It should also accept his/her exam score for a specific quarter. Then the program must compute for the exam`s equivalent grade. Lastly all exam grades must be accumulated in order to get the student`s final grade. Prelims,midterm,prefinals 20% and finals …

Member Avatar for JamesCherrill
-1
507
Member Avatar for mesbahuk

I have java code that uses Java's `java.util.Timer.schedule()` method. **Method Description:** *The `schedule(TimerTask task,long delay,long period)` method is used to schedule the specified task for repeated fixed-delay execution, beginning after the specified delay.* public void schedule(TimerTask task,long delay,long period)java.util.Timer.schedule() Is there an equivalent method in C#? If NOT, how can …

Member Avatar for Momerath
0
487
Member Avatar for CuteOrchidd

Hi all, I want to know the java code for transfering the multiple files between server nodes to server node. With advance thanks, CuteOrchid

Member Avatar for CuteOrchidd
-1
252
Member Avatar for mayback230

I have this array in a page and i want to call it into a listview or textview in another page...how do i do that? [CODE]public class Screen2 extends Activity { public static EditText txt1; public static String player; public static ArrayList<String> playerList = new ArrayList<String>(); /** Called when the …

Member Avatar for jwenting
0
339
Member Avatar for NardCake

Hello! I've been very interested in the V8 JavaScript engine recently, so I fetched the source and built it successfully, so far so good. I also successfully compiled the [Hello, World!](https://developers.google.com/v8/get_started) program Google provides. I've also read the [embedders](https://developers.google.com/v8/embed) guide. Other than that I can't find any documentation or examples …

Member Avatar for NardCake
0
156
Member Avatar for somjit{}

my `display()` method is public and looks to be defined , however eclipse says that its not defined. this is a code for an amortized time resizing circular array. can someone help me out here ? also , please do point out if you see something else wrong with the …

Member Avatar for somjit{}
0
289
Member Avatar for JamesCherrill

I have a bizarre thing just happened in NetBeans - the red error markers on the LHS of the editor window have all vanished. There are still errors - the files are flagged as having errors, and the errors are correctly diagnosed when I do a clean/rebuild, but no error …

Member Avatar for JamesCherrill
0
295
Member Avatar for rmad17

<%@ page contentType="text/html; charset=UTF-8" %> <%@ taglib prefix="s" uri="/struts-tags" %> <html> <head> <title>Hello World</title> </head> <body> Hello World, <s:property value="name"/> </body> </html> I tried this code from an online tutorial. However eclipse says 'Can not find the tag library descriptor for "/struts-tags"' in line 2. Do I need to set …

Member Avatar for rmad17
0
285
Member Avatar for jshlmnc

I am having trouble getting started with my program. I have writen the array but I am having trouble starting the if statemnent to fill the seats in the program. If they press 1 it needs to fill seats 1 through 5 if they press 2 it needs to fill …

Member Avatar for JamesCherrill
0
311
Member Avatar for mgold

I'm new to JavaFx and Java GUI development in general. For those not fermiliar, it seems that JavaFx threading has some similarities to swing. Anyway, I'm a little confused about when to use a `Thread` class and when to use JavaFx's worker classes (`Task<a>` for example). Should I use JavaFx …

0
119
Member Avatar for cool_zephyr

how can we get the list of all the classes that are currently loaded in the Java Virtual Machine(JVM)?? it'd be better without the use of any external libraries..thank you.

Member Avatar for rubberman
0
7K
Member Avatar for matt.harding.14203

For the below program: import java.util.*; public class triangleLoop { public static void main (String[] args) { int height, row, col, spa; String leftOrRight; char hyp; Scanner kbd = new Scanner(System.in); System.out.println("Enter the desired height of the triangle: "); height = kbd.nextInt(); kbd.nextLine(); System.out.println("What side do you want the hypoteneuse …

Member Avatar for JamesCherrill
0
265
Member Avatar for matt.harding.14203

I'm having trouble with this: import java.util.Scanner; public class triangleLoop { public static void main (String[] args) { int height, row, col, spa; String hyp; Scanner kbd = new Scanner(System.in); System.out.println("Enter the desired height of the triangle: "); height = kbd.nextInt(); System.out.println("What side do you want the hypoteneuse on? (left/right)"); …

Member Avatar for cmps
0
2K
Member Avatar for CoilFyzx

Hello everyone. I have successfully added an image to my JPanel, but what I want to do is this: I want to be able to mark a section of the image as clickable. Then when the user clicks within that section, I run some action. So essential I want to …

Member Avatar for sirlink99
0
223
Member Avatar for CoilFyzx

Hello Good day. I have an interesting question as it relates to adding a background image to a JPanel (or whichever component is best for what I'm trying to achieve. Hopefully I'll get some help here.) I have a large picture that I want to use as a background image …

Member Avatar for CoilFyzx
0
402
Member Avatar for manalibhadula

Hi , I am new to hibernate and facing issues with composite key mapping.Please help,.While running class name Example,At line 36:- **List sites = session.createQuery("Select h from SiteStageDto h").list();** code is returning null pointer,the hql is returing right query but unable to fetch data to list. I am also posting …

Member Avatar for manalibhadula
0
337
Member Avatar for gsdguru

I have been looking at the code below and it is driving me nuts. Can anyone explain the error and resolution? When I compile to code below I receive the following compilation error: cannot find symbol symbol : class User location: class com.atlassian.jira.rpc.soap.beans.RemoteUser package com.atlassian.jira.rpc.soap.beans; import com.atlassian.jira.user.util.UserManager; import com.atlassian.jira.user.util.UserUtil; public …

Member Avatar for gusano79
0
364
Member Avatar for sirlink99

I am attempting to make a Dictionary like software. The way this software will work is that You will be able to enter a word into a search bar, and the dictionary will search for the word. It will display the word, the pronunciation and the meaning of the word …

Member Avatar for sirlink99
0
431
Member Avatar for benjo.s.lucas

I want to sort it by not using Array sorting. import java.util.Scanner; public class practice5 { public static void main(String[] args) { Scanner p = new Scanner(System.in); int i,j,temp = 0; int min=0, max=0; String w; System.out.print("Enter a Number to sort:"); w = p.nextLine(); String[] m = w.split("\\s+"); int [] …

Member Avatar for somjit{}
0
300
Member Avatar for Dino000

How to make [Java Websocket](http://java-websocket.org/) work with [Hessian protocol](http://java.dzone.com/articles/hessian-web-service-protocol)? I need both server and client using Hessian to communicate, but I don't know if it is possible and what to do. Thanks.

Member Avatar for peter_budo
0
215
Member Avatar for yudop

hello, I want to write a cybercafe application using java that allows users to login wit a preconfigured password that also reflect different time the cafe client wishes to spend. I dont know how to start and would be glad if you guys could show me where to start from. …

Member Avatar for JamesCherrill
0
240
Member Avatar for warren13

I have 7 edit text boxes established as preferences they are workiing correctly and when selected they display their vaue. But I would rather that they display their vaue from the preferences screen if a value has been entered instead of requiring the need to click the preference to open …

Member Avatar for JamesCherrill
0
196

The End.