Programming :: Why Doesn't The Javax Swing Message Print
Mar 18, 2010why the message string isn�t output to the Applet window in the code below?
Code:
import javax.swing.*;
class printit extends JApplet {
[code].....
why the message string isn�t output to the Applet window in the code below?
Code:
import javax.swing.*;
class printit extends JApplet {
[code].....
I need some direction on a small scripting question. I've been doing some development and storing the code on a network drive with multiple user access. My development is getting complex enough that it is time to set up a svn repo for it. I would like to set up a little script (if possible) that prints a message/reminder to whomever is accessing the code directory stating that the code is ultimately stored in svn and any changes need to be checked in, etc. Is there a way to have linux print a message to the screen based on a 'cd /specific_dir/' command? So far google is mum on the topic. Using Debian and bash shell.
View 5 Replies View RelatedI need to make a quick gui to interface with another application. I'm using Java swing to produce it, however have no experience with JAVA. I have used net bean to produce the gui. At one part I have a jList private javax.swing.JList jSymbolList1;
I want on a button press to add or change members of the list from a text field. I thought I could so this simply by using the addelement eg jSymbolList1.addElement("hello world"); However this produces an error. Can anyone tell me how to add a string or how to change a string at a set position?
I have a problem when using awk:
e.g: awk '{processing text}' File1 > File2
But when I'm processing the File1, I want to print out some messages to the screen (not the File2). How can I do that?
I'm writing a script using ksh that diffs two dirs that contain about 30 files, and writing the results on a logfile. When files differ, it writes the difference with no problem, but I also need the script to write a message if no differences are found.
View 3 Replies View RelatedHow do I install Javax.comm for serial port programming. I have been all over the Internet without finding anything useful. I did install the librxtx-java package, but still eclipse or monodevelop will not recognize import gnu.io. I am using eclipse. What am I doing wrong. Surely, it should not be this difficult. I might have to do this in C++, or Basic even (Gambas2) if I can not figure this out.
View 1 Replies View Relatedjava version "1.6.0_20"
OpenJDK Runtime Environment (IcedTea6 1.9.8) (fedora-53.1.9.8.fc14-i386)
OpenJDK Client VM (build 19.0-b09, mixed mode)
I want to add a vertical slider to a JTextPane component. When I do, I get the slider but I don't get a thumb - i.e. the slider doesnt do anything here is my code
Code:
JPanel dataPane = new JPanel(); // create panel dataPane
ta2 = new JTextPane(); // textpane
if (true)
[Code]...
the (true) lets me do something like ifdef to try out my new ideas as you see, this code comes when I create the object but before I populate it. maybe I need to do something after I populate the textpane?
I am just trying to run the following piece of awk code. But it doesn't print anything. where I am doing wrong?
[code]...
I initially had a problem accessing the CUPS interface (see my other post) and got that resolved by adding the user "cupsys". Now, everything "looks" ok, and when I print a test page, it shows it as completed (in CUPS). However, the page never prints.
The printer is a Canon MP600 (using the canonmp600en.ppd file to configure it). Here's the output of my conf file.
Code:
# Show troubleshooting information in error_log.
LogLevel debug
[code]...
When running certain programs (i.e. Nedit or Gourmet Recipe Manager) asking to print will give the following message: Enter print command:
Am using 13.1 32 bit with cups. Everything works properly and prints properly I just don't know what to enter for a 'print command'.
Have tried entering lpr and cups.
I'm trying to play around with java 3d, but having troubles to get some example to run.
NetBeans don't likes the line "import javax.vecmath.*;", it tells me that "package javax.vecmath does not exist",...
Code:
etc/environment holds following:
Code:
We are trying to create a message forwarder program that receive a message on Port A and pass it on t Port B. Also receive a message from Port C and Pass it on to Port D as follows.
[Code]...
Accidentally noticed that I am NOT able to print pdf files in Okular (Version 0.9.4, KDE 4.3.4). Clicked print and nothing happens, no error message.The same file CAN be printed using evince on the same system. I've created the pdf file using soffice so permissions is not a problem.However, the same file CAN be printed in openSUSE's Okular.If someone can confirm that I am right/wrong, then I can decide whether to file a bug report?
View 3 Replies View RelatedI have tried to download the latest version of CUPS but do not know how to install it properly using command line commands above 'sudo' and 'sh', and I have tried to install HPLIP but it needs 'cups-devel' installed apparently. My Debian can see the 1020 clearly enough to identify it and give its status as idle, via the CUPS interface. When I try and print a Test page it goes to the spooler, says it is printing OK, but nothing prints. The job then disappears and appears on CUPS as completed. In the old days we would have sent a eof() to make the printer work. Have I got a bug in my HP Laserjet 1020 driver? Or am I missing the great plug-in that is not on the Synaptic Package Manager The SPM says I have HPLIP installed.
View 5 Replies View Relatedmy printer has a known CUPS bug; A4 is printed as letter size; i.e. printing only appears on the bottom half of the page. I downloaded a ppd file at [URL] but it improved nothing. Also installed the bug's patch (sorry I don't have the bug's number) and followed the instructions; zero results. Upgraded Ubuntu 9.04's CUPS-related repositories to 9.10 but no improvement. Every test page still comes out with just the top third sitting at the bottom.
View 1 Replies View RelatedI have an ubuntu server (9.04) that needs to share a printer (a Brother 2070N on USB). To configure cups, I had to modify cups.conf quite a bit to let me access the printer management pages, but I did get it working. I can print using the lpr command, as well as print test pages using the management interface's "Print Test Page" button from any computer on my network. However, I cannot actually set up Ubuntu, Fedora, Vista, or OSX to see the network printer, and it's driving me insane.Brother from any computer on the network I can see the specific printer management page, but no computer can actually print to the printer (other than using the "print test page" button)
View 2 Replies View Relatedi have problem in socket programming, while displaying received message in file,i got a problem... i cant able to write it in the file.... this is the code....
Code:
/* tcpserver.c */
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <stdio.h>
[Code]....
now my problem is run time error i can able to create file but i cant able to write file....log.txt contain nothing.... as here i have give sample code... dont say not initialising function and all.... i have initialised , please only see func1() - my problem is only not able to write msg which i got received from the client..
I have an HP F300 series all in one printer. Until about 2 months ago it worked fine in all variations. Now it wont print. I am using Super Os 9.10 version. The printer runs but doesn't print. It works fine in windows.
View 1 Replies View RelatedUnfortunately my usb HP LaserJet 1005 printer stopped working since 16th august. It is running under CUPS 1.3.8, with foo2zjs driver (the only one that supports laserjet 1005). I'm not sure, but this is probably related to the updates I've done recently (I don't exactly remember when I did it, but I think it was before the 16th). Here's what I've done:
Code:
# aptitude update
# aptitude dist-upgrade
As this is a home box, I haven't done that for some months, so a lot of stuff has been updated. I'm afraid some CUPS library has been updated and is now bugged, because it always worked without any problem. My question is whether or not there are known bugs on last CUPS version with hp laserjet and if there's any solution to work it out. I already tried to reinstall the printer, reboot the box, plug it to other USB port, reboot the printer, set it as default printer, and many more things. Google search didn't turn up nothing useful. The problem is not on the printer because I plugged it to my windows pc and it worked like a charm, so I'm pretty sure some stupid configuration or bug is messing arround with my printer
[Code]...
I was always able to print with my HP OfficeJet 700 printer in Linux, but all of a sudden when I need to print something important, it doesn't work?! It says the print job stopped. It only printed 1/4 of 1/4 of what I needed to print. It has the correct print settings, etc... but I can't print?! Please help. It was able to print the test page before, but now even that won't print. Even CUPS is having problems connecting to the server. Printing in Windows has the same problem.
View 14 Replies View RelatedI have got an old print server Axis 150. It does not support TCP/IP I know that there was a thread about this print server [URL].... but I didn't found answer to "how to bring it up" there.
View 5 Replies View RelatedF13 showing that Canon s100 printer is founded, installed drivers and everything seems to be OK. But when i try to print text, testpage of what ever, nothing happened. Installed system-config-printer 1.2.4-1.f13, same udev and libs. Cups 1:1.4.4.5.f13, libraries, php modules Here is the Error msg:
[code]...
Trying to make a Canon Pixma 3-in-1 MP250 to work with my Slackware. I've took the drivers from the canon website (they have .deb, .rpm and sources there) and compile. Basically I followed the instructions from INSTALL files in each subdirectory (backend,cngpij, etc).
Then I upgraded also CUPS to 1.4.3.
Installing the printer in CUPS, I end up with:
Code:
Description:Canon MP250 series
Location:
Driver:Canon MP250 series Ver.3.20 (color)
Connection:cnijusb:/dev/usb/lp0
Defaults:job-sheets=none, none media=iso_a4_210x297mm
It seems ok. But when I send a test page (or any other kind) to printer, it shows some activity on the led display, cups reports the job as completed but nothing happens!
As an extra, I tried to convert .deb packages to .tgz and install from them. The same result, except now the scangear utility is working (so scanning is ok).
How can I find what's missing from here? Maybe it's a bug with cups/drivers or something is missing from configuration?
p.s. On other machine I have an Xubuntu (Karmic Koala). Installed there from .deb packages and the printer works as expected.
I configured cups and I managed to print successfully with generic text only but my problem is that the printout always comes out as 80 columns. anything more than 80 colums wraps on the next page. I tried changing the pagesize at the textonly.ppd but it didn't work.my textonly.ppd is
*PPD-Adobe: "4.3"
*%
*% Text-only printer definition
[code]...
ho una stampante HP DeskJet 930C. Chiedo se per farla stampare devono essere necessariamente inserite entrambe le cartucce nero e colore, o se possibile stampare con il solo nero.Con una cartuccia nuova solo nero, senza l'altra del colore, lampeggia la luce per l'inchiostro e non stampa...ma la cartuccia integra e non sembrano esserci altri problemi. I've got an HP DeskJet 930c: in order to make it print, do I have to put in both the cartridges, black and colour? Or can I put in just the black one? I've tried with a new black cartridge, without the colour one, but my 930c doesn't print
View 3 Replies View RelatedThe printer prints with ubuntu live cd. I deleted the printer from the list and I followed the instructions here. When I tried to print, sometimes it shows that the documents was printed (but my printer is standby) sometimes it shows the document failed.
View 1 Replies View RelatedWe have a lpr server for printing (not CUPS for compatibility with complicated domain/systems). We configured our linux systems -- RHEL4, RHEL5, and Ubuntu 10.04 -- so that lpr is one of the gtk print possiblities by adding 'gtk-print-backends = "lpr,pdf,file"' to gtkrc. This works great for several gtk-enabled applications like Acrobat Reader (acroread).
However, Firefox 3+ (tested 3.6.3 & 3.0.19) doesn't actually queue any lpr jobs until after quitting the application.
After installing libre3.3.2 using the Slackbuild scripts, I found that it displayed fonts correctly, but doesn't print the same font on the printer. The output of the printer should be Arial, but is instead some elongated, overlapping mess.
The same Slackware package installed on SW13.1 prints normally. (Same computer, different partition)
Spadmin used to control the printer fonts, but apparently not anymore.
System: Linux nadrek 2.6.37.6-smp #2 SMP Sat Apr 9 23:39:07 CDT 2011 i686 AMD Athlon(tm) 64 X2 Dual Core Processor 4800+ AuthenticAMD GNU/Linux.
I want to print NaN value in a file containing of 3600 rows and 7 columns.The illustration of output file which I want to is as follows :
NaN NaN NaN NaN NaN NaN NaN (the first row)
NaN .... NaN
.
.
.
NaN .... NaN (the 3600 rows)
I tried to use below command
awk 'BEGIN {for(i = 1; i <= 3600; i++); printf "%s", "NaN", $1" "$2" "$3" "$4" "$5" "$6" "$7}' > output
Unfortunately, I couldn't get what I want to.
I have this code:
How can I print &FARAchieved to a file? Or, printing the whole bioReturn would be fine too.