32,204 Topics

Member Avatar for
Member Avatar for dgrblr

I have an existing Access database that works well using Access. However, the HR department has convinced management to change to Java as the programming language of choice. I have done very little programming in Java, and have NO CLUE how connect to an Access database (2003), how to read, …

Member Avatar for peter_budo
0
423
Member Avatar for cool_zephyr

I was trying to send an email using javaMail API using my own smtp server to gmail/hotmail/etc..I put the following code to specify smtp server's settings Properties props = new Properties(); props.put("mail.smtp.auth", "true"); props.put("mail.smtp.host", "my smtp host"); props.put("mail.smtp.port", "my smtp host's port"); Session session = Session.getInstance(props, new javax.mail.Authenticator() { protected …

Member Avatar for cool_zephyr
0
276
Member Avatar for mgold

I was just wondering if anyone other than me thought that it would be incredibly usefull to have a language that was both dynamic AND statically typed. **Using Java as a example, it could do the following:** **1)** Define a special dot operator that auto type casted something of type …

Member Avatar for ~s.o.s~
0
210
Member Avatar for bibiki

hey there, I am looking at a maven project that makes use of another maven project. say project A and project B. In context.xml in project A, I see these two lines <value>classpath:oneFile</value> <value>classpath:otherFile</value> I have been trying to figure out what is the actual value of classpath, so what …

Member Avatar for bibiki
0
185
Member Avatar for Morley93

Hi all, I have recently been give a project to create an invoicing system for a small business. The system needs to be able to easily add new customers and store them for usage within invoices. There also needs to be a form to enter invoice data and invoices need …

Member Avatar for 1stDAN
0
259
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
359
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
494
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
298
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
286
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
225
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
407
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
367

The End.