ws1999
asked on
draw an image in a scrollpane
hello,
how can i load an image within a scrollpane?
ws1999
how can i load an image within a scrollpane?
ws1999
http://java.sun.com/docs/books/tutorial/uiswing/components/scrollpane.html
If you're using Swing then simply wrap the component thats painting the image in a JScrollBar:
JScrollPane scroller = new JScrollPane(imagecomponent );
JScrollPane scroller = new JScrollPane(imagecomponent
ASKER
hello objects
i want to use AWT.
ws1999
i want to use AWT.
ws1999
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
hello object,
is imagecomponent a component of Swing, can't i drwa image on it directly?
ws1999
is imagecomponent a component of Swing, can't i drwa image on it directly?
ws1999
No it's simply a variable name I'm using to represent whatever component you are currently displaying your image on.
1.Create a panel.
2.Draw image on it.
3.Put panel in the scroll pane.
Try it.Hope this helps.
2.Draw image on it.
3.Put panel in the scroll pane.
Try it.Hope this helps.
ASKER
hello praburamalingam
i mean not draw on panel, the image has already exists,so how can i load it?
ws1999
i mean not draw on panel, the image has already exists,so how can i load it?
ws1999
You need to 'paint' your image on one of your components.
ws1999:
You have many open questions to which you must return:
https://www.experts-exchange.com/jsp/qShow.jsp?ta=msaccess&qid=20264790
https://www.experts-exchange.com/jsp/qShow.jsp?ta=delphi&qid=20256743
https://www.experts-exchange.com/jsp/qShow.jsp?ta=delphi&qid=20250343
https://www.experts-exchange.com/jsp/qShow.jsp?ta=delphi&qid=20249986
https://www.experts-exchange.com/jsp/qShow.jsp?ta=delphi&qid=20187323
https://www.experts-exchange.com/jsp/qShow.jsp?ta=delphi&qid=20184015
https://www.experts-exchange.com/jsp/qShow.jsp?ta=delphi&qid=20181707
https://www.experts-exchange.com/jsp/qShow.jsp?ta=delphi&qid=20180448
https://www.experts-exchange.com/jsp/qShow.jsp?ta=delphi&qid=20169990
https://www.experts-exchange.com/jsp/qShow.jsp?ta=delphi&qid=11401958
https://www.experts-exchange.com/jsp/qShow.jsp?ta=java&qid=20230693
https://www.experts-exchange.com/jsp/qShow.jsp?ta=java&qid=20194172
https://www.experts-exchange.com/jsp/qShow.jsp?ta=java&qid=20187856
https://www.experts-exchange.com/jsp/qShow.jsp?ta=java&qid=20187852
https://www.experts-exchange.com/jsp/qShow.jsp?ta=java&qid=20187466
https://www.experts-exchange.com/jsp/qShow.jsp?ta=java&qid=20182301
https://www.experts-exchange.com/jsp/qShow.jsp?ta=java&qid=20182182
https://www.experts-exchange.com/jsp/qShow.jsp?ta=java&qid=20181487
https://www.experts-exchange.com/jsp/qShow.jsp?ta=java&qid=20181301
https://www.experts-exchange.com/jsp/qShow.jsp?ta=java&qid=20180787
https://www.experts-exchange.com/jsp/qShow.jsp?ta=java&qid=20180436
https://www.experts-exchange.com/jsp/qShow.jsp?ta=java&qid=20172201
https://www.experts-exchange.com/jsp/qShow.jsp?ta=java&qid=20153303
To assist you in your cleanup, I'm providing the following guidelines:
1. Stay active in your questions and provide feedback whenever possible. Likewise, when feedback has not been provided by the experts, commenting again makes them receive an email notification, and they may provide you with further information. Experts have no other method of searching for questions in which they have commented, except manually.
2. Award points by hitting the Accept Comment As Answer button located above and to the left of that expert's comment.
3. When grading, be sure to read:
https://www.experts-exchange.com/jsp/cmtyQuestAnswer.jsp#3
to ensure that you understand the grading system here at EE. If you grade less than an A, you must explain why.
4. Questions that were not helpful to you should be PAQ'd (stored in the database for their valuable content?even if not valuable to you) or deleted. To PAQ or delete a question, you must first post your intent in that question to make the experts aware. Then, if no experts object after three full days, you can post a zero-point question at community support to request deletion or PAQ. Please include the link(s) to the question(s).
CS: https://www.experts-exchange.com/jsp/qList.jsp?ta=commspt
At that point, a moderator can refund your points and PAQ or delete the question for you. The delete button does not work.
5. If you fail to respond to this cleanup request, I must report you to the Community Support Administrator for further action.
Our intent is to get the questions cleaned up, and not to embarrass or shame anyone. If you have any questions or need further assistance at all, feel free to ask me in this question or post a zero-point question at CS. We are very happy to help you in this task!
thanks!
amp
community support moderator
2/8
You have many open questions to which you must return:
https://www.experts-exchange.com/jsp/qShow.jsp?ta=msaccess&qid=20264790
https://www.experts-exchange.com/jsp/qShow.jsp?ta=delphi&qid=20256743
https://www.experts-exchange.com/jsp/qShow.jsp?ta=delphi&qid=20250343
https://www.experts-exchange.com/jsp/qShow.jsp?ta=delphi&qid=20249986
https://www.experts-exchange.com/jsp/qShow.jsp?ta=delphi&qid=20187323
https://www.experts-exchange.com/jsp/qShow.jsp?ta=delphi&qid=20184015
https://www.experts-exchange.com/jsp/qShow.jsp?ta=delphi&qid=20181707
https://www.experts-exchange.com/jsp/qShow.jsp?ta=delphi&qid=20180448
https://www.experts-exchange.com/jsp/qShow.jsp?ta=delphi&qid=20169990
https://www.experts-exchange.com/jsp/qShow.jsp?ta=delphi&qid=11401958
https://www.experts-exchange.com/jsp/qShow.jsp?ta=java&qid=20230693
https://www.experts-exchange.com/jsp/qShow.jsp?ta=java&qid=20194172
https://www.experts-exchange.com/jsp/qShow.jsp?ta=java&qid=20187856
https://www.experts-exchange.com/jsp/qShow.jsp?ta=java&qid=20187852
https://www.experts-exchange.com/jsp/qShow.jsp?ta=java&qid=20187466
https://www.experts-exchange.com/jsp/qShow.jsp?ta=java&qid=20182301
https://www.experts-exchange.com/jsp/qShow.jsp?ta=java&qid=20182182
https://www.experts-exchange.com/jsp/qShow.jsp?ta=java&qid=20181487
https://www.experts-exchange.com/jsp/qShow.jsp?ta=java&qid=20181301
https://www.experts-exchange.com/jsp/qShow.jsp?ta=java&qid=20180787
https://www.experts-exchange.com/jsp/qShow.jsp?ta=java&qid=20180436
https://www.experts-exchange.com/jsp/qShow.jsp?ta=java&qid=20172201
https://www.experts-exchange.com/jsp/qShow.jsp?ta=java&qid=20153303
To assist you in your cleanup, I'm providing the following guidelines:
1. Stay active in your questions and provide feedback whenever possible. Likewise, when feedback has not been provided by the experts, commenting again makes them receive an email notification, and they may provide you with further information. Experts have no other method of searching for questions in which they have commented, except manually.
2. Award points by hitting the Accept Comment As Answer button located above and to the left of that expert's comment.
3. When grading, be sure to read:
https://www.experts-exchange.com/jsp/cmtyQuestAnswer.jsp#3
to ensure that you understand the grading system here at EE. If you grade less than an A, you must explain why.
4. Questions that were not helpful to you should be PAQ'd (stored in the database for their valuable content?even if not valuable to you) or deleted. To PAQ or delete a question, you must first post your intent in that question to make the experts aware. Then, if no experts object after three full days, you can post a zero-point question at community support to request deletion or PAQ. Please include the link(s) to the question(s).
CS: https://www.experts-exchange.com/jsp/qList.jsp?ta=commspt
At that point, a moderator can refund your points and PAQ or delete the question for you. The delete button does not work.
5. If you fail to respond to this cleanup request, I must report you to the Community Support Administrator for further action.
Our intent is to get the questions cleaned up, and not to embarrass or shame anyone. If you have any questions or need further assistance at all, feel free to ask me in this question or post a zero-point question at CS. We are very happy to help you in this task!
thanks!
amp
community support moderator
2/8
30 POINTS.... EASY QUESTIONS TYPICALLY BEGIN AT 50... AND YOU ABANDON THEM?
ADMINISTRATION WILL BE CONTACTING YOU SHORTLY REGARDING YOUR ACCOUNT AND OPEN QUESTIONS.
Question(s) below appears to have been abandoned. Your options are:
1. Accept a Comment As Answer (use the button next to the Expert's name).
2. Close the question if the information was not useful to you. You must tell the participants why you wish to do this, and allow for Expert response.
3. Ask Community Support to help split points between participating experts, or just comment here with details and we'll respond with the process.
4. Delete the question. Again, please comment to advise the other participants why you wish to do this.
For special handling needs, please post a zero point question in the link below and include the question QID/link(s) that it regards.
https://www.experts-exchange.com/jsp/qList.jsp?ta=commspt
Please click the Help Desk link on the left for Member Guidelines, Member Agreement and the Question/Answer process. https://www.experts-exchange.com/jsp/cmtyHelpDesk.jsp
Please click you Member Profile to view your question history and keep them all current with updates as the collaboration effort continues, to track all your open and locked questions at this site. If you are an EE Pro user, use the Power Search option to find them.
To view your open questions, please click the following link(s) and keep them all current with updates.
https://www.experts-exchange.com/questions/Q.11401958.html
https://www.experts-exchange.com/questions/Q.20169990.html
https://www.experts-exchange.com/questions/Q.20180448.html
https://www.experts-exchange.com/questions/Q.20181301.html
https://www.experts-exchange.com/questions/Q.20182182.html
https://www.experts-exchange.com/questions/Q.20184015.html
https://www.experts-exchange.com/questions/Q.20249986.html
https://www.experts-exchange.com/questions/Q.20264790.html
https://www.experts-exchange.com/questions/Q.20180436.html
https://www.experts-exchange.com/questions/Q.20187323.html
To view your locked questions, please click the following link(s) and evaluate the proposed answer.
https://www.experts-exchange.com/questions/Q.20181707.html
PLEASE DO NOT AWARD THE POINTS TO ME.
------------> EXPERTS: Please leave any comments regarding your closing recommendations if this item remains inactive another seven (7) days. Also, if you are interested in the cleanup effort, please click this link https://www.experts-exchange.com/jsp/qManageQuestion.jsp?ta=commspt&qid=20274643
Thank you everyone.
Moondancer
Moderator @ Experts Exchange
P.S. For any year 2000 questions, special attention is needed to ensure the first correct response is awarded, since they are not in the comment date order, but rather in Member ID order.
ADMINISTRATION WILL BE CONTACTING YOU SHORTLY REGARDING YOUR ACCOUNT AND OPEN QUESTIONS.
Question(s) below appears to have been abandoned. Your options are:
1. Accept a Comment As Answer (use the button next to the Expert's name).
2. Close the question if the information was not useful to you. You must tell the participants why you wish to do this, and allow for Expert response.
3. Ask Community Support to help split points between participating experts, or just comment here with details and we'll respond with the process.
4. Delete the question. Again, please comment to advise the other participants why you wish to do this.
For special handling needs, please post a zero point question in the link below and include the question QID/link(s) that it regards.
https://www.experts-exchange.com/jsp/qList.jsp?ta=commspt
Please click the Help Desk link on the left for Member Guidelines, Member Agreement and the Question/Answer process. https://www.experts-exchange.com/jsp/cmtyHelpDesk.jsp
Please click you Member Profile to view your question history and keep them all current with updates as the collaboration effort continues, to track all your open and locked questions at this site. If you are an EE Pro user, use the Power Search option to find them.
To view your open questions, please click the following link(s) and keep them all current with updates.
https://www.experts-exchange.com/questions/Q.11401958.html
https://www.experts-exchange.com/questions/Q.20169990.html
https://www.experts-exchange.com/questions/Q.20180448.html
https://www.experts-exchange.com/questions/Q.20181301.html
https://www.experts-exchange.com/questions/Q.20182182.html
https://www.experts-exchange.com/questions/Q.20184015.html
https://www.experts-exchange.com/questions/Q.20249986.html
https://www.experts-exchange.com/questions/Q.20264790.html
https://www.experts-exchange.com/questions/Q.20180436.html
https://www.experts-exchange.com/questions/Q.20187323.html
To view your locked questions, please click the following link(s) and evaluate the proposed answer.
https://www.experts-exchange.com/questions/Q.20181707.html
PLEASE DO NOT AWARD THE POINTS TO ME.
------------> EXPERTS: Please leave any comments regarding your closing recommendations if this item remains inactive another seven (7) days. Also, if you are interested in the cleanup effort, please click this link https://www.experts-exchange.com/jsp/qManageQuestion.jsp?ta=commspt&qid=20274643
Thank you everyone.
Moondancer
Moderator @ Experts Exchange
P.S. For any year 2000 questions, special attention is needed to ensure the first correct response is awarded, since they are not in the comment date order, but rather in Member ID order.
Finalized.