171 |
|
|
172 |
public void renderContext(VobScene vs, int into) |
public void renderContext(VobScene vs, int into) |
173 |
{ |
{ |
174 |
Button b = new Button(vs, 0, GraphicsAPI.getInstance(). |
Button b = new Button(vs, 0, 30, 0, 50); |
|
getTextStyle("sans", 0, 24), |
|
|
30, 0, 50); |
|
175 |
b.add("[Import PS/PDF]", "IMPORT"); |
b.add("[Import PS/PDF]", "IMPORT"); |
176 |
b.add("[New paper]", "NEW_PAPER"); |
b.add("[New paper]", "NEW_PAPER"); |
177 |
|
|
206 |
fd.show(); // now wait until user makes a desicion |
fd.show(); // now wait until user makes a desicion |
207 |
fd.hide(); |
fd.hide(); |
208 |
p("ps/pdf to be added: "+fd.getDirectory()+fd.getFile()); |
p("ps/pdf to be added: "+fd.getDirectory()+fd.getFile()); |
209 |
|
if (fd.getDirectory() == null) return null; |
210 |
|
|
211 |
ScrollBlock sc = alph.addFile(new File(fd.getDirectory()+fd.getFile()), |
ScrollBlock sc = alph.addFile(new File(fd.getDirectory()+fd.getFile()), |
212 |
"application/pdf"); |
"application/pdf"); |