Place a Tab Canvas within a Tab Canvas (there is more Stack Canvas)
I Use Forms [32 Bit] Version 10.1.2.0.2.
Hi All.. I have the same problem with this case ( Place a Tab Canvas within a Tab Canvas ).
but I need help with my case, what if there is more stack canvas, like this :
- I created Tab Canvas first, then
- in my first Tab Canvas I put the new tab canvas (this solved), then
- I create again new Tab Canvas in the second Tab Canvas.
How do I control that in Trigger Level Form - WHEN-TAB-PAGE-CHANGED ? if I want to show if :
- First Tab Canvas I klik then the second Tab Canvas is show (solved), then if
- I klik second Tab Canvas then the third Tab Canvas is show. (this my case)
thx b4 to all ...... I am newbie in forms
Edited by: 973372 on Dec 14, 2012 2:05 PM
not yet
Similar Messages
-
Hi.
I am trying to place image on canvas.
However the image doesn't show!!!!!!!!!!!!! :(
no error and compiles well....
private void AddTile(String image, int startx, int starty, int endx, int endy)
try{
tiles = ImageIO.read(new File(image));
catch(Exception e)
System.out.println("Image not Found");
Graphics2D a =(Graphics2D)tiles.getGraphics();
a.drawImage(tiles, 20,20,20,20,TileCanvas);
if the above function is called the image should be placed on canvas right?
TileCanvas is a canvas, and tiles is BufferedImage.
just in case I'll put my source code followed by this
* MapEditor.java
* Created on 2006�� 7�� 20�� (��), ���� 11:48
import java.awt.*;
import java.awt.event.*;
import java.awt.image.*;
import javax.swing.*;
import javax.swing.event.*;
import javax.imageio.*;
import java.io.*;
* @author SeiKwon
public class EditorComponent extends javax.swing.JFrame
private java.awt.Button AddTile;
private java.awt.Button DeleteTile;
private javax.swing.JMenu FileMenu;
private javax.swing.JMenuItem LoadFile;
private javax.swing.JPanel ManageTilePanel;
private java.awt.Canvas MapCanvas;
private javax.swing.JMenuBar MenuBar;
private javax.swing.JMenuItem SaveFile;
private javax.swing.JScrollPane ShowMapScroll;
private java.awt.Canvas TileCanvas;
private javax.swing.JScrollPane TileScroll;
private BufferedImage tiles;
private int tilecount = 0;
/** Creates new form MapEditor */
public EditorComponent()
initComponents();
AddTile("test.jpg", 0, 0, 10, 10);
private void initComponents()
ManageTilePanel = new javax.swing.JPanel();
TileScroll = new javax.swing.JScrollPane();
TileCanvas = new java.awt.Canvas();
AddTile = new java.awt.Button();
DeleteTile = new java.awt.Button();
ShowMapScroll = new javax.swing.JScrollPane();
MapCanvas = new java.awt.Canvas();
MenuBar = new javax.swing.JMenuBar();
FileMenu = new javax.swing.JMenu();
SaveFile = new javax.swing.JMenuItem();
LoadFile = new javax.swing.JMenuItem();
getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
ManageTilePanel.setLayout(null);
ManageTilePanel.setBorder(new javax.swing.border.TitledBorder("Tiles"));
TileCanvas.setBackground(new java.awt.Color(255, 255, 255));
TileScroll.setViewportView(TileCanvas);
ManageTilePanel.add(TileScroll);
TileScroll.setBounds(10, 22, 100, 230);
AddTile.setLabel("Add");
ManageTilePanel.add(AddTile);
AddTile.setBounds(10, 260, 50, 26);
DeleteTile.setLabel("Delete");
ManageTilePanel.add(DeleteTile);
DeleteTile.setBounds(60, 260, 50, 26);
getContentPane().add(ManageTilePanel, new org.netbeans.lib.awtextra.AbsoluteConstraints(310, 10, 119, 290));
ManageTilePanel.getAccessibleContext().setAccessibleName("TilesPanel");
MapCanvas.setBackground(new java.awt.Color(255, 255, 255));
MapCanvas.addMouseListener(new java.awt.event.MouseAdapter()
public void mouseEntered(java.awt.event.MouseEvent evt)
MapCanvasMouseEntered(evt);
ShowMapScroll.setViewportView(MapCanvas);
getContentPane().add(ShowMapScroll, new org.netbeans.lib.awtextra.AbsoluteConstraints(12, 10, 290, 290));
FileMenu.setText("File");
FileMenu.setContentAreaFilled(false);
SaveFile.setIcon(new javax.swing.ImageIcon("D:\\java\\MapEditor\\Image\\Save16.gif"));
SaveFile.setText("Save");
SaveFile.addActionListener(new java.awt.event.ActionListener()
public void actionPerformed(java.awt.event.ActionEvent evt)
SaveFileActionPerformed(evt);
FileMenu.add(SaveFile);
LoadFile.setIcon(new javax.swing.ImageIcon("D:\\java\\MapEditor\\Image\\Open16.gif"));
LoadFile.setText("Load");
LoadFile.addActionListener(new java.awt.event.ActionListener()
public void actionPerformed(java.awt.event.ActionEvent evt)
LoadFileActionPerformed(evt);
FileMenu.add(LoadFile);
MenuBar.add(FileMenu);
setJMenuBar(MenuBar);
pack();
private void MapCanvasMouseEntered(java.awt.event.MouseEvent evt)
Cursor cursorshape = MapCanvas.getCursor();
MapCanvas.setCursor(cursorshape.getPredefinedCursor(CROSSHAIR_CURSOR));
private void AddTile(String image, int startx, int starty, int endx, int endy)
try{
tiles = ImageIO.read(new File(image));
catch(Exception e)
System.out.println("Image not Found");
Graphics2D a =(Graphics2D)tiles.getGraphics();
a.drawImage(tiles, 20,20,20,20,TileCanvas);
private void LoadFileActionPerformed(java.awt.event.ActionEvent evt)
FileDialog fd = new FileDialog(this, "Open", FileDialog.LOAD);
//fd.setFile("*.map");
fd.setDirectory(".");
fd.setVisible(true);
String filename = fd.getFile();
System.out.println(filename);
private void SaveFileActionPerformed(java.awt.event.ActionEvent evt)
FileDialog fd = new FileDialog(this, "Save", FileDialog.SAVE);
//fd.setFile("*.map");
//fd.setFilenameFilter("*.map"); // HOW TO USE?????????????
fd.setDirectory(".");
fd.setVisible(true);
String filename = fd.getFile();
System.out.println(filename);
public static void main(String args[])
java.awt.EventQueue.invokeLater(new Runnable()
public void run()
new EditorComponent().setVisible(true);
}You have at least two problems.
1) You are mixing AWT and Swing. Instead of using a Canvas you should use either a JComponent or a JPanel.
2) In Swing, drawing such are you are doing should be done within the paintComponent(Graphics g) method using the Graphics provided as an argument to the method.
P.S. I can't test you code because for some reason you feal the need to use a NetBeans specific layout manager. -
When I open a new website, the page does not open, instead it places a tab in the bottom task bar? How can I change the settings so as when I open a new website the page is automatically displayed on my desktop. Thank You!
Tools > Options > Tabs - is the last preference there check-marked??
-
I've downloaded the Creative Cloud app but the App tab says there is a download error and to contact support. I have tried uninstalling and reinstalling and am gettting the same message. I'm running OS X 10.9.3.
Blakey if you are receiving a download error then please see Error downloading Creative Cloud applications - http://helpx.adobe.com/creative-cloud/kb/error-downloading-cc-apps.html.
-
the option to open in new tab is there, but not highlighted?
now it is working?! Go figure. Yeah! Thanks anyway......
-
I bought an IPhone 3gs and tried to reset the APN through Strait Talk Wireless but when I click on settings then "General" tab they tell me to click on the "Network" tab but there is not a "Network" tab? After Network, I was supposed to go to Cellular Data Settings but I can't find the Network tab under the General tab. I watched videos and every IPhone I saw had the Network tab but mine don't, can anyone please help this old man fix this new technology, so I can use the Internes and MSM?Thanks, jerry b <><
Hey electrikn,
Thanks for the question. If your iPhone 3GS has been updated to iOS 6, this setting had moved:
Set network options: Go to Settings > General > Cellular
via http://manuals.info.apple.com/MANUALS/1000/MA1658/en_US/iphone_ios6_user_guide.p df
Thanks,
Matt M. -
I want to remove the color on my tabs. There is no color add-on in my add-on list. However, in Cheevos for Firefox, there is a Tab Candy entry that is highlighted but no way of disabling it. How do you suggest I get rid of the Tab candy or the color tabs?
Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
*Do NOT click the Reset button on the Safe Mode start window or otherwise make changes.
*https://support.mozilla.org/kb/Safe+Mode
*https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes -
I am using a Microsoft Natural 4000 Keyboard
IF I update to Mozila 5.0 when i use the close button it shuts down the whole browser nut just the active tab
Is there a workaround for this because I like the close button featureCould you try disabling graphics hardware acceleration? (I'm having trouble determining from your "More system information" whether it's enabled or disabled.) Since this feature was added to Firefox, it has gradually improved, but there still are a few glitches.
You usually need to restart Firefox in order for this to take effect, so save all work first (e.g., mail you are composing, online documents you're editing, etc.).
orange Firefox button ''or'' classic Tools menu > Options > Advanced
On the "General" mini-tab, uncheck the box for "Use hardware acceleration when available"
If you restart Firefox, is the issue resolved? -
When I start firefox, the previous tabs are there but blank and say new tab, can I restore the tabs?
how can I do this?I'm not sure what causes this.
As the first step, I recommend backing up your existing sessionstore files.
Open your current Firefox settings (AKA Firefox profile) folder using
Help > Troubleshooting Information > "Show Folder" button
Scroll down to the files whose names start with sessionstore. You should find at least sessionstore.js and sessionstore.bak. If the .js extension does not appear on sessionstore, you should turn off the Windows feature that hides file extensions from you, so that you can work with file names as accurately as possible. This Microsoft support article has the steps: [http://support.microsoft.com/kb/865219].
Make backup copies of all the sessionstore files to somewhere like your Documents folder for possible later restoration.
Next, try one of the data mining techniques in these posts to rescue the URLs from the sessionstore.js or sessionstore.bak file:
* Using Firefox's Browser Console (formerly known as Error Console): https://support.mozilla.org/questions/969046#answer-471950
* Using Firefox developer tool "Scratchpad": http://forums.mozillazine.org/viewtopic.php?f=38&t=622036&start=60&p=12098147#p12098147
* Using a third party website: https://firefox-session-restore.herokuapp.com/ -
When I am writing email, the stationery won't open. The tab is there, but clicking on it does nothing.
Firefox doesn't do email, it's strictly a web browser.
If you are using Firefox to access your mail, you are using "web-mail". You need to seek support from your service provider or a forum for that service.
If your problem is with Mozilla Thunderbird, please '''Tag''' this thread as being for Thunderbird in the right-hand column of this page. This question currently is in the Firefox queue for answers. -
My Apps won't load. The screen from the Apps tab says there a Downloadmistake. What to do?
Nobody knows?Link for Download & Install & Setup & Activation problems may help
-Online Chat http://www.adobe.com/support/download-install/supportinfo/ -
I was deleting addons and I deleted the main top tabs by accident. I deleted my entire upper set of tabs - Bookmarks, Tools and more. I reinstalled Firefox 3 times and it's still gone.
For details of how to restore it, see https://support.mozilla.com/kb/menu+bar+is+missing
-
I removed chrome 10 and newly installed FF4 final, and I can't read PDF files within the browser. There was no problem in Chrome. I can't even see the acrobat reader plugin in the plugins page. Acrobat 10 is already installed in my PC. Every time I try to read a PDF file on the web, FF tries to download it instead.
As recommended above by Bernd Alheit, I posted this on the Adobe Reader forum. There, I received the advice to repair the installation under the help menu, which I did and it fixed the problem.
Similar to your solution but found it's a fix found under "HELP" menu and not Add/Remove.
Thank you. -
Is something wrong with the new software update. My battery dies within 4 hours. There are also problems with my e-mail accounts. Can someone help me?
Have you attempted an iTunes restore and setting up as a new device? Sometimes battery life issues can be caused by corrupted iOS software.
- Greg -
i bought a ipod touch 3 i need help on this is there a youtube app that has a cach download to play youtube video's offline within the app if there is one can someone fill me some info on this matter
You can only use apps that are compatible with your dvice and ios version.
The secons gen ipod touch can only go to 4.2.1.
If you are running 4.2.1 then you can only use apps that require 4.2.1 or lower.
Maybe you are looking for
-
How to get Windows 8.1 on Mid 2010 MBP?
I have been looking and looking for a way to take the physical CD that comes with the windows software and download windows 8.1 to my 13-Inch, Mid 2010 MBP through BootCamp. Is there another way or a different way to load windows 8.1 onto my computer
-
Possible memory leak in JSF � help needed
Hi, We are developing a JSF application using the following: SUN JSF 1.1_02-b08 Tomahawk 1.1.3 Tomcat 5.5 Our application includes pages with lists; these lists are held and extracted from backing beans. We are using these beans in request scope with
-
How sync Ical in a nokia 6111 ?
Hi everybody, I work in a mac book with Ical and Isync the latest, I have a problem to synchronize my calendar on my nokia 6111. My contacts were well synchronise but my calendar never work when I synchronise them, I can't see what I write on my cale
-
ı want to unlock my iphone 4
ı want to unlock my iphone 4
-
HT1937 How can i changen the phone number on ipad2
How can i change the phone number on my ipad?