still cant figure out how to print. i dont understand java well enough to implement PrintUIWindow into my program.
Type: Posts; User: juanbond311
still cant figure out how to print. i dont understand java well enough to implement PrintUIWindow into my program.
nevermind, it printed.
downloaded the file, compiled, and executed it. nothing printed, and i got those error messages.
i did this, and i got these errors
run:
Uncaught error fetching image:
java.lang.NullPointerException
at sun.awt.image.URLImageSource.getConnection(URLImageSource.java:99)
at...
thank you so much!
Modular Pitch: <whatever number is stored in var mod>
Circular Pitch: <cp>
Base Pitch: <bp>
Pitch Dameter: <pd>
Base Diameter: <bd>
private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed
// External Spur Gear
// take user input and convert from char to...
this is all i have to do to print?
i'm sure i'll have to import java.awt.print.*
but othersie, just print("blah blah blah)" will print to a piece of paper?
oh, if i can get on the internet at work tomorrow, i'll post some code. thanks again for your help!
i know how to format my output into the JTextfield
decimalformat = new decimalformat df
(format.df(var>).set text blah blah blah
in order for me to use the input as a variable in a formula,...
i convert the string from their input to a Double. do you have to convert back to a string in order to print? if so, how is that done? i've coded the whole program, except for the printing (and...
no, theres more. that was just an example.
lets say i take input from the user, asking for a dimension in millimeters. i want to take that dimension and turn it into inches. the formula would be A...
thank you for these links.
i've already looked through them, and none of them seem to fit what i'm trying to do.
i basically have 8 panes on a Tabbed Paned container. each individual pane...
thank you, but i know how to format my output to the swing GUI.
as far as what i want formatted...
here is the output in the GUI:
JTextfield --> [3.141592654]
printed on paper, with this...
hello all
i've made a program that takes user input and enters it into a formula. the answer form that formula is output in a JTextfield.
i'm self taught in Java, and i've only been...