36,051 Topics

Member Avatar for
Member Avatar for iamtheuser

I need to open two pdf files as popup window on click ona button in asp.net C#,but now its opening only the first popup?Can anybody help me ,to open the both windows at the same time? This is my code: string PDFPath = folderpath + filename; string PopupName = "popUp"; …

Member Avatar for krunal1986
0
440
Member Avatar for rajilakshmi

In PHP using isset() function for checking the form value is set or not? Like wise which methed is used in java? Any one can help ASAP..?

Member Avatar for JamesCherrill
0
2K
Member Avatar for teomurgi

Hi all I would like to embed an encoded image into an FXML (i need this in that I'm coding a converter between svg and fxml). I tried with this: <AnchorPane id="AnchorPane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0" xmlns:fx="http://javafx.com/fxml"> <children> <ImageView fitHeight="150.0" fitWidth="200.0" layoutX="153.0" layoutY="94.0" pickOnBounds="true" preserveRatio="true"> <image> <Image url="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYEAYAAACw5+G7AAAABmJLR0T///////8JWPfcAAAA …

0
229
Member Avatar for Erdem.

i use <c:forEach like this <% ArrayList<Categorie> categories = new CategorieDao().getAll(); request.setAttribute("categories", categories); %> <c:forEach items="${categories}" var="categorie"> <a href="film.jsp?id=${categorie.id}> ${categorie.ad}</a> </c:forEach> but how can i use this categorie's attribute in java tag like this <cc <c:forEach items="${categories}" var="categorie"> <a href="film.jsp?id=${categorie.id}> ${categorie.ad}</a> <% int count= new CategorieDao.getSome(***categorie.id***); %> </c:forEach>

0
61
Member Avatar for elkowalski

hi guys, i was wondering if someone can point me in the right direction of how to create an interface with a playstation usb controller for a game that i have in java. thanks

0
63
Member Avatar for branflake

On my class side I cannot seem to get netPay to calculate and am also having problems with finding insDeduct. On the demo side I have you choose between S - Single and M - Married. Any help would be greatly appreciated. [CODE]public class ChapterFiveClass { // Declare some fields …

Member Avatar for SylvesterAbreu
0
140
Member Avatar for GlenRogers

Can someone point me in the right direction for formatting text and aligninng text in a JTextField? Thanks...

Member Avatar for GlenRogers
0
2K
Member Avatar for ktsangop

Hi everybody! I am having some trouble running a detached process using CreateProcess function in C++. I have been using the following function to spawn processes in c++ for years now havnig no trouble. I have used it with console applications, mfc apps, dialog based ... etc : StartProc(char *callprogram, …

Member Avatar for ktsangop
0
825
Member Avatar for Liz Cherian

Hi, I have this customised framework in which the welcome page gives a call to the servlet which further gives the resp. jsp that needs to be displayed. Can somebody suggest how can i do this. Thanks.

Member Avatar for stultuske
0
42
Member Avatar for gacusana.aljan

how to create a window with label and button above the label. can you codes this label : MAIN MENU BUTTON : RECURSION BUTTON: EXIT PLEASE HELP ME ! ITS ALL ABOUT RECURSION

Member Avatar for stultuske
0
107
Member Avatar for jdseader

The following four classes are an attempt to set up three different JFrames and switch between them. The three frames are: MainView, DetailView, and FormView. The main class is MultipleFramesExample. The four source codes constitute a NetBeans project with a package called FrameViews. MainView, DetailView, and FormView are essentially identical …

Member Avatar for JamesCherrill
0
4K
Member Avatar for fularipk

hello, I created project using jsp pages in netbeans.And we are running index page file by starting netbeans.But it should be handled by end user easily like by shorcut on desktop(icon).so in which format it should be given to end user.Means when we are creating project in java then that …

Member Avatar for stultuske
0
146
Member Avatar for cmmmm

When i run a single number (1-9), it'll output as ONEONE or TWOTWO, etc.. As well with numbers 11-19, they'll show up as ONEELEVEN or TWOTWELVE, etc. 20-100 outputs fine whereas 101 becomes ONE HUNDRED TEN ONE ONE, etc.I have no idea what I've done any help would be greatly …

Member Avatar for stultuske
0
240
Member Avatar for bloodbender

Hello Daniweb! I have a .txt file on a URL and I'm able to read its contents and display them however and wherever I want in my applet without any issues with this simple code: URL url = new URL("http://blabla.com/something.txt"); BufferedReader input = new BufferedReader(new InputStreamReader(url.openStream())); String str; Boolean continueLoop …

Member Avatar for bloodbender
0
225
Member Avatar for Topiary
Member Avatar for Topiary
1
93
Member Avatar for soapyillusion

Hello all, I recently started working with java, and I have been in the process of creating a new game for use on Android operating systems. I have at least 90 percent of the game fully conceptulized and at least 30 percent of it already in actual code. However I …

Member Avatar for soapyillusion
0
110
Member Avatar for Tajinderpal

I have created a screen capture of the current screen ,but i want to capture the entire html page as image can any body help me. Here is the code of screen capture.. import java.io.*; import java.awt.*; import java.awt.image.*; import javax.imageio.*; class A { public static void main(String[] ar) throws …

Member Avatar for JamesCherrill
0
4K
Member Avatar for jab8288

I am trying to format my text firlds so that if the user inputs letters or somethings improper, it will display an error message and ask the user to retry entering the number. i am not quite sure where to start with this part. i have the calculator code working …

Member Avatar for JamesCherrill
0
193
Member Avatar for khaled_jawaher

I have a sample question,can i return a Jframe in a method defined in a jaxws webservice implementation class.if soo give me steps simple steps onlt or keywords, i ve tried for example: import java.awt.*; import javax.jws.WebService; import javax.jws.WebMethod; @WebService(serviceName="frameService", portName="framePort", name="frame",wsdlLocation = "WEB-INF/primary.wsdl") @BindingType(value=javax.xml.ws.soap.SOAPBinding.SOAP11HTTP_MTOM_BINDING) public class frameserver implements Serializable{ …

Member Avatar for peter_budo
0
250
Member Avatar for atunio

i am new please guide me how can i take input from user in java. i did java from lot of time ago now i am starting learn again i did learn take input from user by this, there is a statement to write input from user first we initialize …

Member Avatar for stultuske
0
414
Member Avatar for rahman86

HI all in Daniweb. I have a problem here. I wanted to create a desktop database application using Java DB Embedded. What is the problem here i try creating a frame from scratch and want to connect to the database. I have create a connection to the database. it was …

Member Avatar for bloggernewbie
0
3K
Member Avatar for georger55

What is the importance of a counter in a linked list? what would happen if one left the counter out of the linked list?

Member Avatar for zeroliken
0
109
Member Avatar for amid88

hey all i have a table in my project which called tasktable it retrives data from database (oracle) how can i change the color of the row that has the color in the cell ex. (i,8) Automatically when i click in refresh butomn i have tried so many times to …

Member Avatar for JamesCherrill
0
912
Member Avatar for london-G

Hello, I have a JList which contains all data from mySQL table. I want the user to be able to select an item from the list and show it on the label. When I click on the first item it works, However when I click on the other items, the …

Member Avatar for london-G
0
260
Member Avatar for Jack5848

so basically for my uni work i have to create an applet that gives a word pattern for a particular sentence, ie '1 am a man' would give 2, 1, 1, because there are 2 1 letter words, 1 2 letter word and 1 3 letter word. the harder part …

Member Avatar for JamesCherrill
0
164
Member Avatar for adnan18

/** * @(#)password.java * * * @author * @version 1.00 2012/7/14 */ import javax.swing.JOptionPane; import javax.swing.*; import java.util.*; public class password { public static void main (String[] args) { String user; user=JOptionPane.showInputDialog("enter password to continue(letter only)"); if(user.compareTo("adnan")) { JOptionPane.showMessageDialog(null,"ACCES GRANTED","welcome", JOptionPane.INFORMATION_MESSAGE); } else { JOptionPane.showMessageDialog(null,"ACCES DENIED","error", JOptionPane.ERROR_MESSAGE); } } }

Member Avatar for adnan18
0
138
Member Avatar for adem87

hello ı want to develop some code in java but ı coudnt find the java programmer on internet please give me url or adres for downloandind java developer

Member Avatar for stultuske
0
246
Member Avatar for Tajinderpal

Hi I have java Enabled Nokia X2-01 I have made a game in java which is a executable jar file now i want to run it in my java enabled mobile phone.Please help

Member Avatar for peter_budo
0
240
Member Avatar for shankaraa
Member Avatar for stultuske
0
121
Member Avatar for Viped

Hi how I can read md5 hash from textfile and compare it with other md5 hash. I know that MessageDigest.isEqual() is right method for me but how to get the hahs from file without changing it. I can read it to String but if I use getBytes() method it obviously …

Member Avatar for Majestics
0
193
Member Avatar for silvercats

Is that possible to decompile a C++(or Java) "exe" file enough to read a TEXT password,stored in the source? .......just a regular string or char. no encryption or stuff

Member Avatar for Ancient Dragon
0
342
Member Avatar for MrAppleseed

Hey all, I'm currently somewhat new to Java, but not to programming, so I appologize if there's an obvious way to do this. Anyway, I'm currently writing a peice of code that I hope will be a graphical front end to GDB because I hate all the other front-ends, it …

0
77
Member Avatar for scarletfire

As a practical joke for your birthday, your best friend gave you some single-dimensioned arrays, each full of boolean values. She didn’t tell you how many items are stored in these arrays. As if that weren't bad enough, your friend told you that each array is filled almost entirely with …

Member Avatar for JamesCherrill
0
426
Member Avatar for Viped

Hi, my codes if statement returns false for some reason. I tried different variation yesterday and today morning and nothing works. Could someone look my code. I got File file users.txt where the usernames are stored. public static void checkUser(String userName, char[] passWord) { FileInputStream fIn; DataInputStream dInput = null; …

Member Avatar for Viped
0
161
Member Avatar for nheshen

Eliza is a famous 1966 computer program written by Joseph Weizenbaum. It imitates a psychologist (more specifically, a Rogerian therapist) by rephrasing many of a patient's statements as questions and posing them to the patient. This type of therapy (sometimes called nondirectional) is often parodied in movies and television shows, …

Member Avatar for Schol-R-LEA
0
367
Member Avatar for annette_arpana3

any one have a graph coding for snmp using java..with the graph i can see the utilization of the network...would rely be helpfull. thank you

0
97
Member Avatar for bobytch

Good day to every one. First here is my code so far import java.io.*; public class Program2 { public static void main (String[]args) throws IOException{ BufferedReader bv = new BufferedReader (new InputStreamReader(System.in)); String a, b, c, x; Float d, e, f, g, h, i, j, k, l, m, ave; System.out.println("ENTER …

Member Avatar for bobytch
0
432
Member Avatar for chinee

i am doing a group project concerning graph my part is finding the minimal cost the teacher tried to help us out with the group work by putting up code for the parts for use to follow. i have errors when i compiled the code that the teacher give. the …

Member Avatar for chinee
0
194
Member Avatar for anand01

Hi I am new to hibernate when run the following code it shows mapping exception how can correct couuld any one guide me may main class UserDetails userDetails = new UserDetails(); userDetails.setUserId(1); userDetails.setUserName("Anand"); SessionFactory sessionFactory = new Configuration().configure().buildSessionFactory(); Session session = sessionFactory.openSession(); session.beginTransaction(); session.save(userDetails); session.getTransaction().commit(); My hibernate.cfg.xml file <session-factory> <property …

Member Avatar for anand01
0
106
Member Avatar for DarkMonarch

hey guys, i was looking into rewriting the php custom framework at work into java. i was going to download the J2EE but there is 2 versions. J2EE SDK (regular) and J2EE Web Profile SDK http://www.oracle.com/technetwork/java/javaee/downloads/index.html i've look at the descriptions and the includes and it look the same. whats …

Member Avatar for ~s.o.s~
0
133
Member Avatar for lj81

Hi, I'm currently creating a pool game which is nearly complete but I want to have it as a 2 player (human vs human) game. All that I want the program to perform is that when the game begins then the two players are asked to enter their names (I …

Member Avatar for Philippe.Lahaie
0
419
Member Avatar for wallet123

i want to create a program that would translate number to words from 1-1 billion this is how i started: package app.runner; import javax.swing.*; public class EnglishNumberToWords{ public static void main(String args[]){ int inputNumber=0; String oness[]={"one","two","three","four","five","six","seven","eight","nine","ten","eleven","twelve","thirteen","fourteen","fifteen","sixteen","seventeen","eighteen","nineteen"}; String tens[]={"ten","twenty","thirty","fourty","fifty","sixty","seventy","eighty","ninety"}; String answer=""; String calculate=""; inputNumber=Integer.parseInt(JOptionPane.showInputDialog(null,"PLease Enter a Number: ")); int billion=inputNumber/1000000; int …

Member Avatar for JamesCherrill
0
249
Member Avatar for harishjoy

public int insert(Order order) throws SQLException { PreparedStatement insert = null; int orderKey = -1; try { String method = new String("DBInterface.insert( Order )"); FileLogger.log(FileLogger.HIGH, method + " - Entering..."); int col = 0; int actionCode = getCodeKey("ORDER_ACTION", order._action); int statusCode = getCodeKey("PCO_AUTO_STATUS", order._status); int falloutTypeCode = getCodeKey("FALLOUT_TYPE", order._falloutType); orderKey …

Member Avatar for JamesCherrill
0
337
Member Avatar for uurcnyldrm

How can I print a BufferedImage? I mean how can I send a BufferedImage to the printer? I heard something like printJob but I don't get it. Please help me about this. Thanks in advance.

Member Avatar for dongiulio
0
643
Member Avatar for Na'Vi

String q = new String(“Cat”); String r = q; String s = new String(r); I understand that the first line would equate to `String q = "Cat";` and the second would be `String r = q;`, but what would the last one equate to without using new? I originally thought …

Member Avatar for JamesCherrill
0
125
Member Avatar for RedSpyder

Hey guys. Im in my first week of class for Java OOP. This is what my first assignment looks like **1. Ask from the user: how many students take CompSci in summer, and store that number in a variable.** **2. Ask the user to input the name and mark of …

Member Avatar for delta_frost
0
185
Member Avatar for minnie19

What is the simplest algorithm to write in pseudocode to cipher the letters of the alphabet with different letters in the alphabet?

Member Avatar for stultuske
0
60
Member Avatar for PhilEaton

Can anybody help me out, show me where to look or a keyword or something? I'm trying to figure out how to write simple programs that can manipulate other programs. To keep it simple, and as a start, I'd like to be able to run the program to insert a …

Member Avatar for PhilEaton
0
124
Member Avatar for DEAD TERMINATOR

So I'm working on a checkers like game that involved moving two different types of pieces around the board to try and capture the opponents pieces. One of these pieces is a ball, and it's movement rules are that it can move up and down only one space per turn, …

Member Avatar for JamesCherrill
0
623
Member Avatar for godzab

I have made a simple web browswer in java. The problem is it's to simple. How would I add things like HTML5 support in my web browser?

0
110

The End.