Fax working but status no longer visible in "Internal Modem Completed"
Up until August 1st when I sent a fax via Print-Fax Pdf the state would be listed as "Finished" or "Cancelled" in the list under Internal Modem, Show Jobs. Since then, maybe due to an update, the state cloumn is blank so I don't know if the fax went through. I tested it by sending a fax to myself and it is working but I want my list back.
powerbook 15" Mac OS X (10.4.7)
MOre information:
I get an error in the Active Fax window. It says pstopdffilter / psrocupsraster failed with error number -31000.
A search on Google for this finds no answers for this problem printing or scanning.
Similar Messages
-
Original iphone works but can no longer be activated for phone use????
I have one of the original iphones that works but I no longer use (as in I paid $700 for it when it first came out). I just gave it to my nephew and my brother tells me Apple and ATT don't support it and he's being told that it can't be set-up as a functioning phone? That the current version of itunes won't support it either? Does this make sense to anyone? Could this be true? I'm on my 3rd iphone version and the first 2 work I just upgraded so now the old phones can't be used? I gave the same nephew a much older flip phone that still works and it has phone service.... Thoughts?
This doesn't make any sense to me either. Are we missing some vital information or is he just mistaken?
Until this last November, I was using a Blackberry Curve. I was visiting a friend and complained about the trackball giving me fits. He went to his kitchen junk drawer and pulled out his very first iPhone 2g and tossed it to me. I've been using it ever since without issue.
If the phone is in proper working order, it should only take a call to AT&T to order an appropriate plan and sim card. The original iPhone is still fully supported by AT&T and iTunes. While iOS support does end with version 3.1.3 and more and more apps do require iOS4, it still affords a very reasonable user experience. So reasonable, in fact, I am reconsidering my original plan of upgrading to the iPhone 4 this month. What can I say? It kicks BB Curve behind and does everything I need using a sweet grandfathered calling and data plan! laugh -
ITunes 10: Playlist titles remain but content no longer visible.
After upgrading,my playlist titles still appear as usual in the left column, but the playlist itself is no longer visible. What happened?? I hope I haven't lost them after all the work that went into creating them. Restoring a previous library configuration will lost the many changes I've made since the upgrade. Other solutions or explanations?
Playlist data is stored in the iTunes Library.itl file. That's what needs to be restored from backup.
The first trouble shooting step here is to turn off iTunes Match in iTunes. See what happens to the contents of the playlists. If it is not restored, you'll need to restore the iTunes Library.itl file from the backup from a time when the playlists had the correct content. Once this is done, make another backup then enable iTunes Match again and let it scan the library. -
Fax: sending using system 10.5.8 via internal modem
I have an iMac PPC G5 with internal modem and wireless mouse and keyboard using system 10.5.8. I have wireless internet service and also have a telephone line connected to the computer. I have attempted to fax a Word document, in doing so have gone to pdf fax via the printer and have had no success sending. When I open Fax Queue it shows that Bluetooth is printing the fax and is waiting for the modem to become available which it never does. I have unplugged my wireless connection to the internet to see if that made a difference but is no different from being connected.
Well, your printer and modem profile look exactly the same as mine, and faxing works for me.
The line in your Bluetooth profile URI: fax://dev/cu.Bluetooth-Modem interests me, though. In your other thread, you mentioned that when you try to fax through the internal modem you get a message about "waiting for Bluetooth" or some such. I don't know enough about Bluetooth (my Mac doesn't have it) to know if that's what's causing the problem. But it seems plausible that there's some sort of interference. My only suggestion for now is to try disabling Bluetooth (borrow a wired keyboard and mouse if you don't have your own) and see if the problem persists.
If disabling Bluetooth fixes it, perhaps a crosspost in the Bluetooth forum might attract some responses from some more knowledgeable people on how to permanently fix it. -
'show icon preview' not working, Icon preview no longer visible
I have lots of folders full of jpg files. The preview icon do longer appears and all i get is the genetic icon. This happened randomly yesterday and I don't know how to fix it. I have the 'Show Icon Preview' enabled yet I only get the generic icon. Any ideas why? (OS X 10.5.8). I have tried a restart, permissions fix, and reindexed my hard drive with spotlight. No luck. Please help!
Simply: I don't know how to get the preview back even after selecting the "show icon preview" box on the options. HELP!There probably are some hidden probable causes for this behavior;
while not knowing if you perform any general maintenance in a
preventative way for your OS X system, some of the suggestions
I could provide here may mean little or nothing to some users, or
to others, who have done them for years as a matter of course, to
suggest those could be the same as an insult; or a laughing matter.
You could try rather basic things, a few steps above 'repair disk
permissions' in Disk Utility. That's been around since OS 10.1.5.
And it has a place among other steps one can do to help out.
Sometimes, you can start up into SafeBoot mode; then choose to
run Disk Utility, and repair disk permissions. When done, quit D.U.
and restart the computer normally. - Other repairs to the system may
be performed by booting up from the OS X installer and run Disk
Utility from the menu drop-down options in the main Installer window.
You can repair disk, verify disk (SMART verify), repair disk permissions
and verify disk permissions. Plus other aspects of Disk utility that are
tools to set up partitions and other things beyond a basic simple fix.
SafeBoot mode, basic:
+Hold the Shift key down on start-up, keep holding it until you get a login+
+screen, enter admin password, then when desktop appears, you can+
+use GO in menu bar to find Utilities folder, and run Disk Utility's repair+
+disk permissions. When done, quit the Utility and restart.+
There probably may be some .plist file controlling the view of image icons
and since I haven't followed that issue (experienced it in the past, forgot
what I did to fix it) I am not sure what preference file to suggest trashing.
But you can be very selective, when knowledgeable, and do that. Then,
later on, when you restart the computer the default setting would return.
You could set that to whatever (if not the default) & that may fix the matter.
{One preference file location that probably would contain your user account's
.plists would be in the Macintosh HD> User folder> Library> Preferences>
...Now, the correct one among these becomes important. There is a desktop
plist, a finder plist, and others. Since each user in a Mac with their own setup
account can change these, yours should be in your booted user account.
However, some time has passed since this kind of issue occurred and I didn't
need to delete a .plist to resolve it. Yet that may be a short fix.}
These issues usually have a cause; sometimes it may be due to other items
not quite right in the user interface and symptoms of that sometimes show up
in odd places and they may not be directly related. Subtle and dismissed, a
few of those quirks are not show stoppers in OS X. A 'safeboot' & disk utility
may resolve some; to find a correct .plist preference file & trash it may, too.
If the computer's hard disk drive is getting full of content you have added, it
may be time to archive image libraries and/or music libraries off the Mac's
internal hard disk drive and then thin out content on the computer. That can
help a computer run better. Damage to data on the computer drive may be
a result (or outright is) of over-filling the hard disk drive. Overwriting content
is sometimes an issue; it could be subtle, too, for awhile. Checked into it?
For some preventative maintenance chores, I have and use OnyX which is
a free running utility tool (which I refer to as a utility interface tool) that pulls
the strings in OS X that some users would not think of the Terminal utility
ways of making them work; this gives you a GUI format, an application to
run various sets of items rather easily. If done without concern, these tools
can do bad things (same as booted Disk Utility, drastic tools are onboard.)
OnyX is a free-running downloadable app from Titanium Software; and since
I only use it maybe once every several months (or sooner if bored or if active
in using one computer more than usual) & have it run in Automation selection
having chosen all the check-box choices, so it will do those. I also have OnyX
set in its preferences, to restart the computer after it is done running those.
This may do more than you need in this selection of Automation. I have never
had any issues with this; but some preference choices system-wide may need
to be set back to your choice, as it can be also set to wipe caches or other old
logs and misc stuff. A few settings won't make much different to default from.
Usually, I prefer not to shut off or restart my computer until such time as when
Activity Monitor shows some issue with virtual memory and swap files or space
on the hard drive being excessively allocated as Virtual Memory. At times, a
restart may be required. My Mac can run a few months without restart, but it is
left to sleep or I will put it to sleep. Even so, some basic background OS X items
may not automatically run as they should. You can force the maintenance cycles.
If the 'show icon preview' does not work even after performing catch-up maintenace
and including OnyX, SafeBoot, and others; and if you have at least 30% of the total
hard disk drive capacity open or free from use, then you may have to consider a few
other ideas. (Removing the plist file may be the only thing you'd need do.) Another
idea in a few cases of more severe odd behavior, and if you updated your Leopard
10.5 to your current/last level through use of the Delta or small update file, would be
to get the larger Combo (last version) and after repairing disk permissions, install it
over the similar system in your computer. 10.5.8 over 10.5.8. Then restart and go in
and repair disk permissions again. Perhaps later on, safeboot and do them.
That much effort is seldom needed. Preventative maintenance and care to not over-
fill the hard disk drive, helps to almost never see such a problem in your Mac OS X.
{In a few cases, people who have upgraded from an earlier OS X version (Tiger-to-
Leopard, for example) and had a problem, may still have a similar problem later. So
it is best to fix issues and not hope to upgrade over them. Unless it is a totally new
bare-bones secure zero-overwritten drive, correct partition map, reformat, new install.
Then, there should be no doubt if there was an odd problem in the software, only.}
Hopefully some of this late night rambling may be of some help.
+Answering a question in these forums can be like replying to a+
+statement thus, "why won't my car go?" And an answer starts+
+out by asking dozens of questions about the car itself and the+
+status of the car, if it has fuel, tires, if it's been in a flood, or if+
+there is an engine, fuel, battery... At least I know yours runs!+
Good luck & happy computing! -
Equium L40-17M: WLan connection working but light no longer works
I have recently transferred my laptop Equium L40 17M... from Vista to Windows 7 64 Bit and since then my WiFi Light has not worked --- any ideas????
HELP!Hi
I assume you are not able to enable the WLan and therefore the WLan does not work in Win 7.
First of all you should ensure that WLan card driver was installed properly and that WLan card was recognized in device manager.
No yellow exclamation marks should be visible in Network adapters.
Here a page with WLan drivers:
http://aps2.toshiba-tro.de/wlan/?page=downloads
I think your notebook support REALTEK 802.11(B/G) RTL8187B WLan card so you have to choose Realtek WLan driver.
Furthermore you have to ensure that WLan was enabled;
You have to put the WLan switch to ON position in order to enable WLan LED light
Additionally you have to use FN + F8 buttons to choose WLan card.
If Fn buttons would not work, then you have to install the VAP (value added package) and Flash Card Support Utility. You can choose the tools released for Satellite L500...
I did this and this worked -
vista service pack 2
rocket fish headphonesDo you have any tips out suggestions for when ADE can't download the epub book from an ACSM file? The problem seems to be related to something blocking the process, but no one has a clue as to the source of the problem. See my post fot more information:
http://forums.adobe.com/message/6179746#6179746
Thank you for any suggestions you are able to offer. -
VPN session remains up but can no longer get to internal devices
Our remote users in Germany are provided with a mixture of Vodafone 3G Mobile Connect Cards (PCMCIA) and "USB sticks" for cellular broadband access. Installed on their laptops is Vodafone's Mobile Connect Client & Cisco VPN client version 5.
To connect, they first connect to Vodafone's "VPN access point" -- Vodafone's VPN only service offering. Once connected, they VPN into the network with the Cisco client. All users connect to a Cisco 3020 Concentrator.
Users are able to access network resources, however, they lose connectivity after 5-10min. What's unusual is, it doesn't look like the VPN session drops since the padlock in the right hand corner remains locked; they just can't access network resources.
To troubleshoot...
a) We had a user establish a VPN session then immediately start a continuous ping to an internal device's IP address. The connection stayed up for 20min before requests started timing out.
b) We enabled "IPSec over TCP" on the client and Concentrator side, no change.
What could possibly be causing this behavior?Does Vodafone use Venturi Transport Protocol clients for Windows like Verizon's does with their EvDO cards? If so, we had to turn off and eventually uninstall the Venturi client software because it detrimentally interfered with IPsec traffic.
-Gary -
Can I use the faxing with a B&W G3 without an internal modem
I have a DSL modem that is connected to my computer via the ethernet. Is there a way to route my fax line to my G3? I am tired of buying cartridges for junk email! I do not have a modem installed in this computer.
You're Welcome Daisy!
If your FAX is a stand-alone unit, isn't there a setting to not automatically print incoming FAXes?
Then print only the ones that you want printed?
There are also some Third-Party FAX programs, like these at VersionTracker.
Or online FAX services like eFax.
ali b -
I have been using FIREFOX since a long time back and am quite happy with FIREFOX 4.
But a little uncanny situation since release of FIREFOX RC is that 'Reload which used to come under view option is no longer visible,but appears as an icon(button) in toolbar...which sometimes doesn't work(becomes blur and sometimes firefox hangs)'.
Please try to fix it if its only my problem or include it in next release.Thanks!I have been using FIREFOX since a long time back and am quite happy with FIREFOX 4.
But a little uncanny situation since release of FIREFOX RC is that 'Reload which used to come under view option is no longer visible,but appears as an icon(button) in toolbar...which sometimes doesn't work(becomes blur and sometimes firefox hangs)'.
Please try to fix it if its only my problem or include it in next release.Thanks! -
back in the days of leopard, the dashboard widgets would come to the foreground but you could still see what you were working on. Now I've updated to mountain lion and the work is no longer visible when I activate dashboard. Can I change that back?
Go to system preferences, mission control, and unselect "Show Dashboard as a Space". While you're there, you may want to make dashboard set to a hot corner "Hot Corners" button at the bottom.
-
For some reason the blue status/task bar that would normally display at the bottom of the webpage (shows time, etc.) is no longer visible. I do not know how it got turned off and going to view-status bar simply enables a gray bar to display that says "done". I have searched using terms like "display task bar", etc and nothing comes up but view- status bar.
== This happened ==
Every time Firefox opened
== May 5thThat is the Windows Taskbar and not part of Firefox.
The Firefox Status Bar shows messages like Looking up and Waiting for and loading and Done.
If you do not see that Taskbar with Firefox closed then you may have hidden it.
Try to move the mouse at the bottom and see if you can pull it up with the left mouse button pressed.
If the Taskbar disappear if you open Firefox the check the Properties of the Taskbar to make sure that it is always visible. -
My iPad does not find the printer. I have tried the HP app and it works, but in any other app the printer is not seen. How do I get this printer visible to the iPad. All my other network computers find and print with out a problem.
hi
could you tell us what the other app is please -
After installing Leopard, my G4 will no longer boot in OS 9.22.
(Classic still works, but I need it to boot in OS 9.)
Any clues about what the Leopard installer might have done to my machine that rendered OS 9 boot unusable? (And what can I do to fix it?)
Details:
G4 Gigabit Ethernet
Boot ROM version: 4.2.8fl
Accelerator card added: 1.6 MHz
1.5 Gig Ram
I have erased the partition that had Leopard installed on it.
I zapped the pram.
In Open Firmware, I "reset-nvram", and then "reset-all"
I tried to reinstall G4 FW Update 4.2.8, but that must be done when booted from OS 9, and of course, that's the problem: it won't boot into 9.
I tried restarting from 9.2.1 DVD.
I tried restarting from an external firewire drive containing OS 9.2.2.
I tried moving a fresh OS 9.2.2 system folder into an empty partition on an internal hard drive. (Partition was created WITH OS 9 drivers installed.)
All attempts to boot into OS 9 give me the same results - grey screen - no spinning beach ball, no icons or logos - just a blank grey screen.
This machine still works fine in OS 10.3 and 10.4, and it worked fine for many years booting into OS 9, until I installed Leopard, and I haven't been able to boot into OS 9 since then, although I have done considerable research online and tried many things.
I have since learned that this machine does not support Leopard - 10.5. Fine, but how did it break 9.2.2?
Any help greatly appreciated.Thanks for checking in, BDAQua.
Problem solved.
In the docs that came with my Powerlogix accelerator card, I found this sentence buried:
"If you reset the PRAM, the NVRAM code for OS9 compatibility is cleared, so you will have to boot from the Firmawre Update CD and perform this process again in order to boot in OS9."
The "process" it's referring to is the process of setting up the NVRAM for booting into OS9 from the CD.
Fortunately, I was able to find the disk, and it worked as expected. I can now, once again boot into OS9.
Conclusion: My (unadvised) attempt to load Leopard on this old machine apparently reset the PRAM on the accelerator card and cleared the NVRAM code for OS9 boot. Although I did attempt to reset the NVRAM via Open Firmware, it did not reset it on the accelerator card.
So, thank you BDAQua, for your "Ah yes" . . . that's all I needed to steer me in the right direction.
Gratefully,
tupester -
So, I'm trying to code this flash cards program, and it's not working. The problem is that, when I change the text of the JTextPane to have multiple lines, the text disappears, and my JTextPane acts like it's empty. I included my SSCCE as a comparison, because it works just fine. I hope you guys don't mind that I included all of the code for my Cards program, even the stuff that I know isn't relevant, but I'm at a loss, and it's bedtime, so I'm done editing for the night. If you guys can fix my code, feel free to use it for your own personal use (as a reward for having to deal with the irrelevant stuff). How do I get my text to appear when it has multiple lines?
PS I know my button listeners aren't like they should be. I'm going to fix them after I fix the JTextPane.
PPS If this breaks anyone's browser, I'm sorry, but I included a file that is format-dependent, so I had to include it as is. Also, I had to include tabs and not spaces because of the length limit.
package sscce;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Font;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.GridLayout;
import java.awt.Insets;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JComponent;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextPane;
import javax.swing.WindowConstants;
import javax.swing.text.DefaultStyledDocument;
import javax.swing.text.Style;
import javax.swing.text.StyleConstants;
import javax.swing.text.StyleContext;
import javax.swing.text.StyledDocument;
public class SSCCE
private final Font bold = new Font("Courier New", Font.BOLD, 12),
plain = new Font("Courier New", Font.PLAIN, 12);
JButton button = new JButton("Press this button");
final JLabel labels[] = {new JLabel("xyz"), new JLabel("xyz"),
new JLabel("xyz"), new JLabel("xyz"), new JLabel("xyz"),
new JLabel("xyz") };
final String oldText = "This text should wrap automatically because it is long.",
newText = "This text should add height to the textPane because it is longer than the original.";
boolean textSwitch = true;
final JTextPane tp = createTextPane();
final JPanel upperPanel = new JPanel(new GridLayout(3, 1)),
lowerPanel = new JPanel(new GridBagLayout());
private SSCCE()
final JFrame frame = new JFrame("SSCCE");
button.addActionListener(new ButtonListener());
start();
frame.add(upperPanel, BorderLayout.CENTER);
frame.add(lowerPanel, BorderLayout.SOUTH);
frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
frame.setSize(485, 338);
frame.setVisible(true);
public static void main(final String args[])
new SSCCE();
private void addItem(final String cell, final int colSpan,
final int rowSpan, final JPanel pan)
addItem(cell, colSpan, rowSpan, pan, new JLabel(" "), plain);
private void addItem(final String cell, final int colSpan,
final int rowSpan, final JPanel pan, final JComponent c, final Font f)
final GridBagConstraints gc =
new GridBagConstraints(cell.charAt(0) - 65, cell.charAt(1) - 49,
colSpan, rowSpan, 100, 100, GridBagConstraints.CENTER,
GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0);
try
pan.setFont(f);
pan.add(c, gc);
pan.validate();
catch (final Exception e)
e.printStackTrace();
System.exit(0);
private JTextPane createTextPane()
final StyleContext context = new StyleContext();
final StyledDocument document = new DefaultStyledDocument(context);
final Style style = context.getStyle(StyleContext.DEFAULT_STYLE);
final JTextPane textPane = new JTextPane(document);
textPane.setText(oldText);
StyleConstants.setAlignment(style, StyleConstants.ALIGN_CENTER);
textPane.setFont(new Font("Courier New", Font.BOLD, 12));
textPane.setEditable(false);
return textPane;
private void start()
upperPanel.setBackground(Color.WHITE);
upperPanel.setLayout(new GridLayout(3, 1));
lowerPanel.setLayout(new GridBagLayout());
final JPanel topPanel = new JPanel(new GridBagLayout()), middlePanel =
new JPanel(new GridBagLayout()), bottomPanel =
new JPanel(new GridBagLayout());
topPanel.setBackground(Color.RED);
middlePanel.setBackground(Color.GREEN);
bottomPanel.setBackground(Color.BLUE);
upperPanel.setBackground(Color.BLACK);
addItem("A1", 1, 1, topPanel);
addItem("A2", 1, 1, topPanel, new JLabel("test1"), plain);
addItem("A3", 1, 1, topPanel);
addItem("A1", 1, 1, middlePanel);
addItem("A2", 1, 1, middlePanel, tp, bold);
addItem("A3", 1, 1, middlePanel);
addItem("A1", 1, 1, bottomPanel);
addItem("A2", 1, 1, bottomPanel, new JLabel("test2"), plain);
addItem("A3", 1, 1, bottomPanel);
addItem("A1", 1, 1, lowerPanel);
addItem("B1", 1, 1, lowerPanel, button, plain);
addItem("C1", 1, 1, lowerPanel);
upperPanel.add(topPanel);
upperPanel.add(middlePanel);
upperPanel.add(bottomPanel);
private class ButtonListener implements ActionListener
@Override
public void actionPerformed(final ActionEvent arg0)
if (textSwitch)
tp.setText(newText);
else
tp.setText(oldText);
textSwitch = !textSwitch;
package fc;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Font;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.GridLayout;
import java.awt.Insets;
import java.awt.KeyboardFocusManager;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.FocusEvent;
import java.awt.event.FocusListener;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.util.Arrays;
import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JComponent;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JTextArea;
import javax.swing.JTextPane;
import javax.swing.WindowConstants;
import javax.swing.text.DefaultStyledDocument;
import javax.swing.text.Style;
import javax.swing.text.StyleConstants;
import javax.swing.text.StyleContext;
import javax.swing.text.StyledDocument;
public class Cards implements ActionListener, FocusListener
private Cards allDefs[] = null;
private final Font bold = new Font("Courier New", Font.BOLD, 12),
plain = new Font("Courier New", Font.PLAIN, 12);
private JButton button1 = null;
private JButton button2 = null;
private final int card = 0;
private final int CE = GridBagConstraints.CENTER,
E = GridBagConstraints.EAST, W = GridBagConstraints.WEST;
private boolean clickedWrong = true;
private String course = null, def = null, page = null,
word = null;
private JLabel courseLabel = null;
private Cards currDef = null;
private JTextArea enterDefn = null, enterWord = null;
private JFrame frame = null;
private JButton invis = null;
private JButton learn = null;
private boolean message = true;
private JPanel p[] = null;
private JLabel pageLabel = null;
private JPanel panel[] = null;
private JTextArea rightDefn = null;
private JTextArea rightWord = null;
private Cards saveDefs[] = null;
private JTextPane showLabel = null;
private JLabel sizeLabel = null;
public Cards()
try
panel = new JPanel[2];
panel[0] = new JPanel();
panel[1] = new JPanel();
panel[0].removeAll();
panel[1].removeAll();
panel[0].revalidate();
panel[1].revalidate();
allDefs = populate();
button1 = new JButton();
button2 = new JButton();
learn = new JButton("Learn");
button1.addActionListener(this);
button2.addActionListener(this);
learn.addActionListener(this);
courseLabel = new JLabel();
pageLabel = new JLabel();
showLabel = createTextPane();
sizeLabel = new JLabel();
cardSetup();
panel[0].setBackground(Color.WHITE);
panel[1].setBackground(Color.WHITE);
panel[0].setBorder(null);
panel[1].setBorder(null);
frame = new JFrame("Flash Cards");
frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
frame.setSize(485, 338);
frame.setLocationRelativeTo(null);
frame.add(panel[0], BorderLayout.CENTER);
frame.add(panel[1], BorderLayout.SOUTH);
frame.setResizable(false);
frame.setVisible(true);
start();
catch (final Exception e)
e.printStackTrace();
public Cards(final String defCourse, final String defWord,
final String defDef, final String defPage)
course = defCourse;
word = defWord;
def = defDef;
page = defPage;
public static void main(final String args[])
new Cards();
@Override
public void actionPerformed(final ActionEvent e)
final Object src = e.getSource();
if (src == button1)
if (button1.getText().equals("Guess"))
button1.setText("Right");
button2.setText("Wrong");
showLabel.setText(currDef.def);
showLabel.setFont(bold);
panel[0].revalidate();
panel[1].revalidate();
else
allDefs = remDef(allDefs, card);
if (allDefs != null)
button1.setText("Guess");
button2.setText("Skip");
showCard();
else
if (saveDefs == null)
frame.setVisible(false);
if (JOptionPane
.showConfirmDialog(
null,
"According to you, you have guessed all the words right. Would you like to start over?",
"All Correct!", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION)
allDefs = populate();
start();
else
System.exit(0);
else
button1.setText("Guess");
button2.setText("Skip");
allDefs = Arrays.copyOf(saveDefs, saveDefs.length);
saveDefs = null;
if (clickedWrong)
clickedWrong = false;
JOptionPane
.showMessageDialog(
null,
"You are now going over terms that you said you guessed wrong.",
"", JOptionPane.INFORMATION_MESSAGE);
showCard();
else if (src == learn)
saveDefs = addDef(saveDefs, allDefs[card]);
allDefs = remDef(allDefs, card);
if (allDefs == null)
allDefs = Arrays.copyOf(saveDefs, saveDefs.length);
saveDefs = null;
if (clickedWrong)
clickedWrong = false;
JOptionPane
.showMessageDialog(
null,
"You are now going over terms that you said you guessed wrong.",
"", JOptionPane.INFORMATION_MESSAGE);
panel[0].removeAll();
panel[1].removeAll();
button1.setText("Guess");
button2.setText("Skip");
cardSetup();
showCard();
else
if (button2.getText().equals("Wrong"))
int rows = 0;
final int colsWord = wordWrapWidth(allDefs[card].word, 21), colsDef =
67 - colsWord;
System.out.println(colsWord);
invis = new JButton("");
invis.setBackground(Color.BLACK);
p = new JPanel[3];
p[0] = new JPanel();
p[1] = new JPanel();
p[2] = new JPanel();
panel[0].setBackground(Color.BLACK);
rightWord = createTextArea(colsWord, allDefs[card].word);
rightDefn = createTextArea(colsDef, allDefs[card].def);
enterWord = createTextArea(colsWord);
enterDefn = createTextArea(colsDef);
enterWord.setBackground(Color.WHITE);
enterWord.setEditable(true);
enterWord.setFocusable(true);
p[0].setBackground(Color.BLACK);
p[1].setBackground(Color.BLACK);
p[2].setBackground(Color.BLACK);
p[0].add(rightWord);
p[0].add(rightDefn);
p[1].add(enterWord);
p[1].add(enterDefn);
p[2].add(invis); // otherwise invis appears when the word shows
// up
panel[0].removeAll();
panel[1].removeAll();
panel[0].revalidate();
panel[1].revalidate();
learn.setEnabled(false);
rightWord.setEditable(false);
rightDefn.setEditable(false);
rightWord.setBackground(Color.GREEN);
rightDefn.setBackground(Color.GREEN);
panel[0].setLayout(new GridBagLayout());
panel[1].setLayout(new GridBagLayout());
addItem("A1", 3, 1, panel[0], p[0], bold, CE, 100, 0,
GridBagConstraints.BOTH);
addItem("A2", 3, 1, panel[0], p[1], bold, CE, 100, 100,
GridBagConstraints.BOTH);
addItem("A3", 3, 1, panel[0], p[2], bold, CE, 100, 0,
GridBagConstraints.BOTH);
addItem("A1", 1, 1, panel[1], new JLabel(" "), plain, W);
addItem("B1", 1, 1, panel[1], learn, plain, CE);
addItem("C1", 1, 1, panel[1], sizeLabel, plain, E);
panel[0].revalidate();
panel[1].revalidate();
try
Thread.sleep(50);
catch (final Exception i)
i.printStackTrace();
rows =
Math.max(wordWrapLines(rightWord), wordWrapLines(rightDefn));
rightWord.setRows(rows);
rightDefn.setRows(rows);
enterWord.setRows(rows);
enterDefn.setRows(rows);
enterWord.requestFocus();
public Cards[] addDef(final Cards array[], final Cards defined)
Cards newarray[] = null;
if (array == null)
newarray = new Cards[1];
else
newarray = Arrays.copyOf(array, array.length + 1);
newarray[newarray.length - 1] = defined;
return newarray;
public void addItem(final String cell, final int colSpan,
final int rowSpan, final JPanel pan)
addItem(cell, colSpan, rowSpan, pan, new JLabel(" "), plain, E);
public void addItem(final String cell, final int colSpan,
final int rowSpan, final JPanel pan, final JComponent c, final Font f,
final int anchor)
addItem(cell, colSpan, rowSpan, pan, c, f, anchor, 100, 100);
public void addItem(final String cell, final int colSpan,
final int rowSpan, final JPanel pan, final JComponent c, final Font f,
final int anchor, final int weightx, final int weighty)
addItem(cell, colSpan, rowSpan, pan, c, f, anchor, weightx, weighty,
GridBagConstraints.NONE);
public void addItem(final String cell, final int colSpan,
final int rowSpan, final JPanel pan, final JComponent c, final Font f,
final int anchor, final int weightx, final int weighty, final int fill)
final GridBagConstraints gc =
new GridBagConstraints(cell.charAt(0) - 65, cell.charAt(1) - 49,
colSpan, rowSpan, weightx, weighty, anchor, fill, new Insets(0,
0, 0, 0), 0, 0);
if (f != null)
c.setFont(f);
try
pan.add(c, gc);
pan.validate();
catch (final Exception e)
e.printStackTrace();
System.exit(0);
public void addItem(final String cell, final int colSpan,
final int rowSpan, final JPanel pan, final JComponent c,
final int anchor, final int weighty, final int weightx)
final GridBagConstraints gc =
new GridBagConstraints(cell.charAt(0) - 65, cell.charAt(1) - 49,
colSpan, rowSpan, weighty, weightx, anchor,
GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0);
try
pan.add(c, gc);
pan.validate();
catch (final Exception e)
e.printStackTrace();
System.exit(0);
public void cardSetup()
panel[0].setBackground(Color.WHITE);
panel[0].setLayout(new GridLayout(3, 1));
panel[1].setLayout(new GridBagLayout());
final JPanel topPanel = new JPanel(new GridBagLayout()), middlePanel =
new JPanel(new GridBagLayout()), bottomPanel =
new JPanel(new GridBagLayout());
middlePanel.setBackground(Color.GREEN);
addItem("A1", 1, 3, topPanel);
addItem("B1", 1, 2, topPanel);
addItem("C1", 1, 1, topPanel);
addItem("C2", 1, 1, topPanel, courseLabel, plain, E);
addItem("C3", 1, 1, topPanel);
addItem("A1", 1, 1, middlePanel, new JLabel(" "), bold, CE);
addItem("A2", 1, 1, middlePanel, showLabel, bold, CE);
addItem("A3", 1, 1, middlePanel, new JLabel(" "), bold, CE);
addItem("A1", 1, 1, bottomPanel);
addItem("B2", 1, 1, bottomPanel, pageLabel, plain, E);
addItem("A3", 1, 1, bottomPanel);
addItem("A1", 1, 1, panel[1]);
addItem("B1", 1, 1, panel[1], button1, plain, E);
addItem("C1", 1, 1, panel[1], button2, plain, W);
addItem("D1", 1, 1, panel[1], sizeLabel, bold, E);
panel[0].add(topPanel);
panel[0].add(middlePanel);
panel[0].add(bottomPanel);
public JTextArea createTextArea(final int cols)
return createTextArea(cols, "");
public JTextArea createTextArea(final int cols, final String text)
final JTextArea t = new JTextArea(text, 1, cols);
t.addFocusListener(this);
t.setBackground(Color.LIGHT_GRAY);
t.setEditable(false);
t.setFocusTraversalKeys(KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS,
null);
t.setFocusTraversalKeys(KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS,
null);
t.setFocusable(false);
t.setFont(bold);
t.setLineWrap(true);
t.setWrapStyleWord(true);
t.setSize(0, Short.MAX_VALUE);
return t;
private JTextPane createTextPane()
final StyleContext context = new StyleContext();
final StyledDocument document = new DefaultStyledDocument(context);
final Style style = context.getStyle(StyleContext.DEFAULT_STYLE);
final JTextPane textPane = new JTextPane(document);
textPane
.setText("This text should wrap automatically because it is long.");
StyleConstants.setAlignment(style, StyleConstants.ALIGN_CENTER);
textPane.setFont(new Font("Courier New", Font.BOLD, 12));
textPane.setEditable(false);
textPane.setBorder(BorderFactory.createLineBorder(Color.RED));
return textPane;
@Override
public void focusGained(final FocusEvent e)
final JTextArea src = (JTextArea) e.getSource();
src.setBackground(Color.WHITE);
src.setCaretPosition(0);
src.setEditable(true);
@Override
public void focusLost(final FocusEvent e)
final JTextArea src = (JTextArea) e.getSource();
boolean correct = false;
if (src == enterWord)
correct = src.getText().equals(rightWord.getText());
else if (src == enterDefn)
correct = src.getText().equals(rightDefn.getText());
if (correct)
src.setBackground(Color.GREEN);
src.setEditable(false);
if (src == enterWord)
enterDefn.setFocusable(true);
enterDefn.setEditable(true);
enterDefn.requestFocus();
if (src == enterDefn)
invis.setFocusable(false);
learn.setEnabled(true);
learn.requestFocus();
else
if (message)
if (src == enterWord)
int rightChars = 0;
for (int c = 0; c < rightWord.getText().length()
&& c < src.getText().length(); c++)
if (rightWord.getText().charAt(c) != src.getText()
.charAt(c))
break;
rightChars++;
JOptionPane.showMessageDialog(
null,
rightWord.getText().substring(0, rightChars)
+ "|"
+ rightWord.getText().substring(rightChars,
rightWord.getText().length())
+ "\n"
+ src.getText().substring(0, rightChars)
+ "|"
+ src.getText().substring(rightChars,
src.getText().length()), "Incorrect",
JOptionPane.ERROR_MESSAGE);
if (src == enterDefn)
int rightChars = 0;
for (int c = 0; c < rightDefn.getText().length()
&& c < src.getText().length(); c++)
if (rightDefn.getText().charAt(c) != src.getText()
.charAt(c))
break;
rightChars++;
JOptionPane.showMessageDialog(
null,
rightDefn.getText().substring(0, rightChars)
+ "|"
+ rightDefn.getText().substring(rightChars,
rightDefn.getText().length())
+ "\n"
+ src.getText().substring(0, rightChars)
+ "|"
+ src.getText().substring(rightChars,
src.getText().length()), "Incorrect",
JOptionPane.ERROR_MESSAGE);
src.requestFocus();
message = !message;
public Cards[] populate()
Cards c[] = null;
try
final File file = new File("FC.txt");
if (file.exists())
final BufferedReader in =
new BufferedReader(new FileReader(file));
String line = null;
int badTerms = 0, goodTerms = 0;
while ((line = in.readLine()) != null)
final String lines[] = line.split("\t");
if (lines.length == 4)
c =
addDef(c, new Cards(lines[0], lines[1], lines[2],
lines[3]));
goodTerms++;
else
badTerms++;
if (badTerms > 0)
JOptionPane
.showMessageDialog(
null,
"There were "
+ badTerms
+ " bad term(s) and "
+ goodTerms
+ " good term(s). You will see only the good entries for the terms.",
"There were bad terms.",
JOptionPane.INFORMATION_MESSAGE);
else
JOptionPane
.showMessageDialog(
null,
"The file "
+ file.getCanonicalPath()
+ " does not exist. Please download the file or create it, and then restart the program.",
"File Not Found", JOptionPane.ERROR_MESSAGE);
System.exit(0);
catch (final Exception e)
e.printStackTrace();
return c;
public void printTA(final JTextArea ta)
System.out.println("cols=" + ta.getColumns());
System.out.println("rows=" + ta.getRows());
System.out.println("text=" + ta.getText());
System.out.println("getText.length()=" + ta.getText().length());
public Cards[] remDef(final Cards[] array, final int cardnum)
Cards temp[] = null;
if (array.length > 1)
temp = new Cards[array.length - 1];
int defLength = 0;
for (int l = 0; l < array.length; l++)
if (!array[cardnum].equals(array[l]))
temp[defLength] = array[l];
else
defLength--;
defLength++;
return temp;
private void showCard()
currDef = allDefs[(int) Math.floor(Math.random() * allDefs.length)];
courseLabel.setText(currDef.course);
pageLabel.setText(currDef.page);
showLabel.setText(currDef.word);
sizeLabel.setText("Left: " + allDefs.length);
private void start()
button1.setText("Guess");
button2.setText("Skip");
showCard();
frame.setVisible(true);
@Override
public String toString()
return "Java.lang.Cards[" + course + "," + word + "," + def + ","
+ page + "]";
public String wordWrap(final String string, final int w)
String newStr = "", s = string;
final int width = w;
int oldSpace = 0;
if (s.length() < w)
return s;
for (int c = 0; c < s.length(); c++)
if (c == s.length() - 1)
if (s.length() > width && oldSpace != 0)
newStr +=
s.substring(0, oldSpace).replace("(", "\\(")
.replace(")", "\\)")
+ "<br/>" + s.substring(oldSpace + 1, s.length());
else
newStr += s;
else if (s.charAt(c) == ' ')
if (c > width)
newStr += s.substring(0, oldSpace) + "<br/>";
s =
s.replaceFirst(
s.substring(0, oldSpace).replace("(", "\\(")
.replace(")", "\\)")
+ " ", "");
c = 0;
oldSpace = c;
return newStr;
private int wordWrapLines(final JTextArea t)
return wordWrap(t.getText(), t.getColumns()).replaceAll("<br/>", "\n")
.split("\n").length;
private int wordWrapWidth(final String s, final int w)
final String lines[] =
wordWrap(s, w).replaceAll("<br/>", "\n").split("\n");
int maxWidth = 0;
for (final String line : lines)
if (line.length() > maxWidth)
maxWidth = line.length();
if (maxWidth > w)
return w;
return maxWidth;
}And here is the accompanying file for Cards.java
ET115 accuracy the difference between the measured and accepted or "true" value of a measurement 01.04.013.2
ET115 ampere-hour rating a number given in ampere-hours; determined by multiplying a current in amps times the length of time in hours a battery can deliver that current to a load 03.07.093.1
ET115 atom the smallest element particle that possesses the unique characteristics of that element 02.01.024.1
ET115 battery an energy source that uses a chemical reaction to convert chemical energy into electrical energy 02.03.031.1
ET115 charge an electrical property of matter that exists because of an excess or deficiency of electrons 02.02.028.1
ET115 circuit an interconnection of a source, a load, and an interconnecting current path that are designed produce a desired result 02.06.047.1
ET115 circuit breaker a resettable protective device used for interrupting excessive current in an electric circuit 02.06.050.2
ET115 colour code a system of colour bands or dots that identify the vale of a resistor or other component 02.05.040.2
ET115 conductance the ability of a circuit to allow current; the reciprocal of resistance 02.05.038.3
ET115 conductor a material in which electrical current is established with relative ease 02.01.027.1
ET115 coulomb the unit of electrical charge; the total charge possessed by 6.25 * 10^18 electrons 02.02.028.2
ET115 DMM digital multimeter; an electronic instrument that combines meters for the measurement of voltage, current, and resistance 02.07.057.1
ET115 electronic related to the movement and control of free electrons in semiconductors or vacuum devices 02.01.027.3
ET115 engineering notation a system for representing any number as a one-, two-, or three-digit number, times a power of ten with an exponent that is a multiple of 3 01.01.007.1
ET115 error the difference between the true measured and best-accepted value of a measurement 01.04.013.1
ET115 free electron a valence electron that has broken away from its parent atom and is free to move from atom to atom within the atomic structure of a material 02.01.026.1
ET115 fuse a protective device that burns open when there is excessive current in a circuit 02.06.050.1
ET115 half-splitting a troubleshooting procedure where one starts in the middle of a circuit or system and, depending on the first measurement, works toward the output or toward the input to find the fault 03.08.096.1
ET115 ion an atom that has gained or lost a valence electron and resulted in a net positive or negative charge 02.01.026.2
ET115 load a resistor or other component that is connected across the output terminals of a circuit, draws current from the source, and has work done upon it 02.06.047.2
ET115 metric prefix a symbol that is used to replace the power of ten in numbers expressed in engineering notation 01.02.010.1
ET115 Ohm's law a law stating that current is directly proportional to voltage and inversely proportional to resistance 03.01.075.1
ET115 orbit the path an electron takes as it circles around the nucleus of an atom 02.01.025.2
ET115 photovoltaic effect the process where light energy converts directly into electrical energy 02.03.033.1
ET115 piezoelectric effect the property of a crystal where a changing mechanical stress produces a voltage across the crystal 02.03.034.2
ET115 power of ten a numerical representation consisting of a base 10 and an exponent; the number 10 raised to a power 01.01.004.2
ET115 power rating the maximum amount of power a resistor can dissipate without being damaged by excessive heat build-up 03.05.088.1
ET115 precision a measure of the repeatability or consistency of a series of measurements 01.04.013.3
ET115 resistor an electrical component designed specifically to have a certain amount of resistance 02.05.039.1
ET115 round off the process of dropping one or more digits to the right of the last significant digit in a number 01.04.015.1
ET115 scientific notation a system for representing any number as a number between 1 and 10 times an appropriate power of ten 01.01.004.1
ET115 Seebeck effect the generation of a voltage at the junction of two different metals that have a temperature difference between them 02.03.034.1
ET115 semiconductor a material that has a conductance value between that of a conductor and an insulator 02.01.027.2
ET115 SI standardised international system of units used for all engineering and scientific work; abbreviation for French Le Systeme International d'Unites 01.02.009.1
ET115 switch an electrical or electronic device for opening and closing a current path 02.06.048.4
ET115 thermistor a type of temperature transducer in which resistance is inversely proportional to temperature 02.05.046.2
ET115 thermocouple a thermoelectric type of voltage source that is commonly used to sense temperature 02.03.033.4
ET115 troubleshooting a systematic process of isolating, identifying, and correcting a fault in a circuit or system 03.08.095.1
ET115 voltage the amount of energy available to move a certain number of electrons from one point or another in an electrical circuit 02.03.029.Edited by: ElectrifiedBrain on Apr 12, 2011 12:08 AMEJP wrote:
No way anybody in their right mind is going to look at all that. Find the salient differences between your SCCE and your non-working code.I didn't think so, but it was worth a shot. I did my best to find it last night, but I just couldn't.
Kleopatra wrote:
hahahaha ... you really think that'll work: "I'm tired, so going for a nap - hope you'll clean the mess and have it fixed when I wakeup"
Dream well
JeanetteIt was midnight, and I had to wake up at 5:30, so that was true. I didn't really think it was going to work, but I was hoping.
Anyway, this can be locked too, I guess. I have an idea on how to find what's wrong.
Maybe you are looking for
-
How do I combine two user accounts?
So i'm a new Mac user and when I got my MacBook Pro I transfered files from my PC using Migration Assistant. That worked succesfully but I had trouble trying to find the files and now I have they are all on this separate user account. So I was wonder
-
SSMA for My SQL v6.0 not connecting to MS SQL 2008R2
Is SSMA for My SQL v6.0 not supporting SQL 2008 R2. Is this version not backward compatible. As while connecting to 2008R2 SQL i am getting the below message. "You cannot connect to an older version (SQL Server 2008) of target SQL Server from a highe
-
My iPod touch will start to connect to iTunes, then doesn't.
My iPod will not turn on, so I go it to the apple icon that it is now frozen on. I updated my new Windows 8 computer, updated iTunes completely, tried restarting everything and it will not connect so that I can restore my iPod. If I could get the pro
-
Bangkok, Thailand route pattern
Hello, I am trying to create a route pattern for my office in bangkok. they are needing to call toll free numbers within their country, however when I do DNA it shows the pattern has blocked when I have allowed it. I don't understand what I'm mi
-
Photoshop elements 9 won't open file
When I try to open a file a message comes up saying: " Could not complete your request because an unknown or invalid jpeg marker type is found" I can't open the file I was working on last night, but I can open the original image when I first scanned