Making a frame with a thread??
I have a thread which executes its run method for unlimited time unless I change a condition in a while statement in the run method:
run()
while (flag){
System.out.println("time");
Now I would like to make a frame when I start this thread and for each iteration it should print "time" in this frame.
I have tried to make a method outside of the run method, and then call it in the run method,:
public void createFrame(){
JFrame frame = new JFrame();
frame.setVisible(true);
run()
createFrame()
while (flag){
System.out.println("time");
but then the thread just freezes! Does someone have an idea?
System.out.println("time");
will never go to the frame.
You will need to add some sort of text control, JTextArea for instance, to the frame, and the add the text to that area. Of course, you will need to use SwingUtilities.invokeLater to do this.
Similar Messages
-
Putting frame with buttons into a thread
please help!!!
i've got a thread:
package aJile;
import java.io.*;
import java.net.*;
public class SocketHandler extends Thread
private Socket socket; // Socket used for messages
private int socketNr;
private byte[] inbuf;
private InputStream in;
private OutputStream out;
public SocketHandler(Socket socket)
this.socket = socket;
public void send(String str) throws IOException {
out.write(str.getBytes(), 0, str.length());
out.flush();
public String receive() throws IOException {
int numBytes = in.read(inbuf);
String str = new String(inbuf, 0, numBytes);
return str;
public String switchOn() throws IOException {
send("1");
String state = receive();
return state;
public void run()
try {
// set up the input and output streams
in = socket.getInputStream();
out = socket.getOutputStream();
inbuf = new byte[128];
receive();
// System.out.println(switchOn());
in.close();
out.close();
socket.close();
System.out.println("closing");
catch (Exception e)
System.out.println("Caught exception "+ e);
}and i want to add a frame with buttons to this thread. that everytime tread starts, this frame would appear. and that methods of the thread would be called with a button press. How to join them?
here is a frame:
package buttons;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class Frame3 extends JFrame implements ActionListener
JPanel pane = new JPanel();
Icon lightIcon = new ImageIcon("light.gif");
Icon darkIcon = new ImageIcon("dark.gif");
JButton pressme = new JButton("Press Me");
JButton ironButton = new JButton("Iron",lightIcon);
JButton lampButton = new JButton("Lamp",lightIcon);
JButton ovenButton = new JButton("Oven",lightIcon);
public Frame3()
super("Event Handler Demo"); setBounds(100,100,300,200);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
Container con = this.getContentPane(); // inherit main frame
con.add(pane);
pressme.setMnemonic('P');
pressme.addActionListener(this); // register button listener
ironButton.addActionListener(this);
lampButton.addActionListener(this);
ovenButton.addActionListener(this);
pane.add(ironButton);
pane.add(lampButton);
pane.add(ovenButton);
pane.add(pressme);
public void actionPerformed(ActionEvent event)
Object source = event.getSource();
if (source == pressme){
JOptionPane.showMessageDialog(null,"Hello!","Message Dialog",
JOptionPane.PLAIN_MESSAGE);
if (source == ironButton){
if (ironButton.getIcon() == lightIcon){
ironButton.setIcon(darkIcon);
else ironButton.setIcon(lightIcon);
if (source == lampButton){
if (lampButton.getIcon() == lightIcon)
lampButton.setIcon(darkIcon);
else lampButton.setIcon(lightIcon);
if (source == ovenButton){
if (ovenButton.getIcon() == lightIcon)
ovenButton.setIcon(darkIcon);
else ovenButton.setIcon(lightIcon);
public static void main(String[] args){
Frame3 app = new Frame3();
app.setVisible(true);
}thank youcould you tell me how to avoid exceptions?
what i want to to is to call a method wich simply sends a string and gets a string back.
public String switchOn() throws IOException {
send("1");
String state = receive();
return state;
}but when i call this method in actionPerformed() i get exceptios and my socket closes. It sends the string though, but after this program crashes. is there anything special to do if i want to use this Frame3 in order to communicate with a client by pressing buttons? -
Problem with painting/threads/ProgressMonitor
Hello,
I'll try to be clear, ask me anything if it isn't. I have two threads, one that downloads some selected webpages, and the other that reads them. In the thread that reads, there is a ProgressMonitor object, which indicate how many webpages have been read.
I created a JUnit test which works as expected. One thread downloads, the other reads and a nice little progress monitor appears and everything works.
I transfered the code (the part of the code starting the thread that reads, which starts the thread that downloads) into the main application. The threads are working and the ProgressMonitor appears, but it does not draw the components (there is no label, progress bar, button etc...). I can't seem to find the problem. I think it is caused by the threads or synchronized methods, I am not sure as I am no expert with threads. Once the threads have finished running, the components of the ProgressMonitor appears. So I guess that the threads are blocking the (re)painting of the application, but I can't figure why. Im using Thread.yield() quite often. Priorities problem ? Here some parts of the code :
JUnit Test code :
public synchronized void testHarvest() {
JFrame frame = new JFrame("Super");
frame.setVisible(true);
Harvester harvester = new Harvester(
frame,
new Rule());
Thread harvest = new Thread(harvester);
harvest.start();
try {
harvest.join();
} catch (InterruptedException ie) {}
...Main application :
Code:
public class Gui extends JFrame implements ComponentListener {
private static JFrame mMotherFrame = null;
public Gui() {
mMotherFrame = this;
private class GuiActionRealize {
public synchronized void getFromWeb() {
Harvester harvester = new Harvester(
mMotherFrame,
new Rule());
Thread harvest = new Thread(harvester);
harvest.start();
try {
harvest.join();
} catch (InterruptedException ie) {}
}Harvester :
Code:
public class Harvester implements Runnable {
private JFrame mMotherFrame;
private ProgressMonitor mMonitor;
public Harvester(JFrame owner, IRule subjectRule) {
mMotherFrame = owner;
public void find() {
mMonitor = new ProgressMonitor(mMotherFrame, "Downloading from the Internet.", "", 1, mAcceptedURLs.size());
mMonitor.setMillisToDecideToPopup(0);
mMonitor.setMillisToPopup(0);
public void run() {
find();
mHarvested = harvest();
mFinished = true;
Thread.yield();
public List harvest() {
download = new DownloadThread(this, mAcceptedURLs);
Thread downthread = new Thread(download);
downthread.start(); int i = 0;
while (!mMonitor.isCanceled()) {
while (download.getDownloadedDocuments().isEmpty()) {
try {
Thread.yield();
Thread.sleep(300);
} catch (InterruptedException ie) {}
mMonitor.setNote("Downloading decision " + i);
mMonitor.setProgress(mMonitor.getMinimum()+ ++i);
} // end while(!cancel)
download.kill();
return mHarvested;
}I'm very puzzled by the fact that it worked in the JUnit Case and not in the application.
I can see that the thread that is responsible for drawing components is not doing his job, since that the mother frame (Gui class) is not being repainted while the harvest/download threads are working. That's not the case in the JUnit case, where the frame is being repainted and everything is fine. This is the only place in the application that I'm using threads/runnable objects.
I also tried making the Gui class a thread by implementing the Runnable interface, and creating the run method with only a repaint() statement.
And I tried setting the priority of the harvest thread to the minimum. No luck.
If you need more info/code, let me know, Ill try to give as much info as I can.
Thank youWhy are you painting the values yourself? Why don't you just add the selected values to a JList, or create a container with a GridLayout and add a JLabel with the new text to the container.
Every time you call the paintComponent() method the painting gets done from scratch so you would need to keep a List of selected items and repaint each item every time. Maybe this [url http://forum.java.sun.com/thread.jsp?forum=57&thread=304939]example will give you ideas. -
Interfacing SingleFrame Application with eventListener Thread
How do I make a TextFrame created with the NetBeans GUI, respond to an event that takes place on another thread. Is there some way for that other thread to "push" an event onto the TextArea? Suppose I have serveral text areas and I want them to all update each time new data comes in over the port? How do I send an "Serial port has new data" message to them?
Here is what I have done so far.
I used netBeans to create a standard desktop application Single Frame application. I made a single frame with a textArea in it. I can make that the text in that area change in response to events on the GUI event queue corresponding to events that occur IN THAT FRAME.
I can also use something like SimpleRead demo application (see code below) to make a SerialPortEvent LIstner thread that responds to events (such as data received) on a serial port by printing to the system out.
I can even create a button on that frame that will poll the SerialPortEvent Listener thread, to see if there is data, and if so, put it in the textArea when the user clicks the button.
But I can't get the display to update automatically when data is recieved.
My first thought was to create a method in the NetBean autogenerated MyAppView class object which could be called from the SerialPortEventListener Thread.
public void displaySerialData (String data) {
jTextArea1.append(data);
}And then from the event listener thread I would have something like
public void serialEvent(SerialPortEvent event) {
switch (event.getEventType()) {
case SerialPortEvent.DATA_AVAILABLE:
byte[] readBuffer = new byte[506];
try {
while (inputStream.available() > 0) {
int numBytes = inputStream.read(readBuffer,1,502);
displaySerialData(new String(readBuffer,0,1)); // ERROR calling non-static method...
} catch (IOException e) {}
}But that doesn't work because displaySerialData is not static and I will get a compiler error about calling a non-static method from a static context. I do not understand why SerialEvent is considered to be a "static context". It is certainly not a static method (is it?).
In any case, it seems like the problem would be similar if I had to frames open. Suppose doing something on one frame causes the other frame to need an update. How do I send that "general update" event?
IMPORTANT: I can solve this problem easily enough just by making the myAppView class into the SerialPortEvent listener, and then including all the necessary code to initialize the port into that class. But that violates the "one task one class" princple of modular programming. And it doesn't solve the general problem of how to pass asynchronous data/events from one thread to another.
Edited by: piMeson on Jan 14, 2010 3:47 PM
Edited by: piMeson on Jan 14, 2010 5:37 PMYou shouldn't read or write a JComponent property from a thread other than the EDT.Proviso: unless the API specifies the method as thread-safe.
JTextArea#append, replaceRange and JTextComponent#replaceSelection, setText are some of those methods.Oh... thanks for pointing out that mistake. I didn't know that.
Indeed I was already planning to laugh it up on platinium-star Darryl along the lines of "I can find it stipulated in the API nor in the Tutorial :o)". But I checked my JDK6 API Javadoc before posting, and I did find the explicit provision that the methods listed above are indeed thread-safe...
This raises a few questions though... I'll open a [dedicated thread|http://forums.sun.com/thread.jspa?threadID=5424219] for that.
Edited by: jduprez on Jan 17, 2010 9:57 PM -
Why am I seeing a black frame with a big "X" through it
I am sure I have not had this problem before.
But today when I tried to import a video file into AE (CS5 Windows), and added it to a new composition, the result in the composition was this big black frame with an "X" in it -- and it is also not the aspect ratio of the orginal footage (which is 1440 x 1080.
I tried adding the file into an existing AE project with no problem.
WHen I click on the MOV file itself, the video shows fine (but also at a narrow aspect ratio -- not 1440 x 1080)
BTW My compositon settings are 1440 x 1080
Any suggestions?
Thanks,
RowbyHi
I set up a new project and imported the footage again into the New Composition Icon.
For whatever reason it's still going into the Square Pixel Mode. And not giving me a 1440 x 1080 view. When I went into the comp settings and clicked on Presets I didn't see any that are specific 1440 x 1080. I found a HDV 1080 29.97. But that's making the view wider than 1440 . But even that doesn't do me much good in the Pixel Aspect Ratio settings,,,, (Yes I have a bit of a built in letterbox on top and bottom of my original footage which you are seeing in the below screen capoture.)
Again, not sure why simply dragging the footage into the New Composition icon doesn't do this automatically for me -- especially since this is a new project..... (Maybe there's a "project setting" I need to look into....????)
Realize you're reading this via Iphone. So I am patiently doing other things while I figure this out.....
Thanks
Rowby -
So what is up with this error message in Muse?
MuseJSAssert: Error calling slector function:SecurityError: Failed to read the ‘contentDocument’ property from ‘HTMLIFrameElement’: Blocked a frame with orign “null” from accessing a cross-origin frame.This is a genuine security error generated by the browser when viewing a page with iFrame content locally.
Please refer to Zak's reply in the following thread: https://forums.adobe.com/message/6496180#6496180
Cheers,
Vikas -
Hi there,
On my iMac from 2009 - 3,06 Ghz Core 2 Duo with Mac OS X lion 10.7.5 (11G63) I'm having the iPhoto (8.1.2 version) making auto-shutdown with no reason;
Does anybody know what shall I do with it ???
Regards,
Miguel Sim.Hello again,
Process: iPhoto [2771]
Path: /Applications/iPhoto.app/Contents/MacOS/iPhoto
Identifier: com.apple.iPhoto
Version: 8.1.2 (8.1.2)
Build Info: iPhotoProject-4240000~8
Code Type: X86 (Native)
Parent Process: launchd [141]
Date/Time: 2013-11-14 18:53:17.814 +0000
OS Version: Mac OS X 10.7.5 (11G63)
Report Version: 9
Interval Since Last Report: 106324 sec
Crashes Since Last Report: 2
Per-App Interval Since Last Report: 634 sec
Per-App Crashes Since Last Report: 2
Anonymous UUID: 637A60DB-E15A-441E-BAAB-F21EF18FA1B6
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: 0x000000000000000a, 0x000000000cfbc000
VM Regions Near 0xcfbc000:
JS JIT generated code 000000000cfb4000-000000000cfbc000 [ 32K] rwx/rwx SM=PRV
--> mapped file 000000000cfbc000-000000000cfcc000 [ 64K] r--/rwx SM=COW /Users/USER/Pictures/*/*.jpg
TC malloc 000000000cfcc000-000000000d0cc000 [ 1024K] rw-/rwx SM=PRV
Application Specific Information:
objc[2771]: garbage collection is OFF
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_c.dylib 0x9144ebe1 memmove$VARIANT$sse3x + 35
1 com.apple.ImageIO.framework 0x99396ca0 _CGImageSourceBindToPlugin + 300
2 com.apple.ImageIO.framework 0x99396b63 CGImageSourceGetType + 55
3 com.apple.CoreGraphics 0x939bdc4c CGImageCreateWithJPEGDataProvider2 + 166
4 com.apple.CoreGraphics 0x939bddc4 CGImageCreateWithJPEGDataProvider + 47
5 com.apple.iPhoto 0x001aa38e 0x1000 + 1741710
6 com.apple.iPhoto 0x0043d5a6 0x1000 + 4441510
7 com.apple.iPhoto 0x00448902 0x1000 + 4487426
8 com.apple.AppKit 0x9494f79d -[NSView _drawRect:clip:] + 3929
9 com.apple.AppKit 0x9494d7bc -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectFor View:topView:] + 2650
10 com.apple.AppKit 0x9494e193 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectFor View:topView:] + 5169
11 com.apple.AppKit 0x9494e193 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectFor View:topView:] + 5169
12 com.apple.AppKit 0x9494e193 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectFor View:topView:] + 5169
13 com.apple.AppKit 0x94947caa -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] + 4817
14 com.apple.AppKit 0x94940bd9 -[NSView displayIfNeeded] + 1365
15 com.apple.AppKit 0x94945872 -[NSClipView _immediateScrollToPoint:] + 6543
16 com.apple.AppKit 0x94943e2e -[NSClipView scrollToPoint:] + 234
17 com.apple.AppKit 0x94a34137 -[NSScrollView scrollClipView:toPoint:] + 279
18 com.apple.AppKit 0x94a33efb -[NSClipView _scrollTo:animateScroll:flashScrollerKnobs:] + 1533
19 com.apple.AppKit 0x94a3711c -[NSClipView _scrollTo:animate:] + 62
20 com.apple.AppKit 0x94a370d4 -[NSClipView _scrollTo:] + 48
21 com.apple.AppKit 0x94a3709b -[NSClipView _scrollPoint:fromView:] + 107
22 com.apple.AppKit 0x94a37029 -[NSView(NSPrivate) _scrollPoint:fromView:] + 50
23 com.apple.AppKit 0x94a36fef -[NSView scrollPoint:] + 65
24 com.apple.iPhoto 0x001c08e4 0x1000 + 1833188
25 com.apple.iPhoto 0x001bff5b 0x1000 + 1830747
26 com.apple.AppKit 0x949d1508 -[NSWindow sendEvent:] + 9384
27 com.apple.AppKit 0x94969f77 -[NSApplication sendEvent:] + 4788
28 com.apple.iPhoto 0x00229973 0x1000 + 2263411
29 com.apple.AppKit 0x948fbb21 -[NSApplication run] + 1007
30 com.apple.AppKit 0x94b8cac5 NSApplicationMain + 1054
31 com.apple.iPhoto 0x00124b80 0x1000 + 1194880
32 com.apple.iPhoto 0x00003172 0x1000 + 8562
Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0 libsystem_kernel.dylib 0x9982ab5e __select_nocancel + 10
1 libdispatch.dylib 0x9c80bcbd _dispatch_mgr_invoke + 642
2 libdispatch.dylib 0x9c80a853 _dispatch_mgr_thread + 53
Thread 2:: Dispatch queue: CFPreferences Background Sync Queue
0 libsystem_kernel.dylib 0x9982a71e __open_nocancel + 10
1 libsystem_c.dylib 0x914c643d _gettemp + 554
2 libsystem_c.dylib 0x914c65df mkstemp + 32
3 com.apple.CoreFoundation 0x9685fc06 -[CFXPreferencesPropertyListSourceSynchronizer writePlistToDisk] + 1366
4 com.apple.CoreFoundation 0x968243a3 -[CFXPreferencesPropertyListSourceSynchronizer synchronizeAlreadyFlocked] + 595
5 com.apple.CoreFoundation 0x968240fa -[CFXPreferencesPropertyListSourceSynchronizer synchronize] + 522
6 com.apple.CoreFoundation 0x9686750a __-[CFXPreferencesPropertyListSource synchronizeInBackgroundWithCompletionBlock:]_block_invoke_1 + 122
7 libdispatch.dylib 0x9c809fbd _dispatch_call_block_and_release + 15
8 libdispatch.dylib 0x9c80b943 _dispatch_queue_drain + 224
9 libdispatch.dylib 0x9c80b7e8 _dispatch_queue_invoke + 47
10 libdispatch.dylib 0x9c80aff0 _dispatch_worker_thread2 + 187
11 libsystem_c.dylib 0x91478b24 _pthread_wqthread + 346
12 libsystem_c.dylib 0x9147a6fe start_wqthread + 30
Regards,
Miguel Sim -
good day my question is , does anyone of you experiencing when making a call with facetime the phone shuts off and restart
See this veeeeeeeeeery long thread.
https://discussions.apple.com/thread/3404857
It's an issue with hundreds of phones. Some claim it's software related, some hardware, some say it's a mixture of both.
Some people have had temporary success with quitting the Phone.app / restoring as a new phone / restoring from an iCloud backup / disabling Siri / toggling speakerphone on & off...
Unfortunately all of the above only been temporary, with the problem recurring again after a few calls, or a few days etc.
So far the only solution that seems permanent has been to replace the phone. But even so, it's the luck of the draw to recieve a functional phone, and not another faulty one.
I'm completely annoyed as there is no Apple Store near me...... and Apple haven't even acknowledged the issue, despite the above thread being 34 pages long, as of writing. -
Delimited output of report that contains frames with Print Direction = 'Across'
Hello all.
On the header section of my report, I have a frame with Print Direction = 'Across'.
On screen the output is :
Value1 Value2 Value3 Value 4
I want to export this report to excel, by using DELIMITED option. However the output I'm getting is :
Value1
Value2
Value3
Value4
e.g., reports is not generating several columns (one for each field), but separate lines.
Anyone knows how to accomplish delimited output of frames with Print Direction='Across' ?
Thanks in Advance,
OctavioIf you're not generating both bitmap and delimited data from the same report, try using character mode output rather than "delimited". You can create the report to generate the appropriately delimited values to a text file. This will also give you greater control over aspects such as headings.
Delimited output simply uses the structure of the layout. It doesn't take into account the across/down repeat directions except in the case of matrix. -
I have been trying to export temp cuts of an anamorphic project (2.35:1) in a letterboxed 16:9 frame with timecode and text overlays and other Additional Video Effects. Converting the 2.35 to 16x9 has been a breeze with the Preserve Aspect Ratio option in Cropping & Padding . The problem is that the black bars that that puts in the 16:9 frame appear OVER any of the Additional Video Effects, thus covering them up.
E.g. if I select a Text Overlay and place it in the Center, I can see it just fine. But if I want it Upper Left, Title Safe, it is covered by the black space of the Letterboxing. So the Additional Video Effects are getting added, they are just getting covered by the letterboxing. You can even see the very edge of the text in the Title Safe position, peeking out from behind the letterboxing, which is, of course, frustrating .
Thus far it's been a two-step process: letterbox the anamorphic source, then add TC and other video effects in a second job.
So - is there any way to do this in ONE step? It would really help my anamorphic workflow.
(apologies for the lengthy question.)
[I'm using FCPX 10.1.3 & Compressor 4.1.3, in OSX 10.9.5 on Retina MBP, Late 2013, w/ NVIDIA GeForce GT 750M 2048 MB]Thanks for the reply Russ.
Yes, I've considered adding titles and/or generators in the FCPX storyline, but this creates a need to render the entire timeline. As I'm juggling library locations and hard drive spaces I just didn't want to add a new render that will occupy a lot of space. It's also a bit of visual clultter for me, so my goal is to find the best workflow for adding this stuff on or after export. -
I'm making a DVD with my iMOVIE and when I tried to burn a DVD I got an error message that said
"ERRORS IN PROJECT
There were errors during the project validation that have to be fixed before burning the project."
What does this mean and how do I fix it.
jimHi
Do You have a NEW Mac ?
Does it really have iDVD ? New ones Don't.
Please tell much more
• Mac used
• Program used (versions)
• Material used (Codecs, file formats etc)
Yours Bengt W -
We have been working for some time with LiveCycle to creat a documents and have experienced a host of problems with the end product.
1. Images inserted into the LiveCycle PDF document often come up as "broken links" after editing the document and resaving it.
2. Documents will not display in Acrobat reader unless a digital signature is applied to them and the document is re-saved.
3. After making the document, we are unable to use Adobe Pro to insert pages, delete pages, or insert files into the document as attachments.
The end state was to use the simplicity of LiveCycle to create a document and do most of the hard work, and then save it as a PDF document that could be easily edited with Adobe Pro. It has proven difficult, to say the least, to figure out how to make this work.
Thanks in advance for any assistance.1- Thank you
2- It only seems rational that if I make a form with LiveCycle that I should be able to view it with Adobe Reader or Adobe Pro.
Making a form with LiveCycle to be distrubuted to personnel internally that have Adobe Reader and Adobe Pro and cannot open it without it having a digital signature field in it that has just recently been signed just doesn't make sense. Nor does it seem to make sense to have to purchase 200 additional licenses just for LiveCycle so that people can open a PDF that was made with LiveCycle. If I make it in LiveCycle and only people with LiveCycle can open it, what is the purpose of making it to begin with?
3- This also totally sucks. In a standard Adobe Doc I can at least attach documents to it?
So, what, exactly then, is the purpose of LiveCycle if the only benefit it seems to provide is ease of creation, but the end product has way less functionality?
And how do I go about contacting an Adobe rep on the phone in regards to this without getting "there is no support for this product, go to Adobe.com"
We have millions of dollars of Adobe software and can't get support other than hunting and pecking in these forums? Really? -
Making a PDF with "Outline" and Bookmarks Using Pages
Hi, I'm using Pages 1 and I have tried making a PDF with outline breaks but I failed. I thought using paragraph styles for my document would work but when I exported my document to PDF, all I got was a PDF that only has the thumbnails view but not the outline view. Also, when I exported my document that has bookmarks to PDF, all the bookmarks don't work anymore. How can I make a PDF document using Pages with all the bookmarks and the organization just like other PDFs that I encounter? Thanks
Hello LadyinStilettos,
welcome to the Pages Discussions. If I remember correct, in Pages 1.x there is no way to export text links to PDF. An outline view creation doesn't exist.
If you want to have links in PDF (of the TOC, too), then you should upgrade to iWork'06. But outline view doesn't exist here like it doesn't in version 1.x. -
How to determine column inches in a text frame with intersecting frames?
I am trying to write a script to determine how much text would fit in a text frame before actually having the text. If the frame has no run-around areas intruding on the frame it is the simple depth of the frame. Is there an easy way to determine the area of the frame with the obstructed areas subtracted?
Maybe you could fill text frame with placeholder text:
myTextFrame.contents = TextFrameContents.placeholderText;
Hope that helps.
tomaxxi
http://indisnip.wordpress.com/ -
My ipod touch 4th generation's audio jack is no longer making a connection with my headphones, i dont think my ipod is under warranty and therefor would i be able to pay apple to fix my ipod.
If not under warranty,
Apple will exchange your iPod for a refurbished one for $199 for 64 GB 4G and $99 for the other 4Gs. They do not fix yours.
Apple - iPod Repair price
A third-party place like the following will replace the jack for less less. Google for more.
iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens
Replace the jack yourself if you are up to it
iPod Touch Repair – iFixit
Maybe you are looking for
-
Dreamweaver & BC product option design help
Hi everyone, hope we are all well? I have been building non e-commerce websites for a long time, i would say im above average at the job but i need some help as i take on my first e-commerce. Im using Business Catalyst and Dreamweaver CC and the site
-
IDoc PORDCR05 : Error in ADDR_NUMBER_GET - ME813
Hi All, I am trying to create Purchase Order via IDoc : PORDCR05. In IDoc processing - I am getting below error: System error invoking ADDR_NUMBER_GET : return code 1 Message no. ME813 I have double checked Vendor Master Data and all looks fine. Does
-
Do I need to get my battery replaced?
My phone wouldn't charge and it ran out of battery. The water damage indicator has been activated in the headphone jack, but not in the docking slot. There is no visible water or air bubbles in the camera or on the screen. Do I just need to get my ba
-
Hi, I've just installed DevSuiteHome1, OraDb10g_home1, and Oracle Developer Suite - DevSuiteHome1 and will be creating forms for an assignment. I've managed to log in to SQL*Plus with: "/ as sysdba" and successfully created a new user with a password
-
Exit from Director with error code
Hi all! How can I exit from director with specifyed error code by using lingo or JavaScript syntax? I want to catch its error code in batch file for example to do something special. Sample batch file I want to use: myprojector.exe if %ERRORLEVEL% ==