32,204 Topics

Member Avatar for
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
226
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
61
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
137
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
815
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
103
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 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
238
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
221
Member Avatar for Topiary
Member Avatar for Topiary
1
91
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
105
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
192
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
247
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
410
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
107
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
902
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
259
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
161
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
124
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
244
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
238
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
192
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
339
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
75
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
422
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
158
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
363
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
96

The End.