117 ofLabel =
new javax.swing.JLabel();
135 setPreferredSize(
new java.awt.Dimension(100, 58));
137 jScrollPane3.setPreferredSize(
new java.awt.Dimension(300, 33));
145 jScrollPane2.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
146 jScrollPane2.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER);
157 pageLabel.setMaximumSize(
new java.awt.Dimension(33, 14));
158 pageLabel.setMinimumSize(
new java.awt.Dimension(33, 14));
160 prevPageButton.setIcon(
new javax.swing.ImageIcon(getClass().getResource(
"/org/sleuthkit/autopsy/corecomponents/btn_step_back.png")));
164 prevPageButton.setDisabledIcon(
new javax.swing.ImageIcon(getClass().getResource(
"/org/sleuthkit/autopsy/corecomponents/btn_step_back_disabled.png")));
167 prevPageButton.setRolloverIcon(
new javax.swing.ImageIcon(getClass().getResource(
"/org/sleuthkit/autopsy/corecomponents/btn_step_back_hover.png")));
168 prevPageButton.addActionListener(
new java.awt.event.ActionListener() {
169 public void actionPerformed(java.awt.event.ActionEvent evt) {
170 prevPageButtonActionPerformed(evt);
174 nextPageButton.setIcon(
new javax.swing.ImageIcon(getClass().getResource(
"/org/sleuthkit/autopsy/corecomponents/btn_step_forward.png")));
175 nextPageButton.setText(org.openide.util.NbBundle.getMessage(
DataContentViewerHex.class,
"DataContentViewerHex.nextPageButton.text"));
176 nextPageButton.setBorderPainted(
false);
177 nextPageButton.setContentAreaFilled(
false);
178 nextPageButton.setDisabledIcon(
new javax.swing.ImageIcon(getClass().getResource(
"/org/sleuthkit/autopsy/corecomponents/btn_step_forward_disabled.png")));
179 nextPageButton.setMargin(
new java.awt.Insets(2, 0, 2, 0));
180 nextPageButton.setPreferredSize(
new java.awt.Dimension(23, 23));
181 nextPageButton.setRolloverIcon(
new javax.swing.ImageIcon(getClass().getResource(
"/org/sleuthkit/autopsy/corecomponents/btn_step_forward_hover.png")));
182 nextPageButton.addActionListener(
new java.awt.event.ActionListener() {
183 public void actionPerformed(java.awt.event.ActionEvent evt) {
184 nextPageButtonActionPerformed(evt);
188 pageLabel2.setText(org.openide.util.NbBundle.getMessage(DataContentViewerHex.class,
"DataContentViewerHex.pageLabel2.text"));
189 pageLabel2.setMaximumSize(
new java.awt.Dimension(29, 14));
190 pageLabel2.setMinimumSize(
new java.awt.Dimension(29, 14));
192 goToPageTextField.setText(org.openide.util.NbBundle.getMessage(DataContentViewerHex.class,
"DataContentViewerHex.goToPageTextField.text"));
193 goToPageTextField.addActionListener(
new java.awt.event.ActionListener() {
194 public void actionPerformed(java.awt.event.ActionEvent evt) {
195 goToPageTextFieldActionPerformed(evt);
199 goToPageLabel.setText(org.openide.util.NbBundle.getMessage(DataContentViewerHex.class,
"DataContentViewerHex.goToPageLabel.text"));
201 goToOffsetLabel.setText(org.openide.util.NbBundle.getMessage(DataContentViewerHex.class,
"DataContentViewerHex.goToOffsetLabel.text"));
203 goToOffsetTextField.setText(org.openide.util.NbBundle.getMessage(DataContentViewerHex.class,
"DataContentViewerHex.goToOffsetTextField.text"));
204 goToOffsetTextField.addActionListener(
new java.awt.event.ActionListener() {
205 public void actionPerformed(java.awt.event.ActionEvent evt) {
206 goToOffsetTextFieldActionPerformed(evt);
210 launchHxDButton.setText(org.openide.util.NbBundle.getMessage(DataContentViewerHex.class,
"DataContentViewerHex.launchHxDButton.text"));
211 launchHxDButton.addActionListener(
new java.awt.event.ActionListener() {
212 public void actionPerformed(java.awt.event.ActionEvent evt) {
213 launchHxDButtonActionPerformed(evt);
217 javax.swing.GroupLayout hexViewerPanelLayout =
new javax.swing.GroupLayout(hexViewerPanel);
218 hexViewerPanel.setLayout(hexViewerPanelLayout);
219 hexViewerPanelLayout.setHorizontalGroup(
220 hexViewerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
221 .addGroup(hexViewerPanelLayout.createSequentialGroup()
223 .addComponent(pageLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
225 .addComponent(currentPageLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
226 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
227 .addComponent(ofLabel)
228 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
229 .addComponent(totalPageLabel)
231 .addComponent(pageLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
232 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
233 .addComponent(prevPageButton, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)
235 .addComponent(nextPageButton, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)
237 .addComponent(goToPageLabel)
238 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
239 .addComponent(goToPageTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE)
241 .addComponent(goToOffsetLabel)
242 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
243 .addComponent(goToOffsetTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE)
244 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
245 .addComponent(launchHxDButton)
246 .addContainerGap(146, Short.MAX_VALUE))
248 hexViewerPanelLayout.setVerticalGroup(
249 hexViewerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
250 .addGroup(hexViewerPanelLayout.createSequentialGroup()
251 .addGroup(hexViewerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
252 .addComponent(pageLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
253 .addGroup(hexViewerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
254 .addComponent(currentPageLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
255 .addComponent(ofLabel)
256 .addComponent(totalPageLabel))
257 .addComponent(pageLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
258 .addComponent(nextPageButton, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)
259 .addComponent(prevPageButton, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)
260 .addComponent(goToPageLabel)
261 .addComponent(goToPageTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
262 .addComponent(goToOffsetLabel)
263 .addGroup(hexViewerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
264 .addComponent(goToOffsetTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
265 .addComponent(launchHxDButton)))
269 launchHxDButton.setEnabled(PlatformUtil.isWindowsOS());
271 jScrollPane2.setViewportView(hexViewerPanel);
273 javax.swing.GroupLayout layout =
new javax.swing.GroupLayout(
this);
274 this.setLayout(layout);
275 layout.setHorizontalGroup(
276 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
277 .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 827, Short.MAX_VALUE)
278 .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)
280 layout.setVerticalGroup(
281 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
282 .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
283 .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
284 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
285 .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 239, Short.MAX_VALUE))