Getting JScrollPane to resize with container...
I am tearing my hair out trying to get a JScrollPane containing a JTree to properly resize when its parent container is resized (and indeed to be sized properly when first added to the container).
Currently, the scrollpane sizes itself to its child (tree), which is much larger than the preferred size of the containing JPanel. consequently no scrollbars are shown, and the tree is centered in the display.
Any help greatly appreciated!
A minimal example of code that behaves badly in this respect follows:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//ScrollTest.java
import java.awt.BorderLayout;
import java.awt.Dimension;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTree;
import javax.swing.tree.DefaultMutableTreeNode;
import java.awt.event.WindowAdapter;
public class ScrollTest{
public static void main(String[] args){
DefaultMutableTreeNode top = new DefaultMutableTreeNode("TEST");
DefaultMutableTreeNode curNode = top;
JTree jt = new JTree(top);
StringBuffer sb = new StringBuffer("TEST:");
for (int i=0;i<10;i++){
DefaultMutableTreeNode n = new DefaultMutableTreeNode(sb.toString());
curNode.add(n);
curNode = n;
sb.append(sb.toString());
jt.expandRow(i);
JScrollPane jsp = new JScrollPane(jt);
JPanel jp = new JPanel();
jp.setPreferredSize(new Dimension(200,200));
jp.add(jsp,BorderLayout.CENTER);
JFrame jf = new JFrame("Test");
jf.setContentPane(jp);
jf.addWindowListener(new WindowAdapter(){
public void windowClosing(){
System.exit(0);
jf.pack();
jf.show();
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ok: don't set the the content pane.
add the JPanel to the content pane: getContentPane.add(jp, BorderLayout.CENTER);
(the content pane of a JFrame has a BorderLayout by default), that way your scroll pane should resize automatically when and if you resize the JFrame.
thomas
Similar Messages
-
How can i get my webview to auto-resize with the size of a window in xcode (Mac App)
Hello, i am developing a Mac app with xCode on my macbook air but i am having one issue i have a web view but i cant get it to resize with a window and currently the web view is activated by a button as i diddnt know the coding to make it automated.
Any help is appreciated.Best option is to use Windows Migration Assistant as Ralph noted.
Here's a better (updated) link to Windows Migration Assistant for Lion -> http://support.apple.com/kb/HT4796
Or if you only want iTunes (Migration Assistant let's you choose) copy the entire /Music/iTunes/ folder from your PC to /Music/ on the Mac.
FYI: A MacBook is not a PowerBook. PowerBooks were discontinued in 2005. -
Problem with Contains - missing records
Hi,
I have created a full-text catalog for my table tDoc, but when I search records with contains,
I dont get all records. I search for 16949, and with LIKE, I get all 5, but with CONTAINS I only
get three. Se image below.
What I am doing wrong?
It does not make any difference if I use wildcards (*) with contains.
/Daniel.Hi Samus
I hope you are still here, If so, then please close the thread by marking the answer that fit your needs or please inform us if the issue is still open. In the mean time I will try to give some
points that you need to consider
>> Full-text queries perform linguistic searches against text on
words and
phrases based on rules of a particular language.
* It is look like you use FTS as a "like" filter, and this is not the same! It's like using subtraction in math, in order to obtain the + behavior. It can be done [10-(-10)], but should it done? are you using the right operator if you want
to get "like" filter? In contrast to full-text search, the LIKE Transact-SQL predicate works on character patterns only.
* Jayakumaur gave you the great basic explanationIn the forum we can not always to write the exact full tutorial. It is more of a short solutions place, where we can point you to external links if needed.
* It is not that "/" is a noise exactly (actually this statement was wrong). It is more of "Separator" between words. SQL Server FTS engine recognize that this is not part of the word. Same with "," or spaces for example, but
not "_" which in most languages used as part of the word. The engine work on linguistic searches, like it "understand" the language (using the dictionary it has), and therefore it recognize starting/ending of "words". It is working
on word but phrases as well.
FTS separates the string into individual words based on word boundaries (Separators).
You can see the words split result using this statement:
SELECT * FROM sys.dm_fts_parser (' "Standard ISO_TS_16949_2009" ', 1033, 0, 0)
GO
Now you can see that those words do not fit your search :-)
* Moreover you can chake this "Standard ISO_TS_16949_2009 is", and see what a noise word mean (the "is" is a Noise word and not the "/")
* Now you can try "Certifikat ISO TS/16949" and you will see that "/" is not a word at all but only a "Separator".
>> FTS will not match the exact word, but the
meaning of the words in the search condition.
>>See more:
http://msdn.microsoft.com/en-us/library/ms142571.aspx#like
* Configure and Manage Word Breakers and Stemmers for FTS (by default "_" is not a Breakers but you can add it if you want!)
http://technet.microsoft.com/en-us/library/ms142509%28v=sql.110%29.aspx
* sys.dm_fts_parser (Transact-SQL)
http://technet.microsoft.com/en-us/library/cc280463%28v=sql.110%29.aspx
[Personal Site] [Blog] [Facebook] -
On iTunes when i plug my iphone in, the bar at the bottom with contains the information about the capacity of my iphone, it has a bar called 'other' which has 4GB. I don't know what is taking up that space or how to get rid of it. please help
You can reduce the size to normal, which is about 1GB, by restoring the phone.
Backing Up, updating, and restoring your iPhone and iPod touch software
The size of this part can increase when something goes wrong during a sync, or some files can't be read anymore by iTunes. -
Node Container that does not resize with Window Resize Event
Hello,
I'm not new to Java but I am new to JavaFX.
I plan to have a container/Canvas with multiple shapes (Lines, Text, Rectangle etc) in it. This Container can be X times in the Szene with different Text Shapes. I need to Zoom and Pan (maybe rotation) the whole Szene and the Containers/Canvas.
So I was playing around with that but I have two issues.
1) all Canvas classes that I found (like Pane for example) do resize with the main window resize event. The content of the canvas isn't centered any more.
2) I added a couple of Rectangles to the canvas and both the rectangles and the canvas have a mouse listener which will rotate the item/canvas. Problem is, that even if I click the rectangle also the underlaying canvas is rotated...I think I need some kind of Z-Info to find out what was clicked.
Here is the little example program, it makes no produktiv sense but it demonstrates my problem.
Does anybody has a tip what canvas class would fit and does not resize with the main window and how to figure out what was clicked?
public class Test extends Application
Scene mainScene;
Group root;
public static void main(String[] args)
launch(args);
@Override
public void init()
root = new Group();
int x = 0;
int y = -100;
for(int i = 0; i < 5; i++)
x = 0;
y = y + 100;
for (int j = 0; j < 5; j++)
final Rectangle rect = new Rectangle(x, y, 30 , 30);
final RotateTransition rotateTransition = RotateTransitionBuilder.create()
.node(rect)
.duration(Duration.seconds(4))
.fromAngle(0)
.toAngle(720)
.cycleCount(Timeline.INDEFINITE)
.autoReverse(true)
.build();
rect.setOnMouseClicked(new EventHandler<MouseEvent>()
public void handle(MouseEvent me)
if(rotateTransition.getStatus().equals(Animation.Status.RUNNING))
rotateTransition.setToAngle(0);
rotateTransition.stop();
rect.setFill(Color.BLACK);
rect.setScaleX(1.0);
rect.setScaleY(1.0);
else
rect.setFill(Color.AQUAMARINE);
rect.setScaleX(2.0);
rect.setScaleY(2.0);
rotateTransition.play();
root.getChildren().add(rect);
x = x + 100;
public void start(Stage primaryStage)
final Pane pane = new Pane();
pane.setStyle("-fx-background-color: #CCFF99");
pane.setOnScroll(new EventHandler<ScrollEvent>()
@Override
public void handle(ScrollEvent se)
if(se.getDeltaY() > 0)
pane.setScaleX(pane.getScaleX() + 0.01);
pane.setScaleY(pane.getScaleY() + 0.01);
else
pane.setScaleX(pane.getScaleX() - 0.01);
pane.setScaleY(pane.getScaleY() - 0.01);
pane.getChildren().addAll(root);
pane.setOnMouseClicked(new EventHandler<MouseEvent>(){
@Override
public void handle(MouseEvent event)
System.out.println(event.getButton());
if(event.getButton().equals(MouseButton.PRIMARY))
System.out.println("primary button");
final RotateTransition rotateTransition2 = RotateTransitionBuilder.create()
.node(pane)
.duration(Duration.seconds(10))
.fromAngle(0)
.toAngle(360)
.cycleCount(Timeline.INDEFINITE)
.autoReverse(false)
.build();
rotateTransition2.play();
mainScene = new Scene(pane, 400, 400);
primaryStage.setScene(mainScene);
primaryStage.show();
}Edited by: 953596 on 19.08.2012 12:03To answer my own Question, it depends how you add childs.
It seems that the "master Container", the one added to the Scene will allways resize with the window. To avoid that you can add a container to the "master Container" and tell it to be
pane.setPrefSize(<child>.getWidth(), <child>.getHeight());
pane.setMaxSize(<child>.getWidth(), <child>.getHeight());
root.getChildren().add(pane);and it will stay the size even if the window is resized.
Here is the modified code. Zooming and panning is working, zomming to window size is not right now. I'll work on that.
import javafx.animation.Animation;
import javafx.animation.ParallelTransition;
import javafx.animation.ParallelTransitionBuilder;
import javafx.animation.RotateTransition;
import javafx.animation.RotateTransitionBuilder;
import javafx.animation.ScaleTransitionBuilder;
import javafx.animation.Timeline;
import javafx.animation.TranslateTransitionBuilder;
import javafx.application.Application;
import javafx.event.EventHandler;
import javafx.geometry.Point2D;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.input.MouseButton;
import javafx.scene.input.MouseEvent;
import javafx.scene.input.ScrollEvent;
import javafx.scene.layout.Pane;
import javafx.scene.paint.Color;
import javafx.scene.shape.Rectangle;
import javafx.stage.Stage;
import javafx.util.Duration;
public class Test extends Application
Stage primStage;
Scene mainScene;
Group root;
Pane masterPane;
Point2D dragAnchor;
double initX;
double initY;
public static void main(String[] args)
launch(args);
@Override
public void init()
root = new Group();
final Pane pane = new Pane();
pane.setStyle("-fx-background-color: #CCFF99");
pane.setOnScroll(new EventHandler<ScrollEvent>()
@Override
public void handle(ScrollEvent se)
if(se.getDeltaY() > 0)
pane.setScaleX(pane.getScaleX() + pane.getScaleX()/15);
pane.setScaleY(pane.getScaleY() + pane.getScaleY()/15);
System.out.println(pane.getScaleX() + " " + pane.getScaleY());
else
pane.setScaleX(pane.getScaleX() - pane.getScaleX()/15);
pane.setScaleY(pane.getScaleY() - pane.getScaleY()/15);
System.out.println(pane.getScaleX() + " " + pane.getScaleY());
pane.setOnMousePressed(new EventHandler<MouseEvent>()
public void handle(MouseEvent me)
initX = pane.getTranslateX();
initY = pane.getTranslateY();
dragAnchor = new Point2D(me.getSceneX(), me.getSceneY());
pane.setOnMouseDragged(new EventHandler<MouseEvent>()
public void handle(MouseEvent me) {
double dragX = me.getSceneX() - dragAnchor.getX();
double dragY = me.getSceneY() - dragAnchor.getY();
//calculate new position of the pane
double newXPosition = initX + dragX;
double newYPosition = initY + dragY;
//if new position do not exceeds borders of the rectangle, translate to this position
pane.setTranslateX(newXPosition);
pane.setTranslateY(newYPosition);
int x = 0;
int y = -100;
for(int i = 0; i < 5; i++)
x = 0;
y = y + 100;
for (int j = 0; j < 5; j++)
final Rectangle rect = new Rectangle(x, y, 30 , 30);
final RotateTransition rotateTransition = RotateTransitionBuilder.create()
.node(rect)
.duration(Duration.seconds(4))
.fromAngle(0)
.toAngle(720)
.cycleCount(Timeline.INDEFINITE)
.autoReverse(true)
.build();
rect.setOnMouseClicked(new EventHandler<MouseEvent>()
public void handle(MouseEvent me)
if(rotateTransition.getStatus().equals(Animation.Status.RUNNING))
rotateTransition.setToAngle(0);
rotateTransition.stop();
rect.setFill(Color.BLACK);
rect.setScaleX(1.0);
rect.setScaleY(1.0);
else
rect.setFill(Color.AQUAMARINE);
rect.setScaleX(2.0);
rect.setScaleY(2.0);
rotateTransition.play();
pane.getChildren().add(rect);
x = x + 100;
pane.autosize();
pane.setPrefSize(pane.getWidth(), pane.getHeight());
pane.setMaxSize(pane.getWidth(), pane.getHeight());
root.getChildren().add(pane);
masterPane = new Pane();
masterPane.getChildren().add(root);
masterPane.setStyle("-fx-background-color: #AABBCC");
masterPane.setOnMousePressed(new EventHandler<MouseEvent>()
public void handle(MouseEvent me)
System.out.println(me.getButton());
if((MouseButton.MIDDLE).equals(me.getButton()))
double screenWidth = masterPane.getWidth();
double screenHeight = masterPane.getHeight();
System.out.println("screenWidth " + screenWidth);
System.out.println("screenHeight " + screenHeight);
System.out.println(screenHeight);
double scaleXIs = pane.getScaleX();
double scaleYIs = pane.getScaleY();
double paneWidth = pane.getWidth() * scaleXIs;
double paneHeight = pane.getHeight() * scaleYIs;
double screenCalc = screenWidth > screenHeight ? screenHeight : screenWidth;
double scaleOperator = screenCalc / paneWidth;
double moveToX = (screenWidth/2) - (paneWidth/2);
double moveToY = (screenHeight/2) - (paneHeight/2);
System.out.println("movetoX :" + moveToX);
System.out.println("movetoY :" + moveToY);
//double scaleYTo = screenHeight / paneHeight;
ParallelTransition parallelTransition = ParallelTransitionBuilder.create()
.node(pane)
.children(
TranslateTransitionBuilder.create()
.duration(Duration.seconds(2))
.toX(moveToX)
.toY(moveToY)
.build()
ScaleTransitionBuilder.create()
.duration(Duration.seconds(2))
.toX(scaleOperator)
.toY(scaleOperator)
.build()
.build();
parallelTransition.play();
public void start(Stage primaryStage)
primStage = primaryStage;
mainScene = new Scene(masterPane, 430, 430);
primaryStage.setScene(mainScene);
primaryStage.show();
} -
How do I get a white background with black lines
How do I get a white background with black lines and characters on my screen. To run the program, copy it out and delete the ` and it should go. If it does not compile on your machine, I would like to know. There is a test on about line 34 for changing the colors.
`//Simple program to test Graphics2D.setBackground(white) obtained from BufferedImage.getGraphics()
`import java.awt.Frame; //Object>awt.Component>Container>Window>Frame
`import java.awt.Insets; //Object>awt.Insets
`import java.awt.image.BufferedImage; //Object>awt.Image>awt.image.BufferedImage
`import java.awt.Graphics; //Object>awt.Graphics
`import java.awt.Graphics2D; //Object>awt.Graphics>Graphics2D
`import java.awt.Color;
`import java.awt.BasicStroke;
`public class TstBgCol { //frame & BufferedImage in pixels & BasicStroke in points ????????????
` TstBgCol tstBgCol;
` public static void main(String[] args) {
` TstBgCol tstBgCol=new TstBgCol(); tstBgCol.tstBgCol=tstBgCol;
` tstBgCol.main2(); tstBgCol.byteBinary();
` }
` Graphics fgcontext;
` Frame fram; Insets insets; //borders of the Frame, Container.getInsets
` int bIWid=1272,bIHgt=876; //set for 1280x1024 screen on windows XP & matches paper ratio 10.6x7.3
` int unusedPixHgt=84;
` void main2() {
` fram=new Frame();
` fram.addWindowListener(new java.awt.event.WindowAdapter() { //anonymous inner class
` public void windowClosing(java.awt.event.WindowEvent e) { System.exit(0); }
` });
` fram.setVisible(true);
` insets=fram.getInsets(); //(Container)getInsets() works after displayable
` System.out.println("Insets l,t,r,b:"+insets.left+","+insets.top+","+insets.right+","+insets.bottom);
` fram.setSize(insets.left+bIWid+insets.right,insets.top+bIHgt+unusedPixHgt+insets.bottom);
` fgcontext=fram.getGraphics(); //creates Graphics context for this component
` }
` void byteBinary() {
` BufferedImage buIm=new BufferedImage(bIWid,bIHgt,BufferedImage.TYPE_BYTE_BINARY); //can be resized
` Graphics2D bIG2=buIm.createGraphics(); //returns Graphics2D context
` //change to if(true) to use either of the following two lines
` if(false) bIG2.setBackground(Color.white); //does not change the background color to white
` if(false) bIG2.setColor(Color.black); //does change the foreground color to black
` edgeLinesAndX(buIm,bIG2);
` fgcontext.drawImage(buIm,insets.left,insets.top,fram);
` }
` private void edgeLinesAndX(BufferedImage bI,Graphics2D bIG2) { //really on the edge
` BasicStroke strk=new BasicStroke(10f); bIG2.setStroke(strk);
` int x0,y0,xmx,ymx;
` x0=bI.getMinX(); y0=bI.getMinY(); xmx=bI.getWidth()-1; ymx=bI.getHeight()-1;
` bIG2.drawLine(x0+xmx,y0,x0,y0+ymx); //lo-left to up-right
` bIG2.drawLine(x0,y0,x0+xmx,y0+ymx); //up-left to lo-right
` bIG2.drawLine(x0,y0,x0+xmx,y0); //up-left to up-right
` bIG2.drawLine(x0,y0,x0,y0+ymx); //up-left to lo-left
` bIG2.drawLine(x0,y0+ymx,x0+xmx,y0+ymx); //lo-left to lo-right
` bIG2.drawLine(x0+xmx,y0,x0+xmx,y0+ymx); //up-right to lo-right
` bIG2.drawString("("+x0+","+y0+") wid="+(xmx+1)+" hgt="+(ymx+1),(xmx+1)/5,(ymx+1)/5);
` }
`} //the result on my screen is a black background, why?????How do I get a white background with black lines and characters on
my screen.Contrary to what you might think, the linebIG2.setBackground(Color.white);does not give the buffered image a white background. The API docs
http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Graphics2D.html#setBackground(java.awt.Color)
say: "Setting the background color in the Graphics2D context only
affects the subsequent clearRect calls... " So adding a line to your
if blocks we getif (false) {
bIG2.setBackground(Color.white);
bIG2.clearRect(0, 0, buIm.getWidth(), buIm.getHeight());
if (false) {
bIG2.setColor(Color.black);
}Changing the false to true results in a white background (and black
X and text). -
How do I get fios to work with my new desktop w/ Windows Media Center
Can someone please help me I have "fios".TV and internet 1HDSTB + 1HDDVR with multi room dvr Home media mgr.how do I get fios to work with my new desktop HP Pavillion m9715f**(specs below)**w/ Windows Media Center or did I just throw away my money?
also equipted is 47" Samsung 850series 1080p 120hertz HD LCD TV + 36" Samsung 560series 1080p 60hertz HD LCD TV and 19"Samsung 950b LCD Monitor
** computer specs**
Product number NZ017AA
Introduction date 30-Jun-2009
Country/region sold in: United States,Canada
Hardware Base processor
Phenom-9650 (A) 2.3 GHz (95W) 3600 MHz HyperTransport 3.0 Socket, AM2+
Chipset AMD 780G
Motherboard Manufacturer: MSI Motherboard Name: MS-7548 HP/Compaq motherboard name: Aspen-GL8E
Power supply 300W
Memory
Component Attributes Memory Installed 8 GB Maximum allowed 16 GB (4 x 4 GB) (64-bit OS)
4 GB* (4 x 1 GB) (32-bit OS)
*Actual available memory may be less Speed supported PC2-6400 MB/sec Type 240 pin, DDR2
Hard drive750 GB SATA 3G (3.0 Gb/sec)7200 rpm
Blu-ray player & SuperMulti DVD burner with LightScribe Technology drive
This Blu-Ray Disc DVD drive introduces a player that reads Blu-ray Disc format enabling you to watch high-definition Blu-ray Disc movies. NOTE: This drive does not include high-definition write capability.
Formats/Disc types Write speeds Read speeds Storage capacity Blu-ray Disc BD-ROM SL NA up to 6X up to 25 GB BD-ROM DL NA up to 4.8X up to 50 GB BD-R SL not supported up to 6X up to 25 GB BD-R DL not supported up to 4.8X up to 50 GB BD-RE SL not supported up to 2.3X up to 25 GB BD-RE DL not supported up to 2X up to 50 GB HD DVD not supported DVD DVD-ROM SL NA up to 16X up to 4.7 GB DVD-ROM DL NA up to 8X up to 8.5 GB DVD+R SL up to 16X up to 12X up to 4.7 GB DVD+R DL up to 4X up to 8X up to 8.5 GB DVD+RW SL up to 8X up to 10X up to 4.7 GB DVD+RW DL not supported DVD-R SL up to 16X up to 12X up to 4.7 GB DVD-R DL up to 4X up to 8X up to 8.5 GB DVD-RW SL up to 6X up to 10X up to 4.7 GB DVD-RW DL not supported DVD-RAM up to 5X up to 5X up to 4.7 GB CD CDROM NA up to 40X up to 700 MB CDR up to 40X up to 40X up to 700 MB CDRW up to 24X up to 40X up to 700 MB CD-DA NA up to 32X up to 700 MB Video CD NA up to 10X up to 700 MB
Wireless Wireless LAN 802.11 b/g
Video Graphics Radeon HD4350
512 MB DDR2 memory
I/O Ports: HDMI, VGA, single-link DVI
Television Hauppauge ATSC/NTSC TV tuner card with FM tuner
Sound/Audio High Definition 8-channel audio
ALC 888S chipset
Network (LAN) Integrated 10/100/1000 Base-T networking interface
Memory card reader
Contains an Infrared receiver for remote control
Supports the following cards:
Compact Flash I
Compact Flash II
IBM Microdrive
Secure Digital (SD)
mini-SD
MultiMediaCard (MMC)
Reduced size MultiMediaCard (RS-MMC)
MultiMediaCard Plus (MMC plus)
MultiMediaCard Mobile (MMC mobile)
Memory Stick
Memory Stick Pro
Memory Stick Duo
Memory Stick Pro Duo
SmartMedia
xD Picture Card (xD = extreme digital)
External I/O ports
I/O ports on the front panel
Port type Quantity 15-in-1 (4 slot) with IR Receiver One USB Two Headphone One Microphone One Audio L-R One S-video in One Composite video in One
I/O ports on the back panel
Port type Quantity PS/2 (keyboard, mouse) Two S/PDIF out (coaxial) One VGA One (disabled due to the installation of a graphics card) DVI-D One USB Four 1394a One LAN One Audio (side speaker out, rear speaker out, center/subwoofer-out , line-in, line-out, microphone) One Each
Expansion slots
Slot type Quantity PCI Express x16 One (None available) PCI Express x1 Three (Two available)
Drive bays
Bay type Quantity 5.25" Two (One available) 3.5" Two (One available) Personal Media Drive One (One available) Pocket Media Drive One (One available)
Keyboard and mouse HP multimedia keyboard HP PS/2 optical mouse
Remote Control USB infrared remote control,Remote control expansion card with IR ports,IR emitter cable to transmit codes to a set top boxBased on what you've posted, your computer does not have the right tuner. You need a QAM tuner to record locals from FiOS, or a CableCard tuner to record all local and cable channels from FiOS.
QAM tuners to record local channels only
This requires Windows Vista or Windows 7
Hauppauge WinTV-HVR-2250
SiliconDust HDHomeRun (info on a sale)
CableCard tuner to record local and cable channels
This requires Windows 7 + one CableCard from Verizon for $3.99/mo
ATI TV Wonder Digital PC CableCard Tuner (records one channel at a time) -- $200-$250 on ebay
Ceton MOCUR tuner (records four channels at a time) -- coming in early 2010 for $400-$600
Make sure your computer has Windows 7 Home Premium (or better) installed. That's necessary to support CableCard tuners.
If you are the original poster (OP) and your issue is solved, please remember to click the "Solution?" button so that others can more easily find it. -
I have done extensive programming with the SQL Toolkit with LabVIEW versions through 6.1. My customer now wants to upgrade to Windows 7, so I am trying to upgrade to LabVIEW 2009 (my latest purchased version) using the Database Connectivity Toolkit, and the SQL Toolkit Compatibility vis. Everything seemed to be going okay with the higher level SQL operations, but I ran into trouble with the Get Column Name.vi.
The pictures below show the problem. The original SQL Toolkit connected the Prepare SQL.vi with the Get Column Name.vi with a cluster of two references, one for connection, and one for sql. The new compatibility vis have a class conflict in the wire because the Prepare SQL.vi contains a cluster with connection, and command references, but the Get Column Name.vi expects a cluster with connection and recordset references.
How do I resolve this conflict?
Thank You.
DanI've never worked with the old version of the toolkit, so I don't know how it did things, but looking inside the SQL prep VI, it only generates a command, and the the column name VI wants a recordset. I'm not super familiar with all the internals of ADO, but my understanding is that is standard - you only have the columns after you execute the command and get the recordset back. What you can apparently do here is insert the Execute Prepared SQL VI in the middle and that will return what you need.
I'm not sure why it worked before. Maybe the execute was hidden inside the prep VI or maybe you can get the column names out of the command object before execution. In general, I would recommend considering switching to the newer VIs.
Try to take over the world! -
I get a weekly email with a PDF attachment and when I open it it's to large to print and I know of no way to shrink or resize the doc. It's created in M/S excel. Can anymore assist....TX
From: Test Screen Name [email protected]
Sent: Sunday, August 04, 2013 11:32 AM
To: gunner0490
Subject: I'm not able to open PDF files in Adobe Reader XI.
Re: I'm not able to open PDF files in Adobe Reader XI.
created by Test Screen Name <http://forums.adobe.com/people/TestScreenName> in Adobe Reader - View the full discussion <http://forums.adobe.com/message/5565198#5565198 -
Random users getting errors sending emails with instant bounce backs
I have recently had a fair amount of my users have issues sending emails to internal or external email accounts. When they hit send they get a NDR immediately with the Error 0x80004005-00000000-00000000. It does not matter if there is 1 user
the message is being sent to or many users this is not discriminating in that respect.
I have found a couple of fixes that seem to solve the problem, some permanent and some it is only temporary. If I repair the account in Outlook it fixes the problem, some I have to remove the account and add it back in while deleting the ost file.
Others I have to do the above and remove cached mode.
What is causing this issue? I suspect that it was and update but I cannot be sure and it all started the same day this week. We are using Outlook 2013 client and with Exchange 2010 servers. I have checked the logs on the server and there
is nothing glaring. I have done searches and the results do not give a cause, just the fixes which I have tried. Has anyone seen this before and found the source of the problem?
EricHi,
What does the NDR message say in detail?
If the body of the message contains the following text:
The message could not be sent. Try sending the message again later, or contact your network administrator.
[0x80004005-00000000-00000000]
We can refer to this kb:
http://support.microsoft.com/kb/2383603
Outlook 2010 and Outlook 2013 introduce new named properties. When used, these may be added to the named properties table of the Exchange Server database. Each Exchange database's named properties table has a limit and a new message with additional
named properties has caused the quota to be exceeded.
A workaround on Outlook is to remove any additional mailboxes or shared mailboxes from Outlook.
For resolutions on Exchange, I suggest you read the Resolution section in the kb or contact the Exchange Server support:
https://social.technet.microsoft.com/Forums/office/en-US/home?category=exchangeserver
Regards,
Melon Chen
Forum Support
Come back and mark the replies as answers if they help and unmark them if they provide no help.
If you have any feedback on our support, please click
here -
Movie Clips Actions Get Out Of Synch With Audio
My movie is five about minutes long with audio and an offscreen timeline move clip containing action script to control other movie clips or play the root directory. After about a minute or so, movie clips get out-of-synch with the audio, apparently its getting bogged down.
My swf file doesn't seem that big, about 2.2MB and my move clips aren't that complex, although up to three levels deep.
My version is Flash 8 Professional and my laptop was on the high end about 18 months ago.
Am I missing something or expecting too much from Flash?
Thanks,
Mike (who seems to know enough to be dangerous) -
Problem with CONTAINS function
Hi all!!
i got a problem with contains function. i'm running oracle 11g.
if i execute this query:
SELECT x.lid as id, x.sztitular as titular, e.szname as proName, x.szresumen as resumen, b.sztitle as catName,
f.szname as secName, d.szname as cliName, x.datecreation as datecreation
FROM CPR_PRACTICAL_CASE x,ctg_category b, CPR_CLIENT d, pro_product e, CAT_SECTOR f, CPR_PCASE_PRODUCT g, CPR_PCASE_SECTOR h,
PRO_PRODUCTCATEGORY i WHERE x.lid = g.lpcaseid and e.lid = g.lproductid and x.lid = h.lpcaseid
and f.lid = h.lsectorid and x.lclientid = d.lid and i.lproductid = e.lid and b.lid = i.lcategoryid
AND x.szlocale = 'es-ES' AND x.bavailable = '1'i get 1 row as result with the column sztitular = "rodillos de medidas"
if i only add one more sentece to that query:
AND CONTAINS( x.sztitular, 'rodillos',1) >0the query returns an empty set.. i really don't understand why because the term "rodillos" is present in the row's column called "sztitular"...
i've put an index on that column:
create index ITXT_TITULAR on CPR_PRACTICAL_CASE(sztitular) INDEXTYPE IS CTXSYS.CONTEXT;any help?
many thanks!!!!
Edited by: ElMazzaX on May 21, 2012 5:51 PM
Edited by: ElMazzaX on May 21, 2012 5:53 PMHow are you synchronising the index?
http://docs.oracle.com/cd/E11882_01/text.112/e24435/ind.htm#i1008452
Also see the Oracle Text forum:
Text -
Ewfmgr: Failed getting protected volume configuration with error 1
Hello,
I created a Windows 7-64 image for an Ivy-Bridge VME card. The image contains EWF with RAM-REG.
The disk was divided into 2 partitions with the windows installer and the image was successfully installed.
As I'm using RAM-REG, all
the disk was allocated.
After the image was installed I tried to run "ewfmgr c:" and got the current status.
Then I created a GHOST image and wrote the image on a new card with a clean disk.
After Windows booted, running "ewfmgr c:" gave:
Failed getting protected volume configuration with error 1
I found few threads on this issue but failed to understand what is the right solution.
Can you help ?
Thanks,
ZvikaThe Problem is always Volumeid related (diskid)
Explaination:
Sysprep creates new bcd for the System. - Therefore it's recommended to use sysprep (and SID and so on..) but if you're lazy or don't have Domain Controller and so on or always use physical seperated (better not Internet connected) machines you would be
totaly fine with non-syspreped Images. You only Need updated/new bcd.
Captured wim has 'old' bcd (if there is no seperated MSR Partition) you can update this 3 entries within winpe and your Image will boot:
bcdedit /store c:\boot\BCD /set {BOOTMGR} device boot
bcdedit /store c:\boot\BCD /set {DEFAULT} device PARTITION=C:
bcdedit /store c:\boot\BCD /set {DEFAULT} osdevice PARTITION=C:
(boot could also be Partition=c: or all entries could be boot - and /store is not needed as in winpe bcdedit automatically Redirects the commands into the other/System (found) bcd. But i always recommand to specify the bcd store you want to edit, like in
this lines)
The definition of "C:" in this Parameter is 'translated' into volumeid/diskid. - So in the bcd is not "C:" it's some DiskID.
Instead of the 3 entries you can just create a whole new bcd with updated volumeid/diskids. --> It would be enough to run bcdboot /s C:\ (or whatever the current boot (c:\) Partition is.
EWF needs to be reconfigured as it also works with Volume/Diskids. So it needs additional command while running (online).
ewfcfg /install-configuration for win7
rundll32 ewfdll.dll,ConfigureEwf for win xpe/wes2009.
Windows Embedded Developer and Scripting Guy //Germany (http://www.wesnext.com) -
a.
After downloading Flash 9, how do you get it to work with Apple iMac OS X 10.3.9 ?...
b. , c.
What's the best browser to try?... Firefox?... Opera?...
Why?...
d.
What directory/ies contain the downloaded Flash 9 files?...a. Your browser and the flash player should work together. You should not have to do any thing
b. Camino is the best for 10.3.9 Why? You can access apples me.com through Camino on 10.3.9 but Safari will not work with me.com. Also all the internet plug ins work with camino
c. hard disk - library - internet plug ins -
Content not fading with containing element
I am using the update content feature of spry in conjunction
with a spry fade in/out effect which works very well aside from in
a couple of instances. Firstly, I have a div that has its content
replaced, before it is replaced it fades out, but the .swf file
inside the content does not fade out with the rest of the content.
Secondly I have the same issue with the spry tabbed panels.
The rest of the content fades in or out fine but the tabs
themselves do not.
In both cases either the tabs or the .swf file stay at 100%
opacity until the rest of the content has been replaced.
Any help would be be greatly appreciated.quote:
Originally posted by:
kinblas
The flash problem is due to the fact that the flash plugin
uses a native window by default ... this window is on top of the
browser's canvas where your page is drawn. To get it to fade with
the rest of the content, you're going to have to tell Flash to draw
into the same window that contains the browser canvas. Follow the
instructions here:
http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_15523
I'd have to see your code that is fading your tabbed panels
as well as your tabbed panel markup ... got url? ... are you fading
the top-level element of the entire tabbed panel widget? Or are you
fading just the panel content?
--== Kin ==--
No URL at present Im afraid as its currently on an internal
only server. However its pretty easy to understand. There is a
single div containing the tabbed panel set, it is this outer div
that I am calling new content in to and fading out the old, so yes,
its fading the outer most div that contains the tabbed panel set.
This is the link that is clicked for example:
<a href="#" class="menu"
onclick="fade_content('content','../../v_content/v_products/lan.htm');
return false;">Wireless LAN</a>
This is the script that is used:
function fade_content(ele,url){
Spry.Effect.DoFade('content',{ duration: 500, from: 100, to:
0, finish: function() {
Spry.Utils.updateContent(ele, url, function() {
Spry.Effect.DoFade('content',{ duration: 500, from: 0, to:
100 });
This is the Div that is being replaced/faded:
<div id="content">
<script type="text/javascript">
<!--
Spry.Utils.updateContent('content','../../v_content/v_company/about_qolcom.htm');
//-->
</script>
</div>
and finally an example of the content that is being called in
to the content div would be something like this:
<table width="100%" border="0" cellspacing="0"
cellpadding="0" class="table_no_format" height="332">
<tr>
<td valign="top" align="left">
<h2>Contact QoLcom</h2>
<div id="TabbedPanels1" class="TabbedPanels">
<ul class="TabbedPanelsTabGroup">
<li class="TabbedPanelsTab" tabindex="0">Head
Office</li>
<li class="TabbedPanelsTab" tabindex="0">Stirling
Office</li>
<li class="TabbedPanelsTab" tabindex="0">Support
Team</li>
<li class="TabbedPanelsTab" tabindex="0">Invoice
& Payments</li>
<li class="TabbedPanelsTab" tabindex="0">Registered
Office</li>
</ul>
<div class="TabbedPanelsContentGroup">
<div class="TabbedPanelsContent">
<h2>Head Office</h2>
QoLcom Limited
<br />
Unit 3 King John House
<br />
Kingsclere Park
<br />
Kingsclere
<br />
Newbury
<br />
Berkshire
<br />
RG20 4SW
<br />
United Kingdom
<br />
<br />
T: +44 (0)870 2503000
<br />
<br />
F: +44 (0)870 2503001
<br />
<br />
E: <a
href="mailto:[email protected]">[email protected]</a>
<br />
<a
href="mailto:[email protected]">[email protected]</a>
<br />
<a
href="mailto:[email protected]">[email protected]</a>
<br />
<a
href="mailto:[email protected]">[email protected]</a>
</div>
<div class="TabbedPanelsContent">
<h2>Stirling Office</h2>
QoLcom Limited
<br />
Springfield House
<br />
Laurelhill Business Park
<br />
Stirling
<br />
FK7 9JQ
<br />
Scotland
<br />
<br />
T: +44 (0)870 2503000
<br />
<br />
F: +44 (0)1786 406351
</div>
<div class="TabbedPanelsContent">
<h2>Support Team</h2>
If you need to contact our Support Team please submit a
support request to <a
href="mailto:[email protected]">[email protected]</a>
<br />
<br />
Alternatively, you can telephone the support team on
+44(0)870 2503000 between 9.00am and 5.30pm Monday to Friday.
</div>
<div class="TabbedPanelsContent">
<h2>Invoice & Payments</h2>
QoLcom Limited
<br />
Unit 3 King John House
<br />
Kingsclere Park
<br />
Kingsclere
<br />
Newbury
<br />
Berkshire
<br />
RG20 4SW
<br />
United Kingdom
<br />
<br />
T: +44 (0)870 2503000
<br />
<br />
F: +44 (0)870 2503001
<br />
<br />
E: <a
href="mailto:[email protected]">[email protected]</a>
</div>
<div class="TabbedPanelsContent">
<h2>Registered Office</h2>
QoLcom Limited
<br />
c/o Dove, Marsh & Jones
<br />
1 Andromeda House
<br />
Calleva Park
<br />
Aldermaston
<br />
Reading
<br />
Berkshire
<br />
RG7 8AP
<br />
United Kingdom
<br />
<br />
<strong>Note:</strong> These are our
accountant’s offices. Only use this address for the purposes
of sending legal notices.
<br />
<br />
Our operational company address can be found on the Head
Office tab of this page.
</div>
</div>
</div>
</td>
</tr>
</table>
<script type="text/javascript">
<!--
var TabbedPanels1 = new
Spry.Widget.TabbedPanels("TabbedPanels1");
//-->
</script>
CSS is pretty much untouched and the js file hasnt been
changed.
TIA
Maybe you are looking for
-
Motion Crashing at start of Project. EVERYTIME
So i was all excited about getting Motion to and using it for my schools football pep rally video's and everytime i open it it crashes. Heres the Log: Date/Time: 2006-09-30 17:04:28.211 -0500 OS Version: 10.4.6 (Build 8I1119) Report Version: 4 Comman
-
ITunes Library "damaged"? All my songs are gone now! =(
So i start itunes the other day, and it gives me a message that my itunes library has been "damaged" and now all my songs/playlists/purchased music is gone. The files are still there in their folders, but gone from itunes. I did some research online
-
XSQLActionHandler extracting XML from ViewObject not displaying on XSQL pag
I have the following XSQLActionHandler for a STRUTS project which is supposed to extract the XML from a view object. When I call this from a xsql page I get nothing. I have examined the Node (n) and have seen that it does get XML but after I assign i
-
Excel Connection Manager input only getting SALES$ and NOT SALES
Hello, I am creating a SSIS package to import a Excel file to SQL server and create a table. On Excel connection manager once I've selected the Excel file, on the bottom Name of the Excel sheet I am getting SALES$ and NOT SALES. Could anybody advi
-
Samsung 850 Pro into a MBP (early '11 15") issue
OK, so bear with me as I'm new to this and I hope I get all the information and terms right! I have just completed a major upgrade on my MBP and am now having issues installing the operating system on my new Samsung 850 Pro SSD. My system is as follo