Question about altering graphic frames.
Say I have an image thats 11x12 inside a frame of 4x3. If I modify the size of the frame it will show a ghosted back preview of the entire 11x12 image. I need to know if there is a way to turn this feature off.
Thanks in advance.
Try setting live screen drawing to never.
Bob
Similar Messages
-
Question about ALTER TABLESPACE add/drop datafile
Good afternoon,
As an exercise, I created a tablespace STORETABS and added a datafile to it using the command:
SQL> alter tablespace storetabs add datafile 'e:/storetabs3.dbf' size 50M;This step succeeded. A new file was created in the root of e: as expected.
Following that command, I issued:
SQL> alter tablespace storetabs drop datafile 'e:/storetabs3.dbf';
Tablespace altered.The command succeeded. However, the file *'e:/storetabs3.dbf'* was not removed. After re-reading the documentation found at http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/statements_3002.htm, I get the impression that removing the O/S file itself is something that always needs to be done manually.
The question: Am I correct that there is no option to cause the "alter tablespace <tablespace> drop datafile <datafilename>" to delete the O/S file ? In other words, must the O/S file always be manually deleted as a separate step ?
Thank you for your help,
John.I believe in windows directory paths used backslash and not forward slash.
You can argue why oracle does not give error, either while creating or while dropping ;)
SQL> select * from v$version ;
BANNER
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
PL/SQL Release 11.2.0.1.0 - Production
CORE 11.2.0.1.0 Production
TNS for Linux: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production
SQL> select tablespace_name, file_name from dba_data_files ;
TABLESPACE_NAME
FILE_NAME
USERS
/u01/app/oracle/oradata/orcl/users01.dbf
UNDOTBS1
/u01/app/oracle/oradata/orcl/undotbs01.dbf
SYSAUX
/u01/app/oracle/oradata/orcl/sysaux01.dbf
SYSTEM
/u01/app/oracle/oradata/orcl/system01.dbf
EXAMPLE
/u01/app/oracle/oradata/orcl/example01.dbf
SCOTT_TBS
/home/oracle/scott_f1.dat
6 rows selected.
SQL> !ls -l scott_f1.dat
-rw-r----- 1 oracle oinstall 276832256 Sep 11 21:15 scott_f1.dat
SQL> alter tablespace scott_tbs add datafile '/home/oracle/scott_f2.dat' size 10M ;
Tablespace altered.
SQL> !ls -l scott_*.dat
-rw-r----- 1 oracle oinstall 276832256 Sep 11 21:15 scott_f1.dat
-rw-r----- 1 oracle oinstall 10493952 Sep 11 21:18 scott_f2.dat
SQL> alter tablespace scott_tbs drop datafile '/home/oracle/scott_f2.dat' ;
Tablespace altered.
SQL> !ls -l scott*.dat
-rw-r----- 1 oracle oinstall 276832256 Sep 11 21:15 scott_f1.dat -
Another question about altering nav bar templates
I'm currently building a site using the "modern" template in iweb. So far I've been able to do a lot of customizations, which I love, but the nav bar is driving me CRAZY!
I've read a bunch of other topics and from that I've managed to create my own text box nav bar, but it's still not 100% what I'd like. Here's what I'm looking for:
I love the modern template except the rollover colour in the nav bar being red. I'd like the colour to be dark grey when rolled over just like it is when you're visiting the current page. I made my own text bar in that way but now when I'm on a specific page, that page heading in the nav bar doesn't stay highlighted in dark grey. Is that clear? I'm not familiar with web design and the language that corresponds so if there's anything I can do to clarify, please let me know. I need to know how I can get both: nav bar rolled over in dark grey AND the current page (page being viewed) in dark grey. If anyone has any information to help, I'd greatly appreciate it!
Thanks in advance,
SHi OT!
Thanks for the help. I've already done what you suggested but it unfortunately doesn't answer what I'm looking for.
In the modern template, when you're on a specific page, that page's header in the nav bar is dark grey whereas the other tabs in the nav bar remain light grey. I don't want the tabs the change after they've been clicked, rather, I want to keep the function of the template and simply change the rollover colour. Two questions:
1. Is there are way to make a text nav bar do the same thing as the template so when I'm viewing a specific page, the page's nav bar tab remains dark grey but goes back to light grey when I'm viewing a different page?
2. Thank you for the link with the HTML snippet. I had found that link last week but couldn't find it again. I don't know how to alter HTML so while this seems like a great option, I'm wondering how it works. If I put an HTML snippet in the header, is it viewable when the website is live? Is there a way to view the source code of a page?
I apologize if these questions seem rudimentary....I'm quite new to all of this!!!
Thanks for all your help!!!
S -
Question about imac graphics firmware updates
My Imac model identifier is imac8,1; the machine is a 2.66 GHz Intel Core 2 Duo, with 2 GB 800 MHz DDR2 SDRAM. I am running OS 10.6.7. I have an ATI Radeon HD 2600 Pro graphics card.
Firmware Update 1.0.1 is apparently installed, since my graphics ROM version is 113-82250L-259.
Symptoms occurring within last 6 months or so: Without notice, the screen goes black, though I can detect light “behind” (i.e., it doesn’t look powered off). The only remedy I’ve been able to get to work is to use the power button (or unplug) to turn the machine off. I don’t know whether the system has frozen or not. I’ve looked at the console and system log, but I can’t tell from them what’s happening.
I have reset the SMC and PRAM. The computer passes the extended Apple Hardware Test.
My question: is one or both of the imac graphics firmware updates 1.0.2 (September 10, 2009) or 2.0 (June8, 2011) appropriate for my machine?If there is an update to your particular graphics firmware, Software Update will let you know; if there is nothing showing there, it means there is no update available for your configuration. Do not simply download from the Apple website and install something that could cause havoc on your machine.
I'm not sure what the problem might be, but it could be graphics card and/or logic board related. Since you've already done the SMC and PRAM resets, unless someone else has another idea, I'd suggest booking an appointment at your nearest Genius Bar for a free evaluation and diagnosis. If the problem is intermittent, take screen shots or video of it so you can show it to them. -
Question about ALTER SYSTEM ARCHIVE LOG START
Good morning,
I'm trying (unsuccessfully) to get my database to be in archive log mode.
These are the steps I followed:
SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount;
ORACLE instance started.
Total System Global Area 535662592 bytes
Fixed Size 1375792 bytes
Variable Size 377487824 bytes
Database Buffers 150994944 bytes
Redo Buffers 5804032 bytes
Database mounted.
SQL> select log_mode from v$database;
LOG_MODE
ARCHIVELOG
SQL> show parameter log_archive_start;
NAME TYPE VALUE
log_archive_start boolean FALSE
SQL> alter system archive log start;
System altered.
SQL> show parameter log_archive_start;
NAME TYPE VALUE
log_archive_start boolean FALSE
SQL>I've gone thru that process twice but, I don't seem to be able to get the ARCH process to start. (newbie mistake I'm sure...)
Thank you for your help (again!),
John.The parameter log_archive_start is no more needed John (as suggested already) and the best way to check the archive options is through the archive log list command.
[oracle@edhdr2p0-orcl oui]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Tue Aug 10 10:51:57 2010
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, Automatic Storage Management, OLAP, Data Mining
and Real Application Testing options
SQL> archive log list
Database log mode No Archive Mode
Automatic archival Disabled
Archive destination USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence 11
Current log sequence 13
SQL> shut immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount
ORACLE instance started.
Total System Global Area 418484224 bytes
Fixed Size 1336932 bytes
Variable Size 318769564 bytes
Database Buffers 92274688 bytes
Redo Buffers 6103040 bytes
Database mounted.
SQL> select process,status from V$archive_processes;
PROCESS STATUS
0 STOPPED
1 STOPPED
2 STOPPED
3 STOPPED
4 STOPPED
5 STOPPED
6 STOPPED
7 STOPPED
8 STOPPED
9 STOPPED
10 STOPPED
PROCESS STATUS
11 STOPPED
12 STOPPED
13 STOPPED
14 STOPPED
15 STOPPED
16 STOPPED
17 STOPPED
18 STOPPED
19 STOPPED
20 STOPPED
21 STOPPED
PROCESS STATUS
22 STOPPED
23 STOPPED
24 STOPPED
25 STOPPED
26 STOPPED
27 STOPPED
28 STOPPED
29 STOPPED
30 rows selected.
SQL>
SQL> alter database archivelog;
Database altered.
SQL> alter database open;
archive log list;
Database altered.
SQL> Database log mode Archive Mode
Automatic archival Enabled
Archive destination USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence 11
Next log sequence to archive 13
Current log sequence 13
SQL>
SQL> select * from V$archive_processes where status <> 'STOPPED';
PROCESS STATUS LOG_SEQUENCE STAT
0 ACTIVE 0 IDLE
1 ACTIVE 0 IDLE
2 ACTIVE 0 IDLE
3 ACTIVE 0 IDLEHTH
Aman.... -
Question about Alter table syntax
Hi all,
I have an issue I need help with. I have created a script for an automated partition create on a monthly basis. It creates a monthly partition containing all dates within the respective month. The script is essentially this:
ALTER TABLE SCHEMA.TABLE
ADD PARTITION &&1
VALUES LESS THAN (to_number(to_char(to_date('&&2', 'DD-MON-YY'), 'YYYYMMDD')))
TABLESPACE LARGE_DATA94 COMPRESS;
I continually get this error message "ORA-14019: partition bound element must be one of: string, datetime or interval literal, number, or MAXVALUE"
The variable &&2 is passing in character data for the first of the month (E.G. '01-SEP-12'). &&1 passes character data for the month in MONYY ('AUG12') I can run this query:
select
(to_number(to_char(to_date('&&2', 'DD-MON-YY'), 'YYYYMMDD')))
from dual;
With the output of 20120901. I cannot understand why I am able to run this partition create statement by hardcoding 20120901 but passing it in as a variable I receive the error. Note that I am not having problems with the &&1 variable. If anyone has any ideas please let me know. Thanks!
Edited by: 962466 on Oct 1, 2012 8:42 AM
Grammar962466 wrote:
Hi all,
I have an issue I need help with. I have created a script for an automated partition create on a monthly basis. It creates a monthly partition containing all dates within the respective month. The script is essentially this:
ALTER TABLE SCHEMA.TABLE
ADD PARTITION &&1
VALUES LESS THAN (to_number(to_char(to_date('&&2', 'DD-MON-YY'), 'YYYYMMDD')))
TABLESPACE LARGE_DATA94 COMPRESS;
I continually get this error message "ORA-14019: partition bound element must be one of: string, datetime or interval literal, number, or MAXVALUE"
The variable &&2 is passing in character data for the first of the month (E.G. '01-SEP-12'). &&1 passes character data for the month in MONYY (AUG12) I can run this query:
select
(to_number(to_char(to_date('&&2', 'DD-MON-YY'), 'YYYYMMDD')))
from dual;
With the output of 20120801. I cannot understand why I am able to run this partition create statement by hardcoding 20120901 but passing it in as a variable I receive the error. Note that I am not having problems with the &&1 variable. If anyone has any ideas please let me know. Thanks!I don't understand why you are taking a string, converting it to a date, then converting the date BACK TO a string ... then trying to convert that string to a number.
What is the data type of the partitioning key? It appears that it is a NUMBER, but actually represents a DATE. If so, that is a fundamentally flawed design. -
Question about newer graphic driver version for Satellite A series
Hi!
Probably I'm not the first and last one who will ask: is there going to be any actualization for the display drivers, because the one that are on the driver-homepage of Toshiba are v8.4.0.0 form 2006 :( For example: Far Cry (1 not 2).
Nearly 2/3 of the landscape is black (when I say black, a mean BLACK). And that's not all. Timeshift wouldn't start at all (yes, I know the card will not support full graphics, but I've played games with much better graphic on my PC at home (with GeForce 5200 128MB).
Good think it was just a demo.
Can't imagine what "nice" surprise it would be if someone gives a 40-50$ for a game and finds out he can't play it because of the drivers.
Had just tried trails of some programs for 3D animation...Well, only problems :-/
Another program told me in a straight line - drivers not up do date.
Updating drivers will fix most graphical issues etc....
Thanks for the help in advance.What Satellite model dou you have?
As Akuma said, you can try modified drivers or drivers that are not from Toshiba. But with these drivers you could get more problems as now.
As far as I know the games need a lot of power and a Satellite notebook was not made for computer games. The Qosimo series is ideal for playing games.
If you want to play games on a Satellite notebook, you should not set high quality settings in game. It runs better when you play with lower settings. -
Question about graphic card
my friend has Macbook pro 13 with intel HD 3000 he upgraded his ram from 4 to 8gb and his graphic card updated from 384mb to 512mb why ?
and i have macbook 2010 and i upgraded from 2gb to 8gb and my graphic card didnt upgraded why ? its still 256mb
can someone till me whats the trick !!!You have a Core 2 Duo MacBook and not a i7 MacBook Pro.
-
Question about repeating frames
I am producing a summary report.
I have several querys that produce different counts.
for each query I have to have a different repeating frame to display the count.
However if I produce a summary column on that querys information I do not
need to repeating column.
My question is which way is better?
ThanksI am curious. Does your repeating frame only display the total count? It's hard to say which way is better, although you could try qualifying the two on certain criteria. Do they both display the same data you (or the user) wants to see? Which way is easier on you to set up? Did you already do it one way and is it working? If so, is the current way running satisfactory?
I think a lot of times developers waste hours upon hours trying to make something run a few seconds quicker for a user that may only use the program a couple times a month if that.
Personally I would use the summary column method. If for no other reason, that it is more manageable to me as the developer to alter a field than it is to alter a frame. -
A question about Graphics repaint
hi all. I met a question about Graphics repaint
I create mypane class extends JPane .
Now I write a function to keep drawing a char at Screen when i resize my applet.
the function code :
bDrawChrToScr(Graphics2D bgr, char Chr,int iX,int iY,int iX1,int iY1)
bgr.setColor(Color.black);
bgr.fillRect(iX,iY,iX1,iY);
bgr.setColor(Color.red);
bgr.drawString(String.valueOf(Chr),iWidth,iHeight);
bgr=thispane.getGraphics();
and i call this function in paintcomponent .Now when i resize my applet ,i find it not work as my hope.
the screen flash two. First it draw this char but sencond it erase it.Why? ThanksThe super.paintComponent(g) method causes the default painting to occur - overriding you bDrawChrToScr() method. Therefore, change paintComponent() method to:
super.paintComponent(g);
bDrawChrToScr(...); -
Question about upgrading a graphics card of Satellite P200-13z
Can i upgrade the graphics card on my Satellite P200-13z? What are my various options and the corresponding prices?
I only have built in onboard intel 3D accelerator card.Hi
Such questions were posted many times here in the Toshiba forum and there is only one answer;
Its not possible to upgrade the graphic card on any notebooks!!!!!
The GPU is mostly soldered and fixed on the motherboard and its impossible to remove it!!!
You ask for various options? Well I read about external graphic cards for notebooks but in my opinion this is not a real option and dont think the performance of such graphic card would be much better as your internal graphic card in the P200 notebook -
Question about Ivy Bridge and graphics
Does Ivy bridge CPUs provide great graphics performance?
For basic CS6 rendering, iMovie and soft gaming, an Ivy Bridge MacBook Pro / Air with HD4000 could be the right choice?
In other words, is it worth to get a 15" or the retina for these kind of stuff?
In the past, I had to chose between a GMA and a dedicated card which represented a big upgrade. What about now?
One more thing. I guess the MBP 13" would soon have a retina model too. What about the graphics? I read that HD4000 can handle retina resolution... is it really that powerful?
Thank youFor basic CS6 rendering, iMovie and soft gaming, an Ivy Bridge MacBook Pro / Air with HD4000 could be the right choice?
I run WoW on my 2011 "off the shelf" Air - 1.7Ghz 4GB RAM *Intel 3000* - runs very reasonably for a light-medium gamer such as myself. 40-60FPS on "fair" settings.
Intel HD 4000 is reportedly around 60% faster than 3000.
Based on this, if my 2011 Air runs WoW this well, I'd say a 2012 Air/13 Pro with Intel 4000 and (strongly recommended) 8GB RAM would see significantly higher performance.
One more thing. I guess the MBP 13" would soon have a retina model too. What about the graphics? I read that HD4000 can handle retina resolution... is it really that powerful?
If Intel 4000 (and even 3000) can handle a 2560x1600 Thunderbolt display I would have no doubt it would handle a 13" retina display which would probably have a similar sized resolution.
This being said, playing games in retina mode with Intel graphics would probably be a no. -
Please, help a newbie: Question about animating expanding containers
Hi All,
Short Version of my Question:
I'm making a media player that needs to have an animation for panels sliding up and down and left and right, and the method I've been using to do this performs far slower than the speed I believe is possible, and required. What is a fast way to make a high performance animation for such an application?
Details:
So far, to do the animation, I've been using JSplitPanes and changing the position of the divider in a loop and calling paintImmediately or paintDirtyRegion like so:
public void animateDividerLocation( JSplitPane j, int to, int direction) {
for(int i=j.getDividerLocation(); i>=to; i-=JUMP_SIZE) {
j.setDividerLocation(i);
j.validate();
j.paintImmediately(0, 0, j.getWidth(), j.getHeight());
The validate and paintImmediately calls have been necessary to see any changes while the loop is going. I.e., if those calls are left out, the components appear to just skip right to where they were supposed to animate to, without having been animated at all.
The animation requirement is pretty simple. Basically, the application looks like it has 3 panels. One on the right, one on the left, and a toolbar at the bottom. The animation just needs to make the panels expand and contract.
Currenly, the animation only gets about, say, 4 frames a second on the 800 MHz Transmeta Crusoe processor, 114 MB Ram, Windows 2000 machine I must use (to approximate the performance of the processor I'll be using, which will run embedded Linux), even though I've taken most of the visible components out of the JPanels during the animation. I don't think this has to do with RAM reaching capacity, as the harddrive light does not light up often. Even if this were the case, the animation goes also goes slow (about 13 frames a second) on my 3 GHz P4 Windows XP if I keeps some JButtons, images etc., inside the JPanels. I get about 50 frames/sec on my 3 GHz P4, if I take most of the JButtons out, as I do for the 800 MHz processor. This is sufficient to animate the panels 400 pixels across the screen at 20 pixels per jump, but it isn't fast or smooth enough to animate across 400 pixels moving at 4 pixel jumps. I know 50 frames/sec is generally considered fast, but in this case, there is hardly anything changing on the screen (hardly any dirty pixels per new frame) and so I'd expect there to be some way to make the animation go much faster and smoother, since I've seen games and other application do much more much faster and much smoother.
I'm hoping someone can suggest a different, faster way to do the animation I require. Perhaps using the JSplitPane trick is not a good idea in terms of performance. Perhaps there are some tricks I can apply to my JSplitPane trick?
I haven't been using any fancy tricks - no double buffering, volatile images, canvas or other animation speed techniques. I haven't ever used any of those things as I'm fairly new to Swing and the 2D API. Actually I've read somewhere that Swing does double buffering without being told to, if I understood what I read. Is doing double buffering explicitly still required? And, if I do need to use double buffering or canvas or volatile images or anything else, I'm not sure how I would apply those techiniques to my problem, since I'm not animating a static image around the screen, but rather a set of containers (JSplitPanes and JPanels, mostly) and components (mostly JButtons) that often get re-adjusted or expanded as they are being animated. Do I need to get the Graphics object of the top container (would that contain the graphics objects for all the contained components?) and then double buffer, volatile image it, do the animation on a canvas, or something like that? Or what?
Thanks you SO much for any help!
Cortar
Related Issues(?) (Secondary concerns):
Although there are only three main panels, the actual number of GUI components I'm using, during the time of animation, is about 20 JPanels/JSplitPanes and 10 JButtons. Among the JPanels and the JSplitPanes, only a few JPanels are set to visible. I, for one, don't think this higher number of components is what is slowing me down, as I've tried taking out some components on my 3GHz machine and it didn't seem to affect performance much, if any. Am I wrong? Will minimizing components be among the necessary steps towards better performance?
Anyhow, the total number of JContainers that the application creates (mostly JPanels) is perhaps less than 100, and the total number of JComponents created (mostly JButtons and ImageIcons) is less than 200. The application somehow manages to use up 50 MBs RAM. Why? Without looking at the code, can anyone offer a FAQ type of answer to this?You can comment out the lines that add buttons to the panels to see the behavior with empty panels.
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.Timer;
public class DancingPanels
static GridBagLayout gridbag = new GridBagLayout();
static Timer timer;
static int delay = 40;
static int weightInc = 50;
static boolean goLeft = false;
public static void main(String[] args)
final GridBagConstraints gbc = new GridBagConstraints();
gbc.weightx = 1.0;
gbc.weighty = 1.0;
gbc.fill = gbc.HORIZONTAL;
final JPanel leftPanel = new JPanel(gridbag);
leftPanel.setBackground(Color.blue);
gbc.insets = new Insets(0,30,0,30);
leftPanel.add(new JButton("1"), gbc);
leftPanel.add(new JButton("2"), gbc);
final JPanel rightPanel = new JPanel(gridbag);
rightPanel.setBackground(Color.yellow);
gbc.insets = new Insets(30,50,30,50);
gbc.gridwidth = gbc.REMAINDER;
rightPanel.add(new JButton("3"), gbc);
rightPanel.add(new JButton("4"), gbc);
final JPanel panel = new JPanel(gridbag);
gbc.fill = gbc.BOTH;
gbc.insets = new Insets(0,0,0,0);
gbc.gridwidth = gbc.RELATIVE;
panel.add(leftPanel, gbc);
gbc.gridwidth = gbc.REMAINDER;
panel.add(rightPanel, gbc);
timer = new Timer(delay, new ActionListener()
gbc.fill = gbc.BOTH;
gbc.gridwidth = 1;
public void actionPerformed(ActionEvent e)
double[] w = cycleWeights();
gbc.weightx = w[0];
gridbag.setConstraints(leftPanel, gbc);
gbc.weightx = w[1];
gridbag.setConstraints(rightPanel, gbc);
panel.revalidate();
panel.repaint();
JFrame f = new JFrame("Dancing Panels");
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
f.getContentPane().add(panel);
f.setSize(400,300);
f.setLocation(200,200);
f.setVisible(true);
timer.start();
private static double[] cycleWeights()
if(goLeft)
weightInc--;
else
weightInc++;
if(weightInc > 100)
weightInc = 100;
goLeft = true;
if(weightInc < 0)
weightInc = 0;
goLeft = false;
double wLeft = weightInc/ 100.0;
double wRight = (100 - weightInc)/100.0;
return new double[]{wLeft, wRight};
} -
Make anchored graphics frames act as containers
If I choose Object/Anchored Object/Insert and make the inserted frame a graphics frame (with above line positioning), it doesn't act as a container. That is, if I put a graphic into the frame or create one with the drawing tools -- say a line diagram -- and then make edits to surrounding text that causes the text to move up or down, the *frame* moves with the text it's anchored to, but the graphics inside it *don't* -- with enough editing, they could move right outside the frame, like ghosts passing thro' walls. Since almost every time I want to put a graphic onto the page it bears some specific relationship to the local text, this behavior is unhelpful, to say the least.
I can't figure out what the point of graphics frames that don't hold their contents in place could be, so I wonder if this is a bug. If so, please fix it. But if ID is behaving as intended, please add the option to preserve the position of graphics inside the frame *relative to the frame boundaries* (as opposed to relative the page boundaries).
Thanks.
PS: I did try to group the frame with a line diagram inside it but that seems impossible. I also know you can paste graphics into body text directly -- I watched AMC's video at Adobe -- but when the graphic in question has different pieces that relate to specific words above or below it, you really can't build it off-site then paste it in -- especially if the result of doing that limits your options for adjustments.I believe we've covered this issue thoroughly. There's nothing wrong with your intention, but there is something missing about the containership behavior of ID's anchored frames that works fine in FM.
I think it's a bug. Others may think it's a personal wish that isn't supported. My thinking is that ID's frame objects are already packed with smarts about content type and fitting abilities, that the developers simply overlooked providing the ability to add new objects freely into a frame that's already got content (like FM can.)
Apparently designers don't encounter this need anywhere nearly as often as those who author annotated documents in Word, FM, or other similar tools that permit working in the isolated environment of a frame - adding, removing, resizing, rearranging text objects and graphic objects at will - as if it were a blank page environment. So, there have been few reports of problems in this area.
The main reliable anchored-frame solution for this particular problem is to create and revise the content outside of any frame, then group, select, and copy the composite object and paste it at the cursor insertion point, or save it as a separate ID file and place it as an anchored object.
Perhaps you've already explored using an unstroked table for this particular need. The baselines of text in your example seem to be aligned across the horizontal rows, and the divider lines also seem aligned on horizontal rows. The divider lines could be created by several means - underlines in cells, graphic lines in anchored frames in cells, or horizontal cell rulings.
The whole arrangement requires painstaking attention no matter how it's constructed, so the fussiness of working with a table wouldn't seem to add something that might not be needed with a different method. Because tables can break across frames, you'd need to set all rows to keep together.
Again, I strongly suggest formally reporting this quirk as a bug to be fixed and/or a feature request.
Regards,
Peter
Peter Gold
KnowHow ProServices -
Basic questions about programing for J9 VM
I need to create a java application to run on a Pocket PC 2003 OS and I'm limited to using IBM's Websphere J9 Virtual Machine. I'm new to using java in this capacity and therefore have lots of questions which I'm guessing are pretty basic. Despite my best efforts, I've found very little to help me online. Below are a couple questions I have that I'm hoping someone can help me with. Even better, if you know of any resources that could help me with these and other questions, I'd love to have them. Thanks in advance.
1. I'm using standard AWT for the GUI but I'm having problems getting frames, dialogs, etc., to come up in anything less then full screen. setSize() and resize() have no effect, even if I extend the frame and override the setMinimumSize, setPreferredSize, setMaximumSize methods. What do I need to do to get a child window to appear in something less than full screen?
2. I'd like to be able to add menu's to the buttom toolbar (with the keyboard) but have no idea how I would add something to it. Can someone point me in the right direction?
3. When my application gets an iconified event I go ahead and call a System.exit() to exit the application. This doesn't kill the java VM though, which continues to run in the background (taking up plenty of memory). If I run my application using the J9w.exe so that it runs without the console, then not only does the VM continue to run, but I have no way to stop it (the running program list can't see it). Since each time I run my application it starts a new VM, it only takes a couple of times before I'm out of memory and have to do a soft reset of the PDA to make things right. Can I kill the VM when I kill my application?
4. I learn best by looking at example code, but have been unable to find any code people are running on J9. I have the GolfScoreTracker installed and running on my PDA, but the jar file contains only the classes. Since it's supposed to be a demo, I had hoped that the source code would be included, is that hoping too much or is the source code available somewhere? In addition, if you know of any applications out there with available source code that are known to run well on a PocketPC J9 environment I'd appreciate the link.Hi there, I saw your questions, im currently developing a java pocket pc application as well and here's what i go so far:
AWT seem to be hard to use on pocket pc, instead i recommend that you use SWT, which is a technology developed by eclipse. It's already installed on the eclipse plugins, you just need to download the jar and dll files for the pocket pc. They are available at: http://www.eclipse.org/downloads/index.php
I assume that you already have the J9 working on your device. So you only need to copy the SWT.jar file and the swt-win32-3064.dll to the folder containing the .class files on your device.
Now, on your java IDE(im using eclipse) Add the SWT.jar library to your project which should be on C:/eclipse/plugins/org.eclipse.swt.win32_3.0.2/ws/win32/swt.jar or something like taht depending on your eclipse root.
Now you are ready to code some SWT, here is a sample program from Carolyn MacLeod, i modified a few things so it could run on the pocket pc but it's almost the same. Once you coded in eclipse run it, then copy the class file from your desktop to your device(There should be like 4 or 5 classes like sample.class, sample$1.class etc. copy all of them) where you put the jar and dll files(If program does not run you may try to rename the dll file for swt-win32-3050.dll instead of 3064.dll). Now after you have everything set up you need to create the lnk file in order to run the program. On your desktop create a new textfile and write the following on it:
255#"\Archivos de Programa\J9\PPRO10\bin\j9w.exe" "-jcl:PPRO10" "-cp" "\My
Documents\Java\swt.jar" ;\My Documents\Java" sample
Paths depend on your install, and the place where you put your classes and jar file. path for j9w is usually "\Program Files\J9\PPRO10\bin\j9w.exe", and the last word should be the classname.
Currently this form only displays an image on a canvas, click on the browse button and choose a pic and it will display on the canvas. Im trying to connect the form to an oracle database but no success yet on the device.
Hope it helps, if you have any questions about the code or something, and I know the answer, please feel free to ask.
See ya
import org.eclipse.swt.*;
import org.eclipse.swt.widgets.*;
import org.eclipse.swt.layout.*;
import org.eclipse.swt.events.*;
import org.eclipse.swt.graphics.*;
public class sample {
static Shell shell;
static Display display;
static Text dogName;
static Text textdb;
static Combo dogBreed;
static Canvas dogPhoto;
static Image dogImage;
static List categories;
static Text ownerName;
static Text ownerPhone;
static String[] FILTER_EXTS = {"*.jpg"};
public static void main(String[] args) {
display = new Display();
shell = new Shell(display, SWT.RESIZE | SWT.CLOSE);
Menu menu = new Menu(shell, SWT.BAR);
shell.setText("Dog ShowS Entry");
shell.setMenuBar(menu);
GridLayout gridLayout = new GridLayout();
gridLayout.numColumns = 3;
shell.setLayout(gridLayout);
new Label(shell, SWT.NONE).setText("Dog's NameS:");
dogName = new Text(shell, SWT.SINGLE | SWT.BORDER);
GridData gridData = new GridData(GridData.HORIZONTAL_ALIGN_FILL);
gridData.horizontalSpan = 2;
gridData.widthHint = 60;
dogName.setLayoutData(gridData);
new Label(shell, SWT.NONE).setText("Breed:");
dogBreed = new Combo(shell, SWT.NONE);
dogBreed.setItems(new String [] {"Collie", "Pitbull", "Poodle", "Scottie"});
dogBreed.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL));
Label label = new Label(shell, SWT.NONE);
label.setText("Categories");
label.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL));
new Label(shell, SWT.NONE).setText("Photo:");
dogPhoto = new Canvas(shell, SWT.BORDER);
gridData = new GridData(GridData.FILL_BOTH);
gridData.widthHint = 60;
gridData.verticalSpan = 3;
dogPhoto.setLayoutData(gridData);
dogPhoto.addPaintListener(new PaintListener() {
public void paintControl(final PaintEvent event) {
if (dogImage != null) {
event.gc.drawImage(dogImage, 0, 0);
categories = new List(shell, SWT.MULTI | SWT.BORDER | SWT.V_SCROLL);
categories.setItems(new String [] {
"Best of Breed", "Prettiest Female", "Handsomest Male",
"Best Dressed", "Fluffiest Ears", "Most Colors",
"Best Performer", "Loudest Bark", "Best Behaved",
"Prettiest Eyes", "Most Hair", "Longest Tail",
"Cutest Trick"});
gridData = new GridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_FILL);
gridData.widthHint = 60;
gridData.verticalSpan = 4;
int listHeight = categories.getItemHeight() * 12;
Rectangle trim = categories.computeTrim(0, 0, 0, listHeight);
gridData.heightHint = trim.height;
categories.setLayoutData(gridData);
Button browse = new Button(shell, SWT.PUSH);
browse.setText("BrowsePic");
gridData = new GridData(GridData.HORIZONTAL_ALIGN_FILL);
gridData.widthHint = 60;
browse.setLayoutData(gridData);
browse.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent event) {
FileDialog dialog = new FileDialog(shell, SWT.OPEN);
dialog.setFilterExtensions(new String[] {"*.*"});
String fileName = dialog.open();
if (fileName != null) {
dogImage = new Image(display, fileName);
shell.redraw();
Button delete = new Button(shell, SWT.PUSH);
delete.setText("No action");
gridData = new GridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_BEGINNING);
gridData.widthHint = 60;
delete.setLayoutData(gridData);
delete.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent event) {
Button enter = new Button(shell, SWT.PUSH);
enter.setText("No action");
gridData = new GridData(GridData.HORIZONTAL_ALIGN_END);
gridData.horizontalSpan = 3;
enter.setLayoutData(gridData);
enter.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent event) {
shell.open();
while (!shell.isDisposed()) {
if (!display.readAndDispatch())
display.sleep();
display.dispose();
if (dogImage != null) {
dogImage.dispose();
}
Maybe you are looking for
-
Select the current row in read only querry VO
Hi., I am using jdev 11.1.1.5 I had created a Finyear EO with corresponding VO I had also created a read only querry VO [PostdGLhdlnVO] I had created a viewlink between FinyearVO and PostdGlhdlnVO with following conditions FinyearVO.bu = PostdGLhdlnV
-
As soon as I run Photoshop 2014 for the first time, it bombs without error code but saying that it has been forwarded to tech support. I have Photoshop CS6 installed as well as Photoshop CC. Now even CC doesn't connect to photoshop from Bridge
-
[SOLVED] Firefox - silent fail
Last thing I did before shutting down on Friday night (UK time), I upgraded. Since I've tried to run Firefox after that, it fails silently. The two events may not be connected, but it's the only thing I can think of that may be the cause. The package
-
How do I drag filenames selectively?
I am into a project where I will be dragging hundreds of jpeg filenames into an html document. When I drag them now, they come with full path statement, i.e. /Users/username/Pictures/........ This is no good for html. Is there some way to set up so d
-
Adding a column makes big difference with a simple query
Hello All, The oracle environment I am working with is Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production and PL/SQL Release 9.2.0.8.0 - Production I have a question for the following 2 queries. The only difference is that first one has